Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
14537 guerimand 1
!! display freework page for student and type=3
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
 
14796 guerimand 18
!if $activetest>=2
14773 bpr 19
  <div class="wims_msg info">
14537 guerimand 20
    $name_copie_toolate2
14773 bpr 21
  </div>
14796 guerimand 22
!else
14537 guerimand 23
    !if $toolate=yes
14773 bpr 24
      <div class="wims_msg info">
14537 guerimand 25
      $name_copie_toolate
26
      !read adm/date.phtml $deadline
14572 bpr 27
      $l_date_out $wims_name_at
14537 guerimand 28
      !replace internal : by H in $(timedeadline).
14773 bpr 29
      </div>
14537 guerimand 30
    !else
16309 guerimand 31
      !if $nbrezonestudent=0
32
        $name_copie_type1
33
      !else
34
        $name_copie_type2
35
      !endif
18008 czzmrn 36
      !if $fwend=$empty
37
        !read adm/date.phtml $deadline
38
        $l_date_out $wims_name_at
39
        !replace internal : by H in $(timedeadline).
40
      !else
41
         !set tmpfwend=!char 1 to 8 of $fwend
42
         !set tmpfwhend=!char 9 to 10 of $fwend
43
         !set tmpfwmend=!char 11 to 12 of $fwend
44
         !read adm/date.phtml $tmpfwend
45
         $l_date_out $wims_name_at
46
         !nospace $tmpfwhend H $tmpfwmend
47
      !endif
17593 czzmrn 48
      !if $studentclose=1
49
        !if $job2=consigne
17595 czzmrn 50
           <div class="wims_msg alert">
51
           $name_close_alertpre1
52
           <span class="wims_button disabled">$name_close_confirm</span>
53
           $name_close_alertpre2
54
           </div>
17593 czzmrn 55
        !else
17595 czzmrn 56
          !if $studentmode=0
17596 czzmrn 57
             !let closetime=!char 10 to 14 of $test_close
58
             !read adm/date.phtml $test_close
59
             <div class="wims_msg info">$(name_close_closed[1]) $l_date_out $wims_name_at $closetime ($(name_close_closed[2])).</div>
17595 czzmrn 60
          !else
61
            !form reply
62
             <div>$name_close_info
63
             <input type="hidden" name="job" value="$job" >
64
             <input type="hidden" name="freework" value="$freework" >
65
             <input type="hidden" name="job2" value="consigne" >
66
             <input type="submit" name="consigne" value="$name_close_doclose" >
67
             </div>
68
            !formend
69
          !endif
17593 czzmrn 70
        !endif
71
      !endif
72
 
14537 guerimand 73
      !if $seealltime=1
74
        <div>$name_warningseealltime</div>
75
      !endif
76
    !endif
14796 guerimand 77
!endif
78
!if $activetest>1
79
    <div class="wims_msg info">$name_userperimemessage3</div>
80
!endif
16324 guerimand 81
!if $desc!=$empty
82
  <div class="wims_freework_desc">$desc</div>
83
!endif
14537 guerimand 84
 
14796 guerimand 85
<div class="wims_widget_box">
14874 guerimand 86
  <div class="title_box">
87
    <h2 class="wims_title">$(name_subject)</h2>
88
  </div>
89
  <div class="box_content">
90
    !for i=1 to $nbrezoneteacher
16307 guerimand 91
      !if $(ztypeteacher$i)=wimsexo
92
        !read applet/$(ztypeteacher$i) displayhtml teacher $i $studentmode $wims_user
93
      !else
94
        !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $wims_user
95
      !endif
14874 guerimand 96
    !next i
97
  </div>
14796 guerimand 98
</div>
14537 guerimand 99
 
16309 guerimand 100
!if $nbrezonestudent>0
14796 guerimand 101
!if $studentmode=1
17775 czzmrn 102
  <div class="wims_widget_box">
14874 guerimand 103
  <fieldset class="property_fields blockcenter">
14796 guerimand 104
    <legend>$(name_answerzone)</legend>
105
    !set wims_form_method=post
106
    !form reply
17198 guerimand 107
      <input type="hidden" name="job" value="$job" >
108
      <input type="hidden" name="freework" value="$freework" >
109
      <input type="hidden" name="job2" value="savezone" >
16016 guerimand 110
      !reset with_text
14796 guerimand 111
      !for i=1 to $nbrezonestudent
15034 czzmrn 112
          !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
16016 guerimand 113
          !if $(ztypestudent$i)=texte
114
            !let with_text=1
115
          !endif
14796 guerimand 116
      !next i
117
      !if $onclickactionlist!=$empty
118
        !let onclickactionlist=onclick="$onclickactionlist"
119
      !endif
14947 guerimand 120
      <div class="wimscenter">
121
        !if $wims_user=supervisor
17198 guerimand 122
          <input type="submit" value="$wims_name_tosave" disabled >
14947 guerimand 123
        !else
17198 guerimand 124
          <input type="submit" value="$wims_name_tosave" $onclickactionlist >
16016 guerimand 125
          !if $with_text=1
17198 guerimand 126
            <input type="submit" name="cf_preview" value="$name_preview" class="wims_secondary_button" >
16016 guerimand 127
            !reset cf_preview
128
          !endif
14947 guerimand 129
        !endif
130
      </div>
14796 guerimand 131
    !formend
132
    !! ------- manage of file form upload in all zone
133
    !if $ltdownloadzone!=$empty
14947 guerimand 134
      !if $wims_user=supervisor
135
        !read proc/uploadfileform.phtml $ltdownloadzone\
136
1\
137
disabled
138
      !else
139
        !read proc/uploadfileform.phtml $ltdownloadzone\
14796 guerimand 140
1
14947 guerimand 141
      !endif
14796 guerimand 142
    !endif
143
  </fieldset>
17775 czzmrn 144
  </div>
14796 guerimand 145
!else
14830 guerimand 146
  !if $activetest<2
147
    <div class="wims_widget_box">
14874 guerimand 148
      <div class="title_box">
149
        <h2 class="wims_title">$(name_answerzone)</h2>
150
      </div>
151
      <div class="box_content">
14830 guerimand 152
        !for i=1 to $nbrezonestudent
153
            !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
154
        !next i
14874 guerimand 155
      </div>
14830 guerimand 156
    </div>
157
  !endif
14537 guerimand 158
!endif
16309 guerimand 159
!endif
14537 guerimand 160
 
17595 czzmrn 161
!if $activetest<2
162
  !if $studentclose=1 and $job2=consigne
163
    !form reply
164
    <div class="wims_widget_box">
165
      <div class="title_box">
166
        <h2 class="wims_title">$name_close_confirm</h2>
167
      </div>
168
    <div class="box_content">
169
    <div class="wims_msg alert">
170
      $name_close_alertpost
171
    </div>
172
    <div class="wimscenter">
173
      <input type="hidden" name="job" value="$job" >
174
      <input type="hidden" name="freework" value="$freework" >
175
      <input type="hidden" name="job2" value="confirm" >
176
      <input type="submit" name="confirm" value="$name_close_confirm" >
177
      <input type="submit" name="giveup" class="wims_secondary_button" value="$wims_name_giveup">
178
    </div>
179
    </div>
180
    </div>
181
    !formend
182
  !endif
183
!endif
184
 
17780 czzmrn 185
!! shouldn't this be set by mkglobalvar
14537 guerimand 186
!if $codownload=1 or $activetest>=2
14874 guerimand 187
  <div class="wims_widget_box">
188
    <div class="title_box">
16568 guerimand 189
      <h2 class="wims_title">$(name_app)</h2>
14874 guerimand 190
    </div>
16324 guerimand 191
    <div class="box_content">
16569 guerimand 192
      !if $sizelimitfile>0
193
        <div><strong>$(name_correctedfile)</strong>
194
           !read proc/listfile.phtml usersol 0 $userv
195
        </div>
196
      !endif
17606 czzmrn 197
      !if $seealltime=1 and $nbrestudent>0
16755 guerimand 198
        <div><strong>$name_remark</strong>$remark</div>
199
      !endif
16568 guerimand 200
      <div><strong>$name_finalremark</strong>$finalremark</div>
14874 guerimand 201
      !if $scoring>0
202
        <div>
203
          !let k_=!positionof item $wims_user in $uulist
204
          !if $k_!=$empty
205
            !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
206
            !let t_=!item $[$scoring+2] of $t_
207
          !else
208
            !let t_=$empty
209
          !endif
210
          <strong>$(name_score)</strong> $t_/$maxscore
211
        </div>
212
      !endif
14773 bpr 213
    </div>
214
  </div>
16542 guerimand 215
!else
216
  !if $seealltime=1 and $remark!=$empty
217
    <div class="wims_widget_box">
218
    <div class="box_content">
219
      <div class="title_box"><h2 class="wims_title">$(name_remarkinwork)</h2></div>
220
      <div>$remark</div>
221
    </div>
222
    </div>
223
  !endif
14537 guerimand 224
!endif
225
 
16542 guerimand 226
 
14796 guerimand 227
!if $flistsolution!=$empty
228
  <div class="wims_widget_box">
14874 guerimand 229
    <div class="title_box">
230
      <h2 class="wims_title">$(name_solution)</h2>
231
    </div>
14796 guerimand 232
    <div class="box_content">
14874 guerimand 233
      !if $displaysolution=1
234
        !read proc/listfile.phtml solution 0
235
      !else
236
        $name_solutiondate
237
        !read adm/date.phtml $soldate
238
        $l_date_out
239
        $wims_name_at
240
        !replace internal : by H in $(timesoldate).
241
      !endif
14796 guerimand 242
    </div>
14773 bpr 243
  </div>
14796 guerimand 244
!endif