Subversion Repositories wimsdev

Rev

Rev 17775 | Rev 17883 | 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.   <div class="wims_widget_box">
  95.   <fieldset class="property_fields blockcenter">
  96.     <legend>$(name_answerzone)</legend>
  97.     !set wims_form_method=post
  98.     !form reply
  99.       <input type="hidden" name="job" value="$job" >
  100.       <input type="hidden" name="freework" value="$freework" >
  101.       <input type="hidden" name="job2" value="savezone" >
  102.       !reset with_text
  103.       !for i=1 to $nbrezonestudent
  104.           !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  105.           !if $(ztypestudent$i)=texte
  106.             !let with_text=1
  107.           !endif
  108.       !next i
  109.       !if $onclickactionlist!=$empty
  110.         !let onclickactionlist=onclick="$onclickactionlist"
  111.       !endif
  112.       <div class="wimscenter">
  113.         !if $wims_user=supervisor
  114.           <input type="submit" value="$wims_name_tosave" disabled >
  115.         !else
  116.           <input type="submit" value="$wims_name_tosave" $onclickactionlist >
  117.           !if $with_text=1
  118.             <input type="submit" name="cf_preview" value="$name_preview" class="wims_secondary_button" >
  119.             !reset cf_preview
  120.           !endif
  121.         !endif
  122.       </div>
  123.     !formend
  124.     !! ------- manage of file form upload in all zone
  125.     !if $ltdownloadzone!=$empty
  126.       !if $wims_user=supervisor
  127.         !read proc/uploadfileform.phtml $ltdownloadzone\
  128. 1\
  129. disabled
  130.       !else
  131.         !read proc/uploadfileform.phtml $ltdownloadzone\
  132. 1
  133.       !endif
  134.     !endif
  135.   </fieldset>
  136.   </div>
  137. !else
  138.   !if $activetest<2
  139.     <div class="wims_widget_box">
  140.       <div class="title_box">
  141.         <h2 class="wims_title">$(name_answerzone)</h2>
  142.       </div>
  143.       <div class="box_content">
  144.         !for i=1 to $nbrezonestudent
  145.             !read applet/$(ztypestudent$i) displayhtml student $i $studentmode $wims_user
  146.         !next i
  147.       </div>
  148.     </div>
  149.   !endif
  150. !endif
  151. !endif
  152.  
  153. !if $activetest<2
  154.   !if $studentclose=1 and $job2=consigne
  155.     !form reply
  156.     <div class="wims_widget_box">
  157.       <div class="title_box">
  158.         <h2 class="wims_title">$name_close_confirm</h2>
  159.       </div>
  160.     <div class="box_content">
  161.     <div class="wims_msg alert">
  162.       $name_close_alertpost
  163.     </div>
  164.     <div class="wimscenter">
  165.       <input type="hidden" name="job" value="$job" >
  166.       <input type="hidden" name="freework" value="$freework" >
  167.       <input type="hidden" name="job2" value="confirm" >
  168.       <input type="submit" name="confirm" value="$name_close_confirm" >
  169.       <input type="submit" name="giveup" class="wims_secondary_button" value="$wims_name_giveup">
  170.     </div>
  171.     </div>
  172.     </div>
  173.     !formend
  174.   !endif
  175. !endif
  176.  
  177. !! shouldn't this be set by mkglobalvar
  178. !if $codownload=1 or $activetest>=2
  179.  <div class="wims_widget_box">
  180.    <div class="title_box">
  181.      <h2 class="wims_title">$(name_app)</h2>
  182.    </div>
  183.    <div class="box_content">
  184.      !if $sizelimitfile>0
  185.        <div><strong>$(name_correctedfile)</strong>
  186.           !read proc/listfile.phtml usersol 0 $userv
  187.        </div>
  188.      !endif
  189.      !if $seealltime=1 and $nbrestudent>0
  190.        <div><strong>$name_remark</strong>$remark</div>
  191.      !endif
  192.      <div><strong>$name_finalremark</strong>$finalremark</div>
  193.      !if $scoring>0
  194.        <div>
  195.          !let k_=!positionof item $wims_user in $uulist
  196.          !if $k_!=$empty
  197.            !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  198.            !let t_=!item $[$scoring+2] of $t_
  199.          !else
  200.            !let t_=$empty
  201.          !endif
  202.          <strong>$(name_score)</strong> $t_/$maxscore
  203.        </div>
  204.      !endif
  205.    </div>
  206.  </div>
  207. !else
  208.  !if $seealltime=1 and $remark!=$empty
  209.    <div class="wims_widget_box">
  210.    <div class="box_content">
  211.      <div class="title_box"><h2 class="wims_title">$(name_remarkinwork)</h2></div>
  212.      <div>$remark</div>
  213.    </div>
  214.    </div>
  215.  !endif
  216. !endif
  217.  
  218.  
  219. !if $flistsolution!=$empty
  220.  <div class="wims_widget_box">
  221.    <div class="title_box">
  222.      <h2 class="wims_title">$(name_solution)</h2>
  223.    </div>
  224.    <div class="box_content">
  225.      !if $displaysolution=1
  226.        !read proc/listfile.phtml solution 0
  227.      !else
  228.        $name_solutiondate
  229.        !read adm/date.phtml $soldate
  230.        $l_date_out
  231.        $wims_name_at
  232.        !replace internal : by H in $(timesoldate).
  233.      !endif
  234.    </div>
  235.  </div>
  236. !endif
  237.