Subversion Repositories wimsdev

Rev

Rev 16755 | Rev 17638 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! display freework page for student and type=3
  2.  
  3. !if $emptypage=yes
  4.   !exit
  5. !endif
  6.  
  7. !if $desc!=$empty
  8.   <div class="wims_freework_desc">$desc</div>
  9. !endif
  10.  
  11. <div class="wims_widget_box">
  12.   <div class="title_box">
  13.     <h2 class="wims_title">$(name_subject)</h2>
  14.   </div>
  15.   <div class="box_content">
  16.     !for i=1 to $nbrezoneteacher
  17.       !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $userv
  18.     !next i
  19.   </div>
  20. </div>
  21.  
  22.  
  23. <div class="wims_widget_box">
  24.   <div class="title_box">
  25.     <h2 class="wims_title">$(name_workof) $name_studentname</h2>
  26.   </div>
  27.   <div class="box_content">
  28.     !for i=1 to $nbrezonestudent
  29.       !read applet/$(ztypestudent$i) displayhtml student $i 0 $userv
  30.     !next i
  31.   </div>
  32. </div>
  33.  
  34. !if $putiworkco!=1 or $seealltime=1
  35.   <div class="wims_widget_box">  
  36.     <div class="title_box"><h2 class="wims_title">$(name_solution)</h2></div>
  37. !else
  38.   <fieldset class="property_fields blockcenter">
  39.     <legend>$(name_solution)</legend>
  40.     <div class="field box">
  41. !endif
  42.  
  43. !if $now<$d1
  44.       !let date=$date1
  45.       <div class="formHelp">$(name_desc_listwork4).</div>
  46.       !if $seealltime=1
  47.         !! in case of teacher can see work before endtime, he can write remark on what he see of the actual work of the student
  48.         !form reply
  49.           <input type="hidden" name="job" value="remark3" >
  50.           <input type="hidden" name="freework" value="$freework">
  51.           <input type="hidden" name="userv" value="$userv">
  52.           <div class="field box">
  53.             <label for="remark">$(name_remark)</label>
  54.             <div class="formHelp">$name_desc_remark</div>
  55.             <textarea id="remark" class="iEdit" rows="6" cols="65" name="remark">$remark</textarea>
  56.           </div>
  57.           <div class="field box">
  58.             <label for="finalremark">$(name_finalremark)</label>
  59.             <div class="formHelp">$name_desc_finalremark</div>
  60.             <textarea id="finalremark" class="iEdit" rows="6" cols="65" name="finalremark">$finalremark</textarea>
  61.           </div>
  62.           <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark">
  63.             !set wims_ref_class= wims_button wims_secondary_button
  64.             !href module=$module&+freework=$freework&job=configfw $wims_name_giveup
  65.           </div>
  66.          !formend
  67.       !endif
  68. !else
  69.       !if $scoring>0
  70.         !let k_=!positionof item $userv in $uulist
  71.         !if $k_!=$empty
  72.           !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  73.           !let t_=!item $[$scoring+2] of $t_
  74.         !else
  75.           !let t_=$empty
  76.         !endif
  77.       !endif
  78.       !if $putiworkco!=1
  79.         <div class="box_content">
  80.           !let date=$date2
  81.           <div class="formHelp">$(name_desc_listwork5).</div>
  82.           <div class="field box">
  83.             !if $scoring>0
  84.               <div><strong>$(name_score)</strong> $t_ (/$maxscore)</div>
  85.             !endif
  86.             !if $userfileexists=1
  87.               <div class="field box">
  88.                 <strong>$(name_correctedfile)</strong>
  89.                 !read proc/listfile.phtml usersol 0 $userv
  90.               </div>
  91.             !endif
  92.             <div><strong>$name_remark</strong> $remark</div>
  93.             <div><strong>$name_finalremark</strong> $finalremark</div>
  94.           </div>
  95.         </div>
  96.       !else
  97.         !if $userfileexists=1
  98.           !let wims_form_method=file
  99.         !endif
  100.         !form reply
  101.           <input type="hidden" name="job" value="uploadco3" >
  102.           <input type="hidden" name="freework" value="$freework">
  103.           <input type="hidden" name="userv" value="$userv">
  104.           !if $userfileexists=1
  105.             <div class="field box">
  106.               <label for="file">$(name_correctedfile)</label>
  107.               !read proc/listfile.phtml usersol 1 $userv
  108.               <input type="file" id="file" size="35" name="wims_deposit" >
  109.             </div>
  110.           !endif
  111.           !if $seealltime=1
  112.             <div><strong>$name_remark</strong> $remark</div>
  113.           !endif
  114.           <div class="field box">
  115.             <label for="finalremark">$(name_finalremark)</label>
  116.             <div class="formHelp">$name_desc_finalremark</div>
  117.             <textarea id="finalremark" class="iEdit" rows="6" cols="65" name="finalremark">$finalremark</textarea>
  118.           </div>
  119.           !if $scoring>0
  120.             <div class="field box">
  121.               <label for="score">$(name_score) (/$maxscore)</label>
  122.               <input type="text" id="score" name="score" value="$t_" size="3" >
  123.             </div>
  124.           !endif
  125.           <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark">
  126.             !set wims_ref_class= wims_button wims_secondary_button
  127.             !href module=$module&+freework=$freework&job=configfw $wims_name_giveup
  128.           </div>
  129.         !formend
  130.       !endif
  131. !endif
  132. </div>
  133. !if $putiworkco=1 or $seealltime=1
  134. </fieldset>
  135. !else
  136. </div>
  137. !endif
  138. !reset save,saveremark
  139.