Subversion Repositories wimsdev

Rev

Rev 14787 | Rev 14827 | Go to most recent revision | 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
 
7
<div class="wims_sheet_desc">$desc</div>
8
 
9
<fieldset class="property_fields blockcenter">
14572 bpr 10
  <legend>$(name_subject)</legend>
11
  <div>
12
    <ul class="inline">
13
    !for f in $(flistsubject)
14
      <li class="text-icon file">
15
        !getfile freeworks/$freework/$f $f
16
      </li>
17
    !next f
18
    </ul>
19
  </div>
14297 guerimand 20
</fieldset>
21
 
22
!if $activetest=1
14572 bpr 23
  <fieldset class="property_fields blockcenter">
14297 guerimand 24
    <legend>$(name_copie)</legend>
25
    !if $type=1
26
      !if $activetest>=2
27
        $name_copie_toolate2
28
      !else
29
        !if $toolate=yes
30
          $name_copie_toolate
31
        !else
32
          $name_copie_type1
33
        !endif
34
        !read adm/date.phtml $deadline
35
        $l_date_out
14572 bpr 36
        $wims_name_at
14297 guerimand 37
        !replace internal : by H in $(timedeadline).
38
      !endif
39
    !else
14572 bpr 40
      !! ---   type=2
14297 guerimand 41
      !if $activetest>=2
42
        $name_copie_toolate2
43
      !else
44
        !if $toolate=yes
45
          <div class="field box fullwidth">
14537 guerimand 46
            $name_copie_toolate
47
            !read adm/date.phtml $deadline
14572 bpr 48
            $l_date_out $wims_name_at
14537 guerimand 49
            !replace internal : by H in $(timedeadline).
14297 guerimand 50
          </div>
51
        !else
52
          <div class="field box fullwidth">
53
            $name_copie_type2
54
            !read adm/date.phtml $deadline
14537 guerimand 55
            $l_date_out $wims_name_at
14297 guerimand 56
            !replace internal : by H in $(timedeadline).
14537 guerimand 57
            !if $seealltime=1
58
              <div>$name_warningseealltime</div>
59
            !endif
14297 guerimand 60
          </div>
61
        !endif
62
        !if $data_0!=$empty
63
            <div class="field box fullwidth">
64
              $name_oldwork
65
              !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2])
66
              $name_the
14537 guerimand 67
              !read adm/date.phtml $(data_0[3])
14572 bpr 68
              $l_date_out $wims_name_at
14297 guerimand 69
              !replace internal : by H in $(data_0[4]).
70
            </div>
71
        !endif
72
        !if $toolate=$empty
73
          <div class="field box fullwidth">
74
            !! --- interface de chargement de fichier
75
            !if $quota_free>=1
76
              !set wims_form_method=file
77
              !form reply
78
                <input type="hidden" name="job" value="student1" />
79
                <input type="hidden" name="freework" value="$freework" />
80
                <label for="wims_deposit">$name_depos</label>
14787 bpr 81
                <input type="file" size="35" name="wims_deposit" id="wims_deposit" />
14297 guerimand 82
                <div class="formHelp">$name_copie_type2bis.</div>
83
                <input type="submit" value="$wims_name_tosave" />
84
              !formend
14537 guerimand 85
            !else
86
              $name_warning_fullclass
14297 guerimand 87
            !endif
88
          </div>
89
        !endif
90
      !endif
91
    !endif
14572 bpr 92
  </fieldset>
14297 guerimand 93
!endif
94
 
14537 guerimand 95
!if $codownload=1 or $activetest>=2
14297 guerimand 96
  <fieldset class="property_fields blockcenter">
97
    <legend>$(name_correctedwork)</legend>
14537 guerimand 98
    <div class="field box">
99
      !if $(data_0[5])!=$empty
100
        !if $codownload=1
101
          !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
102
        !else
103
          $(name_nomorecodownload).
104
        !endif
105
      !else
106
        $name_nouploaded
107
      !endif
14297 guerimand 108
    </div>
14537 guerimand 109
    !if $scoring>0
110
      <div  class="field box">
111
        !let k_=!positionof item $wims_user in $uulist
112
        !if $k_!=$empty
113
          !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
114
          !let t_=!item $[$scoring+2] of $t_
115
        !else
116
          !let t_=$empty
117
        !endif
118
        <strong>$(name_score)</strong>
119
        !if $t_!=$empty
120
          $t_/$maxscore
121
        !else
122
          $name_noscore
123
        !endif
124
      </div>
125
    !endif
14297 guerimand 126
  </fieldset>
127
!endif
128
 
14796 guerimand 129
!if $flistsolution!=$empty
130
  <div class="wims_widget_box">
131
    <h2 class="box_title">$(name_solution)</h2>
132
    !if $displaysolution=1
133
      <div>
134
        <ul class="inline">
135
          !for f in $(flistsolution)
136
            <li class="text-icon file">
137
              !getfile freeworks/$freework/$f $f
138
            </li>
139
          !next f
140
        </ul>
141
      </div>
142
    !else
143
      $name_solutiondate
144
      !read adm/date.phtml $soldate
145
      $l_date_out
146
      $wims_name_at
147
      !replace internal : by H in $(timesoldate).
148
    !endif
149
  </div>
150
!endif
14297 guerimand 151
 
152
!if $activetest>1 and $type>=2
153
  $name_userperimemessage
154
!endif