Subversion Repositories wimsdev

Rev

Rev 14865 | Rev 15470 | 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_sheet_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.   <div class="box_content">
  24.     !if $type=1
  25.       !if $activetest>=2
  26.         $name_copie_toolate2
  27.       !else
  28.         !if $toolate=yes
  29.           $name_copie_toolate
  30.         !else
  31.           $name_copie_type1
  32.         !endif
  33.         !read adm/date.phtml $deadline
  34.         $l_date_out
  35.         $wims_name_at
  36.         !replace internal : by H in $(timedeadline).
  37.       !endif
  38.     !else
  39.       !! ---   type=2
  40.       !if $activetest>=2
  41.         $name_copie_toolate2
  42.       !else
  43.         !if $toolate=yes
  44.           <div class="field box fullwidth">
  45.             $name_copie_toolate
  46.             !read adm/date.phtml $deadline
  47.             $l_date_out $wims_name_at
  48.             !replace internal : by H in $(timedeadline).
  49.           </div>
  50.         !else
  51.           <div class="field box fullwidth">
  52.             $name_copie_type2
  53.             !read adm/date.phtml $deadline
  54.             $l_date_out $wims_name_at
  55.             !replace internal : by H in $(timedeadline).
  56.             !if $seealltime=1
  57.               <div>$name_warningseealltime</div>
  58.             !endif
  59.           </div>
  60.         !endif
  61.         !if $data_0!=$empty
  62.             <div class="field box fullwidth">
  63.               $name_oldwork
  64.               !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2])
  65.               $name_the
  66.               !read adm/date.phtml $(data_0[3])
  67.               $l_date_out $wims_name_at
  68.               !replace internal : by H in $(data_0[4]).
  69.             </div>
  70.         !endif
  71.         !if $toolate=$empty
  72.           <div class="field box fullwidth">
  73.             !! --- interface de chargement de fichier
  74.             !if $quota_free>=1
  75.               <fieldset class="property_fields blockcenter">
  76.                 !set wims_form_method=file
  77.                 !form reply
  78.                   <input type="hidden" name="job" value="student1" />
  79.                   <input type="hidden" name="freework" value="$freework" />
  80.                   <label for="wims_deposit">$name_depos</label>
  81.                   <input type="file" size="35" name="wims_deposit" id="wims_deposit" />
  82.                   <div class="formHelp">$name_copie_type2bis.
  83.                     !if $data_0!=$empty
  84.                       $name_msgstudenthavefile
  85.                     !endif
  86.                   </div>
  87.                   !if $wims_user=supervisor
  88.                     <input type="submit" value="$wims_name_submit" disabled/>
  89.                   !else
  90.                     <input type="submit" value="$wims_name_submit" />
  91.                   !endif
  92.                 !formend
  93.               </fieldset>
  94.             !else
  95.               $name_warning_fullclass
  96.             !endif
  97.           </div>
  98.         !endif
  99.       !endif
  100.     !endif
  101.   </div></div>
  102. !endif
  103.  
  104. !if $codownload=1 or $activetest>=2
  105.   <div class="wims_widget_box medium_size">
  106.     <div class="title_box">
  107.       <h2 class="wims_title">$(name_correctedwork)</h2>
  108.     </div>
  109.     <div class="box_content">
  110.       <div class="field box">        
  111.         !if $codownload=1
  112.           !if $(data_0[5])!=$empty
  113.             !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
  114.           !else
  115.             $name_nouploaded
  116.           !endif        
  117.         !else
  118.             $(name_nomorecodownload).
  119.         !endif
  120.       </div>
  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 subject 0
  150.       !else
  151.         $name_solutiondate
  152.         !read adm/date.phtml $soldate
  153.         $l_date_out
  154.         $wims_name_at
  155.         !replace internal : by H in $(timesoldate).
  156.       !endif
  157.     </div>
  158.   </div>
  159. !endif
  160.  
  161. !if $activetest>1 and $type>=2
  162.   $name_userperimemessage
  163. !endif
  164.