Subversion Repositories wimsdev

Rev

Rev 14830 | Rev 15014 | 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 $activetest>=2
  8.   <div class="wims_msg info">
  9.     $name_copie_toolate2
  10.   </div>
  11. !else
  12.     !if $toolate=yes
  13.       <div class="wims_msg info">
  14.       $name_copie_toolate
  15.       !read adm/date.phtml $deadline
  16.       $l_date_out $wims_name_at
  17.       !replace internal : by H in $(timedeadline).
  18.       </div>
  19.     !else
  20.       $name_copie_type2
  21.       !read adm/date.phtml $deadline
  22.       $l_date_out $wims_name_at
  23.       !replace internal : by H in $(timedeadline).
  24.       !if $seealltime=1
  25.         <div>$name_warningseealltime</div>
  26.       !endif
  27.     !endif
  28. !endif
  29. !if $activetest>1
  30.     <div class="wims_msg info">$name_userperimemessage3</div>
  31. !endif
  32. <div class="wims_sheet_desc">$desc</div>
  33.  
  34. <div class="wims_widget_box">
  35.   <div class="title_box">
  36.     <h2 class="wims_title">$(name_subject)</h2>
  37.   </div>
  38.   <div class="box_content">
  39.     !for i=1 to $nbrezoneteacher
  40.       !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $wims_user
  41.     !next i
  42.   </div>
  43. </div>
  44.  
  45. !if $studentmode=1
  46.   <fieldset class="property_fields blockcenter">
  47.     <legend>$(name_answerzone)</legend>
  48.     !set wims_form_method=post
  49.     !form reply
  50.       <input type="hidden" name="job" value="$job" />
  51.       <input type="hidden" name="freework" value="$freework" />
  52.       <input type="hidden" name="job2" value="savezone" />
  53.       !for i=1 to $nbrezonestudent
  54.           !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  55.       !next i
  56.       !if $onclickactionlist!=$empty
  57.         !let onclickactionlist=onclick="$onclickactionlist"
  58.       !endif
  59.       <div class="wimscenter"><input type="submit" value="$wims_name_tosave" $onclickactionlist /></div>
  60.     !formend
  61.     !! ------- manage of file form upload in all zone
  62.     !if $ltdownloadzone!=$empty
  63.       !read proc/uploadfileform.phtml $ltdownloadzone\
  64. 1
  65.     !endif
  66.   </fieldset>
  67. !else
  68.   !if $activetest<2
  69.     <div class="wims_widget_box">
  70.       <div class="title_box">
  71.         <h2 class="wims_title">$(name_answerzone)</h2>
  72.       </div>
  73.       <div class="box_content">
  74.         !for i=1 to $nbrezonestudent
  75.             !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  76.         !next i
  77.       </div>
  78.     </div>
  79.   !endif
  80. !endif
  81.  
  82. !if $codownload=1 or $activetest>=2
  83.   <div class="wims_widget_box">
  84.     <div class="title_box">
  85.       <h2 class="wims_title">$(name_remark)</h2>
  86.     </div>
  87.     <div class="box_content">$remark
  88.       !if $scoring>0
  89.         <div>
  90.           !let k_=!positionof item $wims_user in $uulist
  91.           !if $k_!=$empty
  92.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  93.             !let t_=!item $[$scoring+2] of $t_
  94.           !else
  95.             !let t_=$empty
  96.           !endif
  97.           <strong>$(name_score)</strong> $t_/$maxscore
  98.         </div>
  99.       !endif
  100.     </div>
  101.   </div>
  102. !endif
  103.  
  104. !if $flistsolution!=$empty
  105.   <div class="wims_widget_box">
  106.     <div class="title_box">
  107.       <h2 class="wims_title">$(name_solution)</h2>
  108.     </div>
  109.     <div class="box_content">
  110.       !if $displaysolution=1
  111.         !read proc/listfile.phtml solution 0
  112.       !else
  113.         $name_solutiondate
  114.         !read adm/date.phtml $soldate
  115.         $l_date_out
  116.         $wims_name_at
  117.         !replace internal : by H in $(timesoldate).
  118.       !endif
  119.     </div>
  120.   </div>
  121. !endif
  122.