Rev 14827 | Rev 14947 | 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" /> |
14865 | guerimand | 82 | <div class="formHelp">$name_copie_type2bis. |
83 | !if $data_0!=$empty |
||
84 | $name_msgstudenthavefile |
||
85 | !endif |
||
86 | </div> |
||
14827 | guerimand | 87 | <input type="submit" value="$wims_name_submit" /> |
14297 | guerimand | 88 | !formend |
14537 | guerimand | 89 | !else |
90 | $name_warning_fullclass |
||
14297 | guerimand | 91 | !endif |
92 | </div> |
||
93 | !endif |
||
94 | !endif |
||
95 | !endif |
||
14572 | bpr | 96 | </fieldset> |
14297 | guerimand | 97 | !endif |
98 | |||
14537 | guerimand | 99 | !if $codownload=1 or $activetest>=2 |
14297 | guerimand | 100 | <fieldset class="property_fields blockcenter"> |
101 | <legend>$(name_correctedwork)</legend> |
||
14537 | guerimand | 102 | <div class="field box"> |
103 | !if $(data_0[5])!=$empty |
||
104 | !if $codownload=1 |
||
105 | !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5]) |
||
106 | !else |
||
107 | $(name_nomorecodownload). |
||
108 | !endif |
||
109 | !else |
||
110 | $name_nouploaded |
||
111 | !endif |
||
14297 | guerimand | 112 | </div> |
14537 | guerimand | 113 | !if $scoring>0 |
114 | <div class="field box"> |
||
115 | !let k_=!positionof item $wims_user in $uulist |
||
116 | !if $k_!=$empty |
||
117 | !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades |
||
118 | !let t_=!item $[$scoring+2] of $t_ |
||
119 | !else |
||
120 | !let t_=$empty |
||
121 | !endif |
||
122 | <strong>$(name_score)</strong> |
||
123 | !if $t_!=$empty |
||
124 | $t_/$maxscore |
||
125 | !else |
||
126 | $name_noscore |
||
127 | !endif |
||
128 | </div> |
||
129 | !endif |
||
14297 | guerimand | 130 | </fieldset> |
131 | !endif |
||
132 | |||
14796 | guerimand | 133 | !if $flistsolution!=$empty |
134 | <div class="wims_widget_box"> |
||
135 | <h2 class="box_title">$(name_solution)</h2> |
||
136 | !if $displaysolution=1 |
||
137 | <div> |
||
138 | <ul class="inline"> |
||
139 | !for f in $(flistsolution) |
||
140 | <li class="text-icon file"> |
||
141 | !getfile freeworks/$freework/$f $f |
||
142 | </li> |
||
143 | !next f |
||
144 | </ul> |
||
145 | </div> |
||
146 | !else |
||
147 | $name_solutiondate |
||
148 | !read adm/date.phtml $soldate |
||
149 | $l_date_out |
||
150 | $wims_name_at |
||
151 | !replace internal : by H in $(timesoldate). |
||
152 | !endif |
||
153 | </div> |
||
154 | !endif |
||
14297 | guerimand | 155 | |
156 | !if $activetest>1 and $type>=2 |
||
157 | $name_userperimemessage |
||
158 | !endif |