Subversion Repositories wimsdev

Rev

Rev 15471 | Rev 16084 | 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.                 $name_oldwork
  68.                 !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2])
  69.                 $name_the
  70.                 !read adm/date.phtml $(data_0[3])
  71.                 $l_date_out $wims_name_at
  72.                 !replace internal : by H in $(data_0[4]).
  73.               </div>
  74.           !endif
  75.           !if $toolate=$empty
  76.             <div>
  77.               !! --- interface de chargement de fichier
  78.               !if $quota_free>=1
  79.                 !set wims_form_method=file
  80.                 !form reply
  81.                   <input type="hidden" name="job" value="student1" />
  82.                   <input type="hidden" name="freework" value="$freework" />
  83.                   <label for="wims_deposit">$name_depos</label>
  84.                   <input type="file" size="35" name="wims_deposit" id="wims_deposit" />
  85.                   <div class="formHelp">$name_copie_type2bis.
  86.                     !if $data_0!=$empty
  87.                       $name_msgstudenthavefile
  88.                     !endif
  89.                   </div>
  90.                   <input type="submit" value="$wims_name_submit"
  91.                     !if $wims_user=supervisor
  92.                       disabled
  93.                     !endif
  94.                   />
  95.                 !formend
  96.               !else
  97.                 <div class="wims_msg warning">$name_warning_fullclass</div>
  98.               !endif
  99.             </div>
  100.           !endif
  101.         !endif
  102.       !endif
  103.     </div>
  104.   </div>
  105. !endif
  106.  
  107. !if $codownload=1 or $activetest>=2
  108.   <div class="wims_widget_box medium_size">
  109.     <div class="title_box">
  110.       <h2 class="wims_title">$(name_correctedwork)</h2>
  111.     </div>
  112.     <div class="box_content">
  113.       !if $codownload=1
  114.         !if $(data_0[5])!=$empty
  115.           !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
  116.         !else
  117.           <div class="wims_msg info">$name_nouploaded</div>
  118.         !endif
  119.       !else
  120.         <div class="wims_msg info">$(name_nomorecodownload).</div>
  121.       !endif
  122.       !if $scoring>0
  123.         <div class="field box">
  124.           !let k_=!positionof item $wims_user in $uulist
  125.           !if $k_!=$empty
  126.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  127.             !let t_=!item $[$scoring+2] of $t_
  128.           !else
  129.             !let t_=$empty
  130.           !endif
  131.           <strong>$(name_score)</strong>
  132.           !if $t_!=$empty
  133.             $t_/$maxscore
  134.           !else
  135.             $name_noscore
  136.           !endif
  137.         </div>
  138.       !endif
  139.     </div>
  140.   </div>
  141. !endif
  142.  
  143. !if $flistsolution!=$empty
  144.   <div class="wims_widget_box medium_size">
  145.     <div class="title_box">
  146.       <h2 class="wims_title">$(name_solution)</h2>
  147.     </div>
  148.     <div class="box_content">
  149.       !if $displaysolution=1
  150.         !read proc/listfile.phtml solution 0
  151.       !else
  152.         <div class="wims_msg info">
  153.           $name_solutiondate
  154.           !read adm/date.phtml $soldate
  155.           !let time_out = !replace internal : by H in $(timesoldate)
  156.           <strong>$l_date_out $wims_name_at $time_out</strong>.
  157.         </div>
  158.       !endif
  159.     </div>
  160.   </div>
  161. !endif
  162.  
  163. !if $activetest>1 and $type>=2
  164.   <div class="clearall wims_msg info">$name_userperimemessage</div>
  165. !endif
  166.