Subversion Repositories wimsdev

Rev

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