Rev 15471 | Rev 16084 | 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"> |
||
67 | $name_oldwork |
||
68 | !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2]) |
||
69 | $name_the |
||
70 | !read adm/date.phtml $(data_0[3]) |
||
71 | $l_date_out $wims_name_at |
||
72 | !replace internal : by H in $(data_0[4]). |
||
73 | </div> |
||
74 | !endif |
||
75 | !if $toolate=$empty |
||
76 | <div> |
||
77 | !! --- interface de chargement de fichier |
||
78 | !if $quota_free>=1 |
||
14947 | guerimand | 79 | !set wims_form_method=file |
80 | !form reply |
||
81 | <input type="hidden" name="job" value="student1" /> |
||
82 | <input type="hidden" name="freework" value="$freework" /> |
||
83 | <label for="wims_deposit">$name_depos</label> |
||
84 | <input type="file" size="35" name="wims_deposit" id="wims_deposit" /> |
||
15471 | bpr | 85 | <div class="formHelp">$name_copie_type2bis. |
14947 | guerimand | 86 | !if $data_0!=$empty |
87 | $name_msgstudenthavefile |
||
88 | !endif |
||
89 | </div> |
||
15488 | obado | 90 | <input type="submit" value="$wims_name_submit" |
91 | !if $wims_user=supervisor |
||
92 | disabled |
||
93 | !endif |
||
94 | /> |
||
14947 | guerimand | 95 | !formend |
15488 | obado | 96 | !else |
97 | <div class="wims_msg warning">$name_warning_fullclass</div> |
||
98 | !endif |
||
99 | </div> |
||
100 | !endif |
||
14297 | guerimand | 101 | !endif |
102 | !endif |
||
15488 | obado | 103 | </div> |
104 | </div> |
||
14297 | guerimand | 105 | !endif |
106 | |||
14537 | guerimand | 107 | !if $codownload=1 or $activetest>=2 |
14947 | guerimand | 108 | <div class="wims_widget_box medium_size"> |
109 | <div class="title_box"> |
||
110 | <h2 class="wims_title">$(name_correctedwork)</h2> |
||
111 | </div> |
||
112 | <div class="box_content"> |
||
15488 | obado | 113 | !if $codownload=1 |
114 | !if $(data_0[5])!=$empty |
||
115 | !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5]) |
||
14537 | guerimand | 116 | !else |
15488 | obado | 117 | <div class="wims_msg info">$name_nouploaded</div> |
14537 | guerimand | 118 | !endif |
15488 | obado | 119 | !else |
120 | <div class="wims_msg info">$(name_nomorecodownload).</div> |
||
121 | !endif |
||
14947 | guerimand | 122 | !if $scoring>0 |
123 | <div class="field box"> |
||
124 | !let k_=!positionof item $wims_user in $uulist |
||
125 | !if $k_!=$empty |
||
126 | !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades |
||
127 | !let t_=!item $[$scoring+2] of $t_ |
||
128 | !else |
||
129 | !let t_=$empty |
||
130 | !endif |
||
131 | <strong>$(name_score)</strong> |
||
132 | !if $t_!=$empty |
||
133 | $t_/$maxscore |
||
134 | !else |
||
135 | $name_noscore |
||
136 | !endif |
||
137 | </div> |
||
14537 | guerimand | 138 | !endif |
14297 | guerimand | 139 | </div> |
14947 | guerimand | 140 | </div> |
14297 | guerimand | 141 | !endif |
142 | |||
14796 | guerimand | 143 | !if $flistsolution!=$empty |
14947 | guerimand | 144 | <div class="wims_widget_box medium_size"> |
145 | <div class="title_box"> |
||
146 | <h2 class="wims_title">$(name_solution)</h2> |
||
147 | </div> |
||
148 | <div class="box_content"> |
||
149 | !if $displaysolution=1 |
||
15470 | guerimand | 150 | !read proc/listfile.phtml solution 0 |
14947 | guerimand | 151 | !else |
15488 | obado | 152 | <div class="wims_msg info"> |
153 | $name_solutiondate |
||
154 | !read adm/date.phtml $soldate |
||
155 | !let time_out = !replace internal : by H in $(timesoldate) |
||
156 | <strong>$l_date_out $wims_name_at $time_out</strong>. |
||
157 | </div> |
||
14947 | guerimand | 158 | !endif |
159 | </div> |
||
14796 | guerimand | 160 | </div> |
161 | !endif |
||
14297 | guerimand | 162 | |
163 | !if $activetest>1 and $type>=2 |
||
15488 | obado | 164 | <div class="clearall wims_msg info">$name_userperimemessage</div> |
14297 | guerimand | 165 | !endif |