Subversion Repositories wimsdev

Rev

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