Subversion Repositories wimsdev

Rev

Rev 15034 | Rev 16309 | 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.       !reset with_text
  54.       !for i=1 to $nbrezonestudent
  55.           !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  56.           !if $(ztypestudent$i)=texte
  57.             !let with_text=1
  58.           !endif
  59.       !next i
  60.       !if $onclickactionlist!=$empty
  61.         !let onclickactionlist=onclick="$onclickactionlist"
  62.       !endif
  63.       <div class="wimscenter">
  64.         !if $wims_user=supervisor
  65.           <input type="submit" value="$wims_name_tosave" disabled />
  66.         !else
  67.           <input type="submit" value="$wims_name_tosave" $onclickactionlist />
  68.           !if $with_text=1
  69.             <input type="submit" name="cf_preview" value="$name_preview" class="wims_secondary_button" />
  70.             !reset cf_preview
  71.           !endif
  72.         !endif
  73.       </div>
  74.     !formend
  75.     !! ------- manage of file form upload in all zone
  76.     !if $ltdownloadzone!=$empty
  77.       !if $wims_user=supervisor
  78.         !read proc/uploadfileform.phtml $ltdownloadzone\
  79. 1\
  80. disabled
  81.       !else
  82.         !read proc/uploadfileform.phtml $ltdownloadzone\
  83. 1
  84.       !endif
  85.     !endif
  86.   </fieldset>
  87. !else
  88.   !if $activetest<2
  89.     <div class="wims_widget_box">
  90.       <div class="title_box">
  91.         <h2 class="wims_title">$(name_answerzone)</h2>
  92.       </div>
  93.       <div class="box_content">
  94.         !for i=1 to $nbrezonestudent
  95.             !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  96.         !next i
  97.       </div>
  98.     </div>
  99.   !endif
  100. !endif
  101.  
  102. !if $codownload=1 or $activetest>=2
  103.   <div class="wims_widget_box">
  104.     <div class="title_box">
  105.       <h2 class="wims_title">$(name_remark)</h2>
  106.     </div>
  107.     <div class="box_content">$remark
  108.       !if $scoring>0
  109.         <div>
  110.           !let k_=!positionof item $wims_user in $uulist
  111.           !if $k_!=$empty
  112.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  113.             !let t_=!item $[$scoring+2] of $t_
  114.           !else
  115.             !let t_=$empty
  116.           !endif
  117.           <strong>$(name_score)</strong> $t_/$maxscore
  118.         </div>
  119.       !endif
  120.     </div>
  121.   </div>
  122. !endif
  123.  
  124. !if $flistsolution!=$empty
  125.   <div class="wims_widget_box">
  126.     <div class="title_box">
  127.       <h2 class="wims_title">$(name_solution)</h2>
  128.     </div>
  129.     <div class="box_content">
  130.       !if $displaysolution=1
  131.         !read proc/listfile.phtml solution 0
  132.       !else
  133.         $name_solutiondate
  134.         !read adm/date.phtml $soldate
  135.         $l_date_out
  136.         $wims_name_at
  137.         !replace internal : by H in $(timesoldate).
  138.       !endif
  139.     </div>
  140.   </div>
  141. !endif
  142.