Subversion Repositories wimsdev

Rev

Rev 17606 | Rev 17780 | 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 $output=no
  8.   <div class="wims_msg info">
  9.   !if $beginning_!=$empty
  10.     $name_notyet $l_date_out $name_at $begh_:$begm_
  11.   !else
  12.     $name_notavailable
  13.   !endif
  14.   </div>
  15.   !exit
  16. !endif
  17.  
  18. !if $activetest>=2
  19.   <div class="wims_msg info">
  20.     $name_copie_toolate2
  21.   </div>
  22. !else
  23.     !if $toolate=yes
  24.       <div class="wims_msg info">
  25.       $name_copie_toolate
  26.       !read adm/date.phtml $deadline
  27.       $l_date_out $wims_name_at
  28.       !replace internal : by H in $(timedeadline).
  29.       </div>
  30.     !else
  31.       !if $nbrezonestudent=0
  32.         $name_copie_type1
  33.       !else
  34.         $name_copie_type2
  35.       !endif
  36.       !read adm/date.phtml $deadline
  37.       $l_date_out $wims_name_at
  38.       !replace internal : by H in $(timedeadline).
  39.  
  40.       !if $studentclose=1
  41.         !if $job2=consigne
  42.            <div class="wims_msg alert">
  43.            $name_close_alertpre1
  44.            <span class="wims_button disabled">$name_close_confirm</span>
  45.            $name_close_alertpre2
  46.            </div>
  47.         !else
  48.           !if $studentmode=0
  49.              !let closetime=!char 10 to 14 of $test_close
  50.              !read adm/date.phtml $test_close
  51.              <div class="wims_msg info">$(name_close_closed[1]) $l_date_out $wims_name_at $closetime ($(name_close_closed[2])).</div>
  52.           !else
  53.             !form reply
  54.              <div>$name_close_info
  55.              <input type="hidden" name="job" value="$job" >
  56.              <input type="hidden" name="freework" value="$freework" >
  57.              <input type="hidden" name="job2" value="consigne" >
  58.              <input type="submit" name="consigne" value="$name_close_doclose" >
  59.              </div>
  60.             !formend
  61.           !endif
  62.         !endif
  63.       !endif
  64.  
  65.       !if $seealltime=1
  66.         <div>$name_warningseealltime</div>
  67.       !endif
  68.     !endif
  69. !endif
  70. !if $activetest>1
  71.     <div class="wims_msg info">$name_userperimemessage3</div>
  72. !endif
  73. !if $desc!=$empty
  74.   <div class="wims_freework_desc">$desc</div>
  75. !endif
  76.  
  77. <div class="wims_widget_box">
  78.   <div class="title_box">
  79.     <h2 class="wims_title">$(name_subject)</h2>
  80.   </div>
  81.   <div class="box_content">
  82.     !for i=1 to $nbrezoneteacher
  83.       !if $(ztypeteacher$i)=wimsexo
  84.         !read applet/$(ztypeteacher$i) displayhtml teacher $i $studentmode $wims_user
  85.       !else
  86.         !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $wims_user
  87.       !endif
  88.     !next i
  89.   </div>
  90. </div>
  91.  
  92. !if $nbrezonestudent>0
  93. !if $studentmode=1
  94.   <fieldset class="property_fields blockcenter">
  95.     <legend>$(name_answerzone)</legend>
  96.     !set wims_form_method=post
  97.     !form reply
  98.       <input type="hidden" name="job" value="$job" >
  99.       <input type="hidden" name="freework" value="$freework" >
  100.       <input type="hidden" name="job2" value="savezone" >
  101.       !reset with_text
  102.       !for i=1 to $nbrezonestudent
  103.           !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  104.           !if $(ztypestudent$i)=texte
  105.             !let with_text=1
  106.           !endif
  107.       !next i
  108.       !if $onclickactionlist!=$empty
  109.         !let onclickactionlist=onclick="$onclickactionlist"
  110.       !endif
  111.       <div class="wimscenter">
  112.         !if $wims_user=supervisor
  113.           <input type="submit" value="$wims_name_tosave" disabled >
  114.         !else
  115.           <input type="submit" value="$wims_name_tosave" $onclickactionlist >
  116.           !if $with_text=1
  117.             <input type="submit" name="cf_preview" value="$name_preview" class="wims_secondary_button" >
  118.             !reset cf_preview
  119.           !endif
  120.         !endif
  121.       </div>
  122.     !formend
  123.     !! ------- manage of file form upload in all zone
  124.     !if $ltdownloadzone!=$empty
  125.       !if $wims_user=supervisor
  126.         !read proc/uploadfileform.phtml $ltdownloadzone\
  127. 1\
  128. disabled
  129.       !else
  130.         !read proc/uploadfileform.phtml $ltdownloadzone\
  131. 1
  132.       !endif
  133.     !endif
  134.   </fieldset>
  135. !else
  136.   !if $activetest<2
  137.     <div class="wims_widget_box">
  138.       <div class="title_box">
  139.         <h2 class="wims_title">$(name_answerzone)</h2>
  140.       </div>
  141.       <div class="box_content">
  142.         !for i=1 to $nbrezonestudent
  143.             !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  144.         !next i
  145.       </div>
  146.     </div>
  147.   !endif
  148. !endif
  149. !endif
  150.  
  151. !if $activetest<2
  152.   !if $studentclose=1 and $job2=consigne
  153.     !form reply
  154.     <div class="wims_widget_box">
  155.       <div class="title_box">
  156.         <h2 class="wims_title">$name_close_confirm</h2>
  157.       </div>
  158.     <div class="box_content">
  159.     <div class="wims_msg alert">
  160.       $name_close_alertpost
  161.     </div>
  162.     <div class="wimscenter">
  163.       <input type="hidden" name="job" value="$job" >
  164.       <input type="hidden" name="freework" value="$freework" >
  165.       <input type="hidden" name="job2" value="confirm" >
  166.       <input type="submit" name="confirm" value="$name_close_confirm" >
  167.       <input type="submit" name="giveup" class="wims_secondary_button" value="$wims_name_giveup">
  168.     </div>
  169.     </div>
  170.     </div>
  171.     !formend
  172.   !endif
  173. !endif
  174.  
  175. !if $codownload=1 or $activetest>=2
  176.   <div class="wims_widget_box">
  177.     <div class="title_box">
  178.       <h2 class="wims_title">$(name_app)</h2>
  179.     </div>
  180.     <div class="box_content">
  181.       !if $sizelimitfile>0
  182.         <div><strong>$(name_correctedfile)</strong>
  183.            !read proc/listfile.phtml usersol 0 $userv
  184.         </div>
  185.       !endif
  186.       !if $seealltime=1 and $nbrestudent>0
  187.         <div><strong>$name_remark</strong>$remark</div>
  188.       !endif
  189.       <div><strong>$name_finalremark</strong>$finalremark</div>
  190.       !if $scoring>0
  191.         <div>
  192.           !let k_=!positionof item $wims_user in $uulist
  193.           !if $k_!=$empty
  194.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  195.             !let t_=!item $[$scoring+2] of $t_
  196.           !else
  197.             !let t_=$empty
  198.           !endif
  199.           <strong>$(name_score)</strong> $t_/$maxscore
  200.         </div>
  201.       !endif
  202.     </div>
  203.   </div>
  204. !else
  205.   !if $seealltime=1 and $remark!=$empty
  206.     <div class="wims_widget_box">
  207.     <div class="box_content">
  208.       <div class="title_box"><h2 class="wims_title">$(name_remarkinwork)</h2></div>
  209.       <div>$remark</div>
  210.     </div>
  211.     </div>
  212.   !endif
  213. !endif
  214.  
  215.  
  216. !if $flistsolution!=$empty
  217.   <div class="wims_widget_box">
  218.     <div class="title_box">
  219.       <h2 class="wims_title">$(name_solution)</h2>
  220.     </div>
  221.     <div class="box_content">
  222.       !if $displaysolution=1
  223.         !read proc/listfile.phtml solution 0
  224.       !else
  225.         $name_solutiondate
  226.         !read adm/date.phtml $soldate
  227.         $l_date_out
  228.         $wims_name_at
  229.         !replace internal : by H in $(timesoldate).
  230.       !endif
  231.     </div>
  232.   </div>
  233. !endif
  234.