Subversion Repositories wimsdev

Rev

Rev 15488 | Rev 17198 | 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
 
15488 obado 7
<div class="wims_freework_desc">$desc</div>
14297 guerimand 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>
15488 obado 23
 
24
    <div class="box_content">
25
      !! --- type=1 - distribute only
26
      !if $type=1
27
        <div class="wims_msg
28
          !if $activetest>=2
29
            warning">$name_copie_toolate2
30
          !else
31
            !if $toolate=yes
32
              warning">$name_copie_toolate
33
            !else
34
              info">$name_copie_type1
35
            !endif
36
 
37
            !read adm/date.phtml $deadline
38
            !let time_out = !replace internal : by H in $(timedeadline)
39
            <strong>$l_date_out $wims_name_at $time_out</strong>.
40
          !endif
41
        </div>
14297 guerimand 42
      !else
15488 obado 43
      !! --- type=2 - distribute & collect
44
        !if $activetest>=2
45
          <div class="wims_msg warning">$name_copie_toolate2</div>
14297 guerimand 46
        !else
15488 obado 47
          !if $toolate=yes
48
            <div class="wims_msg warning">
49
              $name_copie_toolate
50
              !read adm/date.phtml $deadline
51
              !set time_out=!replace internal : by H in $(timedeadline)
52
              <strong>$l_date_out $wims_name_at $time_out</strong>.
53
            </div>
54
          !else
55
            <div class="wims_msg info">
56
              $name_copie_type2
57
              !read adm/date.phtml $deadline
58
              $l_date_out $wims_name_at
59
              !replace internal : by H in $(timedeadline).
60
            </div>
14537 guerimand 61
            !if $seealltime=1
15488 obado 62
              <div class="wims_msg info">$name_warningseealltime</div>
14537 guerimand 63
            !endif
15488 obado 64
          !endif
65
          !if $data_0!=$empty
66
              <div class="field box fullwidth">
16084 guerimand 67
                !getfile freeworksdata/work$freework-$(data_0[2]) $name_oldwork
15488 obado 68
                $name_the
69
                !read adm/date.phtml $(data_0[3])
70
                $l_date_out $wims_name_at
71
                !replace internal : by H in $(data_0[4]).
72
              </div>
73
          !endif
74
          !if $toolate=$empty
75
            <div>
76
              !! --- interface de chargement de fichier
77
              !if $quota_free>=1
14947 guerimand 78
                !set wims_form_method=file
79
                !form reply
80
                  <input type="hidden" name="job" value="student1" />
81
                  <input type="hidden" name="freework" value="$freework" />
82
                  <label for="wims_deposit">$name_depos</label>
83
                  <input type="file" size="35" name="wims_deposit" id="wims_deposit" />
15471 bpr 84
                  <div class="formHelp">$name_copie_type2bis.
14947 guerimand 85
                    !if $data_0!=$empty
86
                      $name_msgstudenthavefile
87
                    !endif
88
                  </div>
15488 obado 89
                  <input type="submit" value="$wims_name_submit"
90
                    !if $wims_user=supervisor
91
                      disabled
92
                    !endif
93
                  />
14947 guerimand 94
                !formend
15488 obado 95
              !else
96
                <div class="wims_msg warning">$name_warning_fullclass</div>
97
              !endif
98
            </div>
99
          !endif
14297 guerimand 100
        !endif
101
      !endif
15488 obado 102
    </div>
103
  </div>
14297 guerimand 104
!endif
105
 
14537 guerimand 106
!if $codownload=1 or $activetest>=2
14947 guerimand 107
  <div class="wims_widget_box medium_size">
108
    <div class="title_box">
109
      <h2 class="wims_title">$(name_correctedwork)</h2>
110
    </div>
111
    <div class="box_content">
15488 obado 112
      !if $codownload=1
113
        !if $(data_0[5])!=$empty
114
          !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
14537 guerimand 115
        !else
15488 obado 116
          <div class="wims_msg info">$name_nouploaded</div>
14537 guerimand 117
        !endif
15488 obado 118
      !else
119
        <div class="wims_msg info">$(name_nomorecodownload).</div>
120
      !endif
14947 guerimand 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
15488 obado 151
        <div class="wims_msg info">
152
          $name_solutiondate
153
          !read adm/date.phtml $soldate
154
          !let time_out = !replace internal : by H in $(timesoldate)
155
          <strong>$l_date_out $wims_name_at $time_out</strong>.
156
        </div>
14947 guerimand 157
      !endif
158
    </div>
14796 guerimand 159
  </div>
160
!endif
14297 guerimand 161
 
162
!if $activetest>1 and $type>=2
15488 obado 163
  <div class="clearall wims_msg info">$name_userperimemessage</div>
14297 guerimand 164
!endif