Rev 18004 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14537 | guerimand | 1 | !! display freework page for student and type=3 |
2 | |||
3 | !if $emptypage=yes |
||
4 | !exit |
||
5 | !endif |
||
6 | |||
17780 | czzmrn | 7 | !! todo: tune when we want the link to appear (we do not want link |
8 | !! to appear when students haven't yet opened their |
||
9 | !! freework) |
||
10 | !if ($toolate=yes or $putiworkco=1) and $wims_user=supervisor |
||
18282 | czzmrn | 11 | !read adm/class/getnextuser $wims_class,$userv,viewuser3,userv |
17780 | czzmrn | 12 | !endif |
13 | |||
16324 | guerimand | 14 | !if $desc!=$empty |
15 | <div class="wims_freework_desc">$desc</div> |
||
16 | !endif |
||
14537 | guerimand | 17 | |
14773 | bpr | 18 | <div class="wims_widget_box"> |
14874 | guerimand | 19 | <div class="title_box"> |
20 | <h2 class="wims_title">$(name_subject)</h2> |
||
21 | </div> |
||
22 | <div class="box_content"> |
||
23 | !for i=1 to $nbrezoneteacher |
||
14572 | bpr | 24 | !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $userv |
14874 | guerimand | 25 | !next i |
26 | </div> |
||
14773 | bpr | 27 | </div> |
14537 | guerimand | 28 | |
17606 | czzmrn | 29 | !if $nbrezonestudent>0 |
14773 | bpr | 30 | <div class="wims_widget_box"> |
14874 | guerimand | 31 | <div class="title_box"> |
32 | <h2 class="wims_title">$(name_workof) $name_studentname</h2> |
||
33 | </div> |
||
34 | <div class="box_content"> |
||
35 | !for i=1 to $nbrezonestudent |
||
14572 | bpr | 36 | !read applet/$(ztypestudent$i) displayhtml student $i 0 $userv |
14874 | guerimand | 37 | !next i |
38 | </div> |
||
14773 | bpr | 39 | </div> |
17606 | czzmrn | 40 | !endif |
14537 | guerimand | 41 | |
16542 | guerimand | 42 | !if $putiworkco!=1 or $seealltime=1 |
14788 | guerimand | 43 | <div class="wims_widget_box"> |
14874 | guerimand | 44 | <div class="title_box"><h2 class="wims_title">$(name_solution)</h2></div> |
14788 | guerimand | 45 | !else |
46 | <fieldset class="property_fields blockcenter"> |
||
14796 | guerimand | 47 | <legend>$(name_solution)</legend> |
48 | <div class="field box"> |
||
14788 | guerimand | 49 | !endif |
16542 | guerimand | 50 | |
51 | !if $now<$d1 |
||
14537 | guerimand | 52 | !let date=$date1 |
53 | <div class="formHelp">$(name_desc_listwork4).</div> |
||
16542 | guerimand | 54 | !if $seealltime=1 |
17606 | czzmrn | 55 | !! in case of teacher can see work before endtime, |
56 | !! he can write remark on what he see of the actual work of the student |
||
16542 | guerimand | 57 | !form reply |
17198 | guerimand | 58 | <input type="hidden" name="job" value="remark3" > |
59 | <input type="hidden" name="freework" value="$freework"> |
||
60 | <input type="hidden" name="userv" value="$userv"> |
||
17606 | czzmrn | 61 | !! TODO: need to check what we want to show |
17638 | czzmrn | 62 | !if $nbrezonestudent>0 |
17606 | czzmrn | 63 | <div class="field box"> |
64 | <label for="remark">$(name_remark)</label> |
||
65 | <div class="formHelp">$name_desc_remark</div> |
||
66 | <textarea id="remark" class="iEdit" rows="6" cols="65" name="remark">$remark</textarea> |
||
67 | </div> |
||
68 | !endif |
||
16542 | guerimand | 69 | <div class="field box"> |
16568 | guerimand | 70 | <label for="finalremark">$(name_finalremark)</label> |
71 | <div class="formHelp">$name_desc_finalremark</div> |
||
72 | <textarea id="finalremark" class="iEdit" rows="6" cols="65" name="finalremark">$finalremark</textarea> |
||
73 | </div> |
||
17198 | guerimand | 74 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark"> |
16542 | guerimand | 75 | !set wims_ref_class= wims_button wims_secondary_button |
76 | !href module=$module&+freework=$freework&job=configfw $wims_name_giveup |
||
77 | </div> |
||
78 | !formend |
||
79 | !endif |
||
80 | !else |
||
14758 | guerimand | 81 | !if $scoring>0 |
82 | !let k_=!positionof item $userv in $uulist |
||
83 | !if $k_!=$empty |
||
84 | !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades |
||
85 | !let t_=!item $[$scoring+2] of $t_ |
||
86 | !else |
||
87 | !let t_=$empty |
||
88 | !endif |
||
89 | !endif |
||
14537 | guerimand | 90 | !if $putiworkco!=1 |
14874 | guerimand | 91 | <div class="box_content"> |
92 | !let date=$date2 |
||
93 | <div class="formHelp">$(name_desc_listwork5).</div> |
||
94 | <div class="field box"> |
||
95 | !if $scoring>0 |
||
96 | <div><strong>$(name_score)</strong> $t_ (/$maxscore)</div> |
||
97 | !endif |
||
16324 | guerimand | 98 | !if $userfileexists=1 |
99 | <div class="field box"> |
||
16542 | guerimand | 100 | <strong>$(name_correctedfile)</strong> |
101 | !read proc/listfile.phtml usersol 0 $userv |
||
16324 | guerimand | 102 | </div> |
103 | !endif |
||
17638 | czzmrn | 104 | !if $nbrezonestudent>0 |
17606 | czzmrn | 105 | <div><strong>$name_remark</strong> $remark</div> |
106 | !endif |
||
16568 | guerimand | 107 | <div><strong>$name_finalremark</strong> $finalremark</div> |
14874 | guerimand | 108 | </div> |
14758 | guerimand | 109 | </div> |
14537 | guerimand | 110 | !else |
16324 | guerimand | 111 | !if $userfileexists=1 |
112 | !let wims_form_method=file |
||
113 | !endif |
||
14537 | guerimand | 114 | !form reply |
17198 | guerimand | 115 | <input type="hidden" name="job" value="uploadco3" > |
116 | <input type="hidden" name="freework" value="$freework"> |
||
117 | <input type="hidden" name="userv" value="$userv"> |
||
16324 | guerimand | 118 | !if $userfileexists=1 |
119 | <div class="field box"> |
||
16542 | guerimand | 120 | <label for="file">$(name_correctedfile)</label> |
121 | !read proc/listfile.phtml usersol 1 $userv |
||
17198 | guerimand | 122 | <input type="file" id="file" size="35" name="wims_deposit" > |
16324 | guerimand | 123 | </div> |
124 | !endif |
||
17638 | czzmrn | 125 | !if $seealltime=1 and $nbrezonestudent>0 |
16755 | guerimand | 126 | <div><strong>$name_remark</strong> $remark</div> |
127 | !endif |
||
14537 | guerimand | 128 | <div class="field box"> |
16568 | guerimand | 129 | <label for="finalremark">$(name_finalremark)</label> |
130 | <div class="formHelp">$name_desc_finalremark</div> |
||
131 | <textarea id="finalremark" class="iEdit" rows="6" cols="65" name="finalremark">$finalremark</textarea> |
||
14537 | guerimand | 132 | </div> |
133 | !if $scoring>0 |
||
14773 | bpr | 134 | <div class="field box"> |
14758 | guerimand | 135 | <label for="score">$(name_score) (/$maxscore)</label> |
17198 | guerimand | 136 | <input type="text" id="score" name="score" value="$t_" size="3" > |
14537 | guerimand | 137 | </div> |
138 | !endif |
||
17198 | guerimand | 139 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark"> |
14537 | guerimand | 140 | !set wims_ref_class= wims_button wims_secondary_button |
141 | !href module=$module&+freework=$freework&job=configfw $wims_name_giveup |
||
14758 | guerimand | 142 | </div> |
143 | !formend |
||
144 | !endif |
||
16542 | guerimand | 145 | !endif |
146 | </div> |
||
147 | !if $putiworkco=1 or $seealltime=1 |
||
14788 | guerimand | 148 | </fieldset> |
14796 | guerimand | 149 | !else |
150 | </div> |
||
14788 | guerimand | 151 | !endif |
17780 | czzmrn | 152 | |
14537 | guerimand | 153 | !reset save,saveremark |