Subversion Repositories wimsdev

Rev

Rev 16568 | Rev 17198 | 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.       !if $nbrezonestudent=0
  21.         $name_copie_type1
  22.       !else
  23.         $name_copie_type2
  24.       !endif
  25.       !read adm/date.phtml $deadline
  26.       $l_date_out $wims_name_at
  27.       !replace internal : by H in $(timedeadline).
  28.       !if $seealltime=1
  29.         <div>$name_warningseealltime</div>
  30.       !endif
  31.     !endif
  32. !endif
  33. !if $activetest>1
  34.     <div class="wims_msg info">$name_userperimemessage3</div>
  35. !endif
  36. !if $desc!=$empty
  37.   <div class="wims_freework_desc">$desc</div>
  38. !endif
  39.  
  40. <div class="wims_widget_box">
  41.   <div class="title_box">
  42.     <h2 class="wims_title">$(name_subject)</h2>
  43.   </div>
  44.   <div class="box_content">
  45.     !for i=1 to $nbrezoneteacher
  46.       !if $(ztypeteacher$i)=wimsexo
  47.         !read applet/$(ztypeteacher$i) displayhtml teacher $i $studentmode $wims_user
  48.       !else
  49.         !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $wims_user
  50.       !endif
  51.     !next i
  52.   </div>
  53. </div>
  54.  
  55. !if $nbrezonestudent>0
  56. !if $studentmode=1
  57.   <fieldset class="property_fields blockcenter">
  58.     <legend>$(name_answerzone)</legend>
  59.     !set wims_form_method=post
  60.     !form reply
  61.       <input type="hidden" name="job" value="$job" />
  62.       <input type="hidden" name="freework" value="$freework" />
  63.       <input type="hidden" name="job2" value="savezone" />
  64.       !reset with_text
  65.       !for i=1 to $nbrezonestudent
  66.           !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  67.           !if $(ztypestudent$i)=texte
  68.             !let with_text=1
  69.           !endif
  70.       !next i
  71.       !if $onclickactionlist!=$empty
  72.         !let onclickactionlist=onclick="$onclickactionlist"
  73.       !endif
  74.       <div class="wimscenter">
  75.         !if $wims_user=supervisor
  76.           <input type="submit" value="$wims_name_tosave" disabled />
  77.         !else
  78.           <input type="submit" value="$wims_name_tosave" $onclickactionlist />
  79.           !if $with_text=1
  80.             <input type="submit" name="cf_preview" value="$name_preview" class="wims_secondary_button" />
  81.             !reset cf_preview
  82.           !endif
  83.         !endif
  84.       </div>
  85.     !formend
  86.     !! ------- manage of file form upload in all zone
  87.     !if $ltdownloadzone!=$empty
  88.       !if $wims_user=supervisor
  89.         !read proc/uploadfileform.phtml $ltdownloadzone\
  90. 1\
  91. disabled
  92.       !else
  93.         !read proc/uploadfileform.phtml $ltdownloadzone\
  94. 1
  95.       !endif
  96.     !endif
  97.   </fieldset>
  98. !else
  99.   !if $activetest<2
  100.     <div class="wims_widget_box">
  101.       <div class="title_box">
  102.         <h2 class="wims_title">$(name_answerzone)</h2>
  103.       </div>
  104.       <div class="box_content">
  105.         !for i=1 to $nbrezonestudent
  106.             !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  107.         !next i
  108.       </div>
  109.     </div>
  110.   !endif
  111. !endif
  112. !endif
  113.  
  114. !if $codownload=1 or $activetest>=2
  115.   <div class="wims_widget_box">
  116.     <div class="title_box">
  117.       <h2 class="wims_title">$(name_app)</h2>
  118.     </div>
  119.     <div class="box_content">
  120.       !if $sizelimitfile>0
  121.         <div><strong>$(name_correctedfile)</strong>
  122.            !read proc/listfile.phtml usersol 0 $userv
  123.         </div>
  124.       !endif
  125.       <div><strong>$name_remark</strong>$remark</div>
  126.       <div><strong>$name_finalremark</strong>$finalremark</div>
  127.       !if $scoring>0
  128.         <div>
  129.           !let k_=!positionof item $wims_user in $uulist
  130.           !if $k_!=$empty
  131.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  132.             !let t_=!item $[$scoring+2] of $t_
  133.           !else
  134.             !let t_=$empty
  135.           !endif
  136.           <strong>$(name_score)</strong> $t_/$maxscore
  137.         </div>
  138.       !endif
  139.     </div>
  140.   </div>
  141. !else
  142.   !if $seealltime=1 and $remark!=$empty
  143.     <div class="wims_widget_box">
  144.     <div class="box_content">
  145.       <div class="title_box"><h2 class="wims_title">$(name_remarkinwork)</h2></div>
  146.       <div>$remark</div>
  147.     </div>
  148.     </div>
  149.   !endif
  150. !endif
  151.  
  152.  
  153. !if $flistsolution!=$empty
  154.   <div class="wims_widget_box">
  155.     <div class="title_box">
  156.       <h2 class="wims_title">$(name_solution)</h2>
  157.     </div>
  158.     <div class="box_content">
  159.       !if $displaysolution=1
  160.         !read proc/listfile.phtml solution 0
  161.       !else
  162.         $name_solutiondate
  163.         !read adm/date.phtml $soldate
  164.         $l_date_out
  165.         $wims_name_at
  166.         !replace internal : by H in $(timesoldate).
  167.       !endif
  168.     </div>
  169.   </div>
  170. !endif
  171.