Subversion Repositories wimsdev

Rev

Rev 17639 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14537 guerimand 1
!! display freework page for student type=1 or type=2
14297 guerimand 2
 
3
!if $emptypage=yes
4
  !exit
5
!endif
6
 
17883 czzmrn 7
!if $fwaccess=no
17639 czzmrn 8
  <div class="wims_msg info">
17883 czzmrn 9
  !if $fwstart!=$empty and $now < $fwstart
17639 czzmrn 10
    $name_notyet $l_date_out $name_at $begh_:$begm_
11
  !else
12
    $name_notavailable
13
  !endif
14
  </div>
15
  !exit
16
!endif
17
 
15488 obado 18
<div class="wims_freework_desc">$desc</div>
14297 guerimand 19
 
14947 guerimand 20
<div class="wims_widget_box medium_size">
21
  <div class="title_box">
22
      <h2 class="wims_title">$(name_subject)</h2>
14572 bpr 23
  </div>
14947 guerimand 24
  <div class="box_content">
25
    !read proc/listfile.phtml subject 0
26
  </div>
27
</div>
14297 guerimand 28
 
29
!if $activetest=1
14947 guerimand 30
  <div class="wims_widget_box medium_size">
31
    <div class="title_box">
32
      <h2 class="wims_title">$(name_copie)</h2>
33
    </div>
15488 obado 34
 
35
    <div class="box_content">
36
      !! --- type=1 - distribute only
37
      !if $type=1
38
        <div class="wims_msg
39
          !if $activetest>=2
40
            warning">$name_copie_toolate2
41
          !else
42
            !if $toolate=yes
43
              warning">$name_copie_toolate
44
            !else
45
              info">$name_copie_type1
46
            !endif
47
 
48
            !read adm/date.phtml $deadline
49
            !let time_out = !replace internal : by H in $(timedeadline)
50
            <strong>$l_date_out $wims_name_at $time_out</strong>.
51
          !endif
52
        </div>
14297 guerimand 53
      !else
15488 obado 54
      !! --- type=2 - distribute & collect
55
        !if $activetest>=2
56
          <div class="wims_msg warning">$name_copie_toolate2</div>
14297 guerimand 57
        !else
15488 obado 58
          !if $toolate=yes
59
            <div class="wims_msg warning">
60
              $name_copie_toolate
61
              !read adm/date.phtml $deadline
62
              !set time_out=!replace internal : by H in $(timedeadline)
63
              <strong>$l_date_out $wims_name_at $time_out</strong>.
64
            </div>
65
          !else
66
            <div class="wims_msg info">
67
              $name_copie_type2
68
              !read adm/date.phtml $deadline
69
              $l_date_out $wims_name_at
70
              !replace internal : by H in $(timedeadline).
71
            </div>
14537 guerimand 72
            !if $seealltime=1
15488 obado 73
              <div class="wims_msg info">$name_warningseealltime</div>
14537 guerimand 74
            !endif
15488 obado 75
          !endif
76
          !if $data_0!=$empty
77
              <div class="field box fullwidth">
16084 guerimand 78
                !getfile freeworksdata/work$freework-$(data_0[2]) $name_oldwork
15488 obado 79
                $name_the
80
                !read adm/date.phtml $(data_0[3])
81
                $l_date_out $wims_name_at
82
                !replace internal : by H in $(data_0[4]).
83
              </div>
84
          !endif
85
          !if $toolate=$empty
86
            <div>
87
              !! --- interface de chargement de fichier
88
              !if $quota_free>=1
14947 guerimand 89
                !set wims_form_method=file
90
                !form reply
17198 guerimand 91
                  <input type="hidden" name="job" value="student1" >
92
                  <input type="hidden" name="freework" value="$freework" >
14947 guerimand 93
                  <label for="wims_deposit">$name_depos</label>
17198 guerimand 94
                  <input type="file" size="35" name="wims_deposit" id="wims_deposit" >
15471 bpr 95
                  <div class="formHelp">$name_copie_type2bis.
14947 guerimand 96
                    !if $data_0!=$empty
97
                      $name_msgstudenthavefile
98
                    !endif
99
                  </div>
15488 obado 100
                  <input type="submit" value="$wims_name_submit"
101
                    !if $wims_user=supervisor
102
                      disabled
103
                    !endif
17198 guerimand 104
                  >
14947 guerimand 105
                !formend
15488 obado 106
              !else
107
                <div class="wims_msg warning">$name_warning_fullclass</div>
108
              !endif
109
            </div>
110
          !endif
14297 guerimand 111
        !endif
112
      !endif
15488 obado 113
    </div>
114
  </div>
14297 guerimand 115
!endif
116
 
14537 guerimand 117
!if $codownload=1 or $activetest>=2
14947 guerimand 118
  <div class="wims_widget_box medium_size">
119
    <div class="title_box">
120
      <h2 class="wims_title">$(name_correctedwork)</h2>
121
    </div>
122
    <div class="box_content">
15488 obado 123
      !if $codownload=1
124
        !if $(data_0[5])!=$empty
125
          !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
14537 guerimand 126
        !else
15488 obado 127
          <div class="wims_msg info">$name_nouploaded</div>
14537 guerimand 128
        !endif
15488 obado 129
      !else
130
        <div class="wims_msg info">$(name_nomorecodownload).</div>
131
      !endif
14947 guerimand 132
      !if $scoring>0
133
        <div class="field box">
134
          !let k_=!positionof item $wims_user in $uulist
135
          !if $k_!=$empty
136
            !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
137
            !let t_=!item $[$scoring+2] of $t_
138
          !else
139
            !let t_=$empty
140
          !endif
141
          <strong>$(name_score)</strong>
142
          !if $t_!=$empty
143
            $t_/$maxscore
144
          !else
145
            $name_noscore
146
          !endif
147
        </div>
14537 guerimand 148
      !endif
14297 guerimand 149
    </div>
14947 guerimand 150
  </div>
14297 guerimand 151
!endif
152
 
14796 guerimand 153
!if $flistsolution!=$empty
14947 guerimand 154
  <div class="wims_widget_box medium_size">
155
    <div class="title_box">
156
      <h2 class="wims_title">$(name_solution)</h2>
157
    </div>
158
    <div class="box_content">
159
      !if $displaysolution=1
15470 guerimand 160
        !read proc/listfile.phtml solution 0
14947 guerimand 161
      !else
15488 obado 162
        <div class="wims_msg info">
163
          $name_solutiondate
164
          !read adm/date.phtml $soldate
165
          !let time_out = !replace internal : by H in $(timesoldate)
166
          <strong>$l_date_out $wims_name_at $time_out</strong>.
167
        </div>
14947 guerimand 168
      !endif
169
    </div>
14796 guerimand 170
  </div>
171
!endif
14297 guerimand 172
 
173
!if $activetest>1 and $type>=2
15488 obado 174
  <div class="clearall wims_msg info">$name_userperimemessage</div>
14297 guerimand 175
!endif