Subversion Repositories wimsdev

Rev

Rev 15471 | Rev 16084 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15471 Rev 15488
Line 2... Line 2...
2
 
2
 
3
!if $emptypage=yes
3
!if $emptypage=yes
4
  !exit
4
  !exit
5
!endif
5
!endif
6
 
6
 
7
<div class="wims_sheet_desc">$desc</div>
7
<div class="wims_freework_desc">$desc</div>
8
 
8
 
9
<div class="wims_widget_box medium_size">
9
<div class="wims_widget_box medium_size">
10
  <div class="title_box">
10
  <div class="title_box">
11
      <h2 class="wims_title">$(name_subject)</h2>
11
      <h2 class="wims_title">$(name_subject)</h2>
12
  </div>
12
  </div>
Line 18... Line 18...
18
!if $activetest=1
18
!if $activetest=1
19
  <div class="wims_widget_box medium_size">
19
  <div class="wims_widget_box medium_size">
20
    <div class="title_box">
20
    <div class="title_box">
21
      <h2 class="wims_title">$(name_copie)</h2>
21
      <h2 class="wims_title">$(name_copie)</h2>
22
    </div>
22
    </div>
-
 
23
 
23
  <div class="box_content">
24
    <div class="box_content">
-
 
25
      !! --- type=1 - distribute only
24
    !if $type=1
26
      !if $type=1
-
 
27
        <div class="wims_msg
25
      !if $activetest>=2
28
          !if $activetest>=2
26
        $name_copie_toolate2
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>
27
      !else
42
      !else
-
 
43
      !! --- type=2 - distribute & collect
28
        !if $toolate=yes
44
        !if $activetest>=2
29
          $name_copie_toolate
45
          <div class="wims_msg warning">$name_copie_toolate2</div>
30
        !else
46
        !else
31
          $name_copie_type1
-
 
32
        !endif
-
 
33
        !read adm/date.phtml $deadline
-
 
34
        $l_date_out
-
 
35
        $wims_name_at
-
 
36
        !replace internal : by H in $(timedeadline).
-
 
37
      !endif
-
 
38
    !else
-
 
39
      !! ---   type=2
-
 
40
      !if $activetest>=2
-
 
41
        $name_copie_toolate2
-
 
42
      !else
-
 
43
        !if $toolate=yes
47
          !if $toolate=yes
44
          <div class="field box fullwidth">
48
            <div class="wims_msg warning">
45
            $name_copie_toolate
49
              $name_copie_toolate
46
            !read adm/date.phtml $deadline
50
              !read adm/date.phtml $deadline
47
            $l_date_out $wims_name_at
51
              !set time_out=!replace internal : by H in $(timedeadline)
48
            !replace internal : by H in $(timedeadline).
52
              <strong>$l_date_out $wims_name_at $time_out</strong>.
49
          </div>
53
            </div>
50
        !else
54
          !else
51
          <div class="field box fullwidth">
55
            <div class="wims_msg info">
52
            $name_copie_type2
56
              $name_copie_type2
53
            !read adm/date.phtml $deadline
57
              !read adm/date.phtml $deadline
54
            $l_date_out $wims_name_at
58
              $l_date_out $wims_name_at
55
            !replace internal : by H in $(timedeadline).
59
              !replace internal : by H in $(timedeadline).
-
 
60
            </div>
56
            !if $seealltime=1
61
            !if $seealltime=1
57
              <div>$name_warningseealltime</div>
62
              <div class="wims_msg info">$name_warningseealltime</div>
58
            !endif
63
            !endif
59
          </div>
-
 
60
        !endif
64
          !endif
61
        !if $data_0!=$empty
65
          !if $data_0!=$empty
62
            <div class="field box fullwidth">
66
              <div class="field box fullwidth">
63
              $name_oldwork
67
                $name_oldwork
64
              !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2])
68
                !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2])
65
              $name_the
69
                $name_the
66
              !read adm/date.phtml $(data_0[3])
70
                !read adm/date.phtml $(data_0[3])
67
              $l_date_out $wims_name_at
71
                $l_date_out $wims_name_at
68
              !replace internal : by H in $(data_0[4]).
72
                !replace internal : by H in $(data_0[4]).
69
            </div>
73
              </div>
70
        !endif
74
          !endif
71
        !if $toolate=$empty
75
          !if $toolate=$empty
72
          <div class="field box fullwidth">
76
            <div>
73
            !! --- interface de chargement de fichier
77
              !! --- interface de chargement de fichier
74
            !if $quota_free>=1
78
              !if $quota_free>=1
75
              <fieldset class="property_fields blockcenter">
-
 
76
                !set wims_form_method=file
79
                !set wims_form_method=file
77
                !form reply
80
                !form reply
78
                  <input type="hidden" name="job" value="student1" />
81
                  <input type="hidden" name="job" value="student1" />
79
                  <input type="hidden" name="freework" value="$freework" />
82
                  <input type="hidden" name="freework" value="$freework" />
80
                  <label for="wims_deposit">$name_depos</label>
83
                  <label for="wims_deposit">$name_depos</label>
Line 82... Line 85...
82
                  <div class="formHelp">$name_copie_type2bis.
85
                  <div class="formHelp">$name_copie_type2bis.
83
                    !if $data_0!=$empty
86
                    !if $data_0!=$empty
84
                      $name_msgstudenthavefile
87
                      $name_msgstudenthavefile
85
                    !endif
88
                    !endif
86
                  </div>
89
                  </div>
87
                  !if $wims_user=supervisor
90
                  <input type="submit" value="$wims_name_submit"
88
                    <input type="submit" value="$wims_name_submit" disabled/>
91
                    !if $wims_user=supervisor
89
                  !else
92
                      disabled
90
                    <input type="submit" value="$wims_name_submit" />
93
                    !endif
91
                  !endif
94
                  />
92
                !formend
95
                !formend
93
              </fieldset>
-
 
94
            !else
96
              !else
95
              $name_warning_fullclass
97
                <div class="wims_msg warning">$name_warning_fullclass</div>
96
            !endif
98
              !endif
97
          </div>
99
            </div>
-
 
100
          !endif
98
        !endif
101
        !endif
99
      !endif
102
      !endif
100
    !endif
103
    </div>
101
  </div></div>
104
  </div>
102
!endif
105
!endif
103
 
106
 
104
!if $codownload=1 or $activetest>=2
107
!if $codownload=1 or $activetest>=2
105
  <div class="wims_widget_box medium_size">
108
  <div class="wims_widget_box medium_size">
106
    <div class="title_box">
109
    <div class="title_box">
107
      <h2 class="wims_title">$(name_correctedwork)</h2>
110
      <h2 class="wims_title">$(name_correctedwork)</h2>
108
    </div>
111
    </div>
109
    <div class="box_content">
112
    <div class="box_content">
110
      <div class="field box">
-
 
111
        !if $codownload=1
113
      !if $codownload=1
112
          !if $(data_0[5])!=$empty
114
        !if $(data_0[5])!=$empty
113
            !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
115
          !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
114
          !else
-
 
115
            $name_nouploaded
-
 
116
          !endif
-
 
117
        !else
116
        !else
118
            $(name_nomorecodownload).
117
          <div class="wims_msg info">$name_nouploaded</div>
119
        !endif
118
        !endif
-
 
119
      !else
-
 
120
        <div class="wims_msg info">$(name_nomorecodownload).</div>
120
      </div>
121
      !endif
121
      !if $scoring>0
122
      !if $scoring>0
122
        <div class="field box">
123
        <div class="field box">
123
          !let k_=!positionof item $wims_user in $uulist
124
          !let k_=!positionof item $wims_user in $uulist
124
          !if $k_!=$empty
125
          !if $k_!=$empty
125
            !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
126
            !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
Line 146... Line 147...
146
    </div>
147
    </div>
147
    <div class="box_content">
148
    <div class="box_content">
148
      !if $displaysolution=1
149
      !if $displaysolution=1
149
        !read proc/listfile.phtml solution 0
150
        !read proc/listfile.phtml solution 0
150
      !else
151
      !else
-
 
152
        <div class="wims_msg info">
151
        $name_solutiondate
153
          $name_solutiondate
152
        !read adm/date.phtml $soldate
154
          !read adm/date.phtml $soldate
-
 
155
          !let time_out = !replace internal : by H in $(timesoldate)
153
        $l_date_out
156
          <strong>$l_date_out $wims_name_at $time_out</strong>.
154
        $wims_name_at
157
        </div>
155
        !replace internal : by H in $(timesoldate).
-
 
156
      !endif
158
      !endif
157
    </div>
159
    </div>
158
  </div>
160
  </div>
159
!endif
161
!endif
160
 
162
 
161
!if $activetest>1 and $type>=2
163
!if $activetest>1 and $type>=2
162
  $name_userperimemessage
164
  <div class="clearall wims_msg info">$name_userperimemessage</div>
163
!endif
165
!endif