Subversion Repositories wimsdev

Rev

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