Subversion Repositories wimsdev

Rev

Rev 14796 | Rev 16542 | 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. <div class="wims_sheet_desc">$desc</div>
  8.  
  9. <div class="wims_widget_box">
  10.   <div class="title_box">
  11.     <h2 class="wims_title">$(name_subject)</h2>
  12.   </div>
  13.   <div class="box_content">
  14.     !for i=1 to $nbrezoneteacher
  15.       !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $userv
  16.     !next i
  17.   </div>
  18. </div>
  19.  
  20.  
  21. <div class="wims_widget_box">
  22.   <div class="title_box">
  23.     <h2 class="wims_title">$(name_workof) $name_studentname</h2>
  24.   </div>
  25.   <div class="box_content">
  26.     !for i=1 to $nbrezonestudent
  27.       !read applet/$(ztypestudent$i) displayhtml student $i 0 $userv
  28.     !next i
  29.   </div>
  30. </div>
  31.  
  32. !if $putiworkco!=1
  33.   <div class="wims_widget_box">  
  34.     <div class="title_box"><h2 class="wims_title">$(name_solution)</h2></div>
  35. !else
  36.   <fieldset class="property_fields blockcenter">
  37.     <legend>$(name_solution)</legend>
  38.     <div class="field box">
  39. !endif
  40.     !if $now<$d1
  41.       !let date=$date1
  42.       <div class="formHelp">$(name_desc_listwork4).</div>
  43.     !else
  44.       !if $scoring>0
  45.         !let k_=!positionof item $userv in $uulist
  46.         !if $k_!=$empty
  47.           !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  48.           !let t_=!item $[$scoring+2] of $t_
  49.         !else
  50.           !let t_=$empty
  51.         !endif
  52.       !endif
  53.       !if $putiworkco!=1
  54.         <div class="box_content">
  55.           !let date=$date2
  56.           <div class="formHelp">$(name_desc_listwork5).</div>
  57.           <div class="field box">
  58.             !if $scoring>0
  59.               <div><strong>$(name_score)</strong> $t_ (/$maxscore)</div>
  60.             !endif
  61.             <div><strong>$name_remark</strong> $remark</div>
  62.           </div>
  63.         </div>
  64.       !else
  65.         !form reply
  66.           <input type="hidden" name="job" value="uploadco3" />
  67.           <input type="hidden" name="freework" value="$freework"/>
  68.           <input type="hidden" name="userv" value="$userv"/>
  69.           <div class="field box">
  70.             <label for="remark">$(name_remark)</label>
  71.             <div class="formHelp">$name_desc_remark</div>
  72.             <textarea id="remark" class="iEdit" rows="6" cols="65" name="remark">$remark</textarea>
  73.           </div>
  74.           !if $scoring>0
  75.             <div class="field box">
  76.               <label for="score">$(name_score) (/$maxscore)</label>
  77.               <input type="text" id="score" name="score" value="$t_" size="3" />
  78.             </div>
  79.           !endif
  80.           <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark"/>
  81.             !set wims_ref_class= wims_button wims_secondary_button
  82.             !href module=$module&+freework=$freework&job=configfw $wims_name_giveup
  83.           </div>
  84.         !formend
  85.       !endif
  86.     !endif
  87.   </div>
  88. !if $putiworkco=1
  89. </fieldset>
  90. !else
  91. </div>
  92. !endif
  93. !reset save,saveremark
  94.