Subversion Repositories wimsdev

Rev

Rev 17639 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! display freework page for student type=1 or type=2
  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. <div class="wims_freework_desc">$desc</div>
  19.  
  20. <div class="wims_widget_box medium_size">
  21.   <div class="title_box">
  22.       <h2 class="wims_title">$(name_subject)</h2>
  23.   </div>
  24.   <div class="box_content">
  25.     !read proc/listfile.phtml subject 0
  26.   </div>
  27. </div>
  28.  
  29. !if $activetest=1
  30.   <div class="wims_widget_box medium_size">
  31.     <div class="title_box">
  32.       <h2 class="wims_title">$(name_copie)</h2>
  33.     </div>
  34.  
  35.     <div class="box_content">
  36.       !! --- type=1 - distribute only
  37.       !if $type=1
  38.         <div class="wims_msg
  39.          !if $activetest>=2
  40.            warning">$name_copie_toolate2
  41.           !else
  42.             !if $toolate=yes
  43.               warning">$name_copie_toolate
  44.            !else
  45.              info">$name_copie_type1
  46.             !endif
  47.  
  48.             !read adm/date.phtml $deadline
  49.             !let time_out = !replace internal : by H in $(timedeadline)
  50.             <strong>$l_date_out $wims_name_at $time_out</strong>.
  51.           !endif
  52.         </div>
  53.       !else
  54.       !! --- type=2 - distribute & collect
  55.         !if $activetest>=2
  56.           <div class="wims_msg warning">$name_copie_toolate2</div>
  57.         !else
  58.           !if $toolate=yes
  59.             <div class="wims_msg warning">
  60.               $name_copie_toolate
  61.               !read adm/date.phtml $deadline
  62.               !set time_out=!replace internal : by H in $(timedeadline)
  63.               <strong>$l_date_out $wims_name_at $time_out</strong>.
  64.             </div>
  65.           !else
  66.             <div class="wims_msg info">
  67.               $name_copie_type2
  68.               !read adm/date.phtml $deadline
  69.               $l_date_out $wims_name_at
  70.               !replace internal : by H in $(timedeadline).
  71.             </div>
  72.             !if $seealltime=1
  73.               <div class="wims_msg info">$name_warningseealltime</div>
  74.             !endif
  75.           !endif
  76.           !if $data_0!=$empty
  77.               <div class="field box fullwidth">
  78.                 !getfile freeworksdata/work$freework-$(data_0[2]) $name_oldwork
  79.                 $name_the
  80.                 !read adm/date.phtml $(data_0[3])
  81.                 $l_date_out $wims_name_at
  82.                 !replace internal : by H in $(data_0[4]).
  83.               </div>
  84.           !endif
  85.           !if $toolate=$empty
  86.             <div>
  87.               !! --- interface de chargement de fichier
  88.               !if $quota_free>=1
  89.                 !set wims_form_method=file
  90.                 !form reply
  91.                   <input type="hidden" name="job" value="student1" >
  92.                   <input type="hidden" name="freework" value="$freework" >
  93.                   <label for="wims_deposit">$name_depos</label>
  94.                   <input type="file" size="35" name="wims_deposit" id="wims_deposit" >
  95.                   <div class="formHelp">$name_copie_type2bis.
  96.                     !if $data_0!=$empty
  97.                       $name_msgstudenthavefile
  98.                     !endif
  99.                   </div>
  100.                   <input type="submit" value="$wims_name_submit"
  101.                     !if $wims_user=supervisor
  102.                       disabled
  103.                     !endif
  104.                   >
  105.                 !formend
  106.               !else
  107.                 <div class="wims_msg warning">$name_warning_fullclass</div>
  108.               !endif
  109.             </div>
  110.           !endif
  111.         !endif
  112.       !endif
  113.     </div>
  114.   </div>
  115. !endif
  116.  
  117. !if $codownload=1 or $activetest>=2
  118.   <div class="wims_widget_box medium_size">
  119.     <div class="title_box">
  120.       <h2 class="wims_title">$(name_correctedwork)</h2>
  121.     </div>
  122.     <div class="box_content">
  123.       !if $codownload=1
  124.         !if $(data_0[5])!=$empty
  125.           !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
  126.         !else
  127.           <div class="wims_msg info">$name_nouploaded</div>
  128.         !endif
  129.       !else
  130.         <div class="wims_msg info">$(name_nomorecodownload).</div>
  131.       !endif
  132.       !if $scoring>0
  133.         <div class="field box">
  134.           !let k_=!positionof item $wims_user in $uulist
  135.           !if $k_!=$empty
  136.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  137.             !let t_=!item $[$scoring+2] of $t_
  138.           !else
  139.             !let t_=$empty
  140.           !endif
  141.           <strong>$(name_score)</strong>
  142.           !if $t_!=$empty
  143.             $t_/$maxscore
  144.           !else
  145.             $name_noscore
  146.           !endif
  147.         </div>
  148.       !endif
  149.     </div>
  150.   </div>
  151. !endif
  152.  
  153. !if $flistsolution!=$empty
  154.   <div class="wims_widget_box medium_size">
  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.         <div class="wims_msg info">
  163.           $name_solutiondate
  164.           !read adm/date.phtml $soldate
  165.           !let time_out = !replace internal : by H in $(timesoldate)
  166.           <strong>$l_date_out $wims_name_at $time_out</strong>.
  167.         </div>
  168.       !endif
  169.     </div>
  170.   </div>
  171. !endif
  172.  
  173. !if $activetest>1 and $type>=2
  174.   <div class="clearall wims_msg info">$name_userperimemessage</div>
  175. !endif
  176.