Subversion Repositories wimsdev

Rev

Rev 14827 | Rev 14947 | 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. <fieldset class="property_fields blockcenter">
  10.   <legend>$(name_subject)</legend>
  11.   <div>
  12.     <ul class="inline">
  13.     !for f in $(flistsubject)
  14.       <li class="text-icon file">
  15.         !getfile freeworks/$freework/$f $f
  16.       </li>
  17.     !next f
  18.     </ul>
  19.   </div>
  20. </fieldset>
  21.  
  22. !if $activetest=1
  23.   <fieldset class="property_fields blockcenter">
  24.     <legend>$(name_copie)</legend>
  25.     !if $type=1
  26.       !if $activetest>=2
  27.         $name_copie_toolate2
  28.       !else
  29.         !if $toolate=yes
  30.           $name_copie_toolate
  31.         !else
  32.           $name_copie_type1
  33.         !endif
  34.         !read adm/date.phtml $deadline
  35.         $l_date_out
  36.         $wims_name_at
  37.         !replace internal : by H in $(timedeadline).
  38.       !endif
  39.     !else
  40.       !! ---   type=2
  41.       !if $activetest>=2
  42.         $name_copie_toolate2
  43.       !else
  44.         !if $toolate=yes
  45.           <div class="field box fullwidth">
  46.             $name_copie_toolate
  47.             !read adm/date.phtml $deadline
  48.             $l_date_out $wims_name_at
  49.             !replace internal : by H in $(timedeadline).
  50.           </div>
  51.         !else
  52.           <div class="field box fullwidth">
  53.             $name_copie_type2
  54.             !read adm/date.phtml $deadline
  55.             $l_date_out $wims_name_at
  56.             !replace internal : by H in $(timedeadline).
  57.             !if $seealltime=1
  58.               <div>$name_warningseealltime</div>
  59.             !endif
  60.           </div>
  61.         !endif
  62.         !if $data_0!=$empty
  63.             <div class="field box fullwidth">
  64.               $name_oldwork
  65.               !getfile freeworksdata/work$freework-$(data_0[2]) $(data_0[2])
  66.               $name_the
  67.               !read adm/date.phtml $(data_0[3])
  68.               $l_date_out $wims_name_at
  69.               !replace internal : by H in $(data_0[4]).
  70.             </div>
  71.         !endif
  72.         !if $toolate=$empty
  73.           <div class="field box fullwidth">
  74.             !! --- interface de chargement de fichier
  75.             !if $quota_free>=1
  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.                 <input type="submit" value="$wims_name_submit" />
  88.               !formend
  89.             !else
  90.               $name_warning_fullclass
  91.             !endif
  92.           </div>
  93.         !endif
  94.       !endif
  95.     !endif
  96.   </fieldset>
  97. !endif
  98.  
  99. !if $codownload=1 or $activetest>=2
  100.   <fieldset class="property_fields blockcenter">
  101.     <legend>$(name_correctedwork)</legend>
  102.     <div class="field box">
  103.       !if $(data_0[5])!=$empty
  104.         !if $codownload=1
  105.           !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
  106.         !else
  107.           $(name_nomorecodownload).
  108.         !endif
  109.       !else
  110.         $name_nouploaded
  111.       !endif
  112.     </div>
  113.     !if $scoring>0
  114.       <div  class="field box">
  115.         !let k_=!positionof item $wims_user in $uulist
  116.         !if $k_!=$empty
  117.           !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  118.           !let t_=!item $[$scoring+2] of $t_
  119.         !else
  120.           !let t_=$empty
  121.         !endif
  122.         <strong>$(name_score)</strong>
  123.         !if $t_!=$empty
  124.           $t_/$maxscore
  125.         !else
  126.           $name_noscore
  127.         !endif
  128.       </div>
  129.     !endif
  130.   </fieldset>
  131. !endif
  132.  
  133. !if $flistsolution!=$empty
  134.   <div class="wims_widget_box">
  135.     <h2 class="box_title">$(name_solution)</h2>
  136.     !if $displaysolution=1
  137.       <div>
  138.         <ul class="inline">
  139.           !for f in $(flistsolution)
  140.             <li class="text-icon file">
  141.               !getfile freeworks/$freework/$f $f
  142.             </li>
  143.           !next f
  144.         </ul>
  145.       </div>
  146.     !else
  147.       $name_solutiondate
  148.       !read adm/date.phtml $soldate
  149.       $l_date_out
  150.       $wims_name_at
  151.       !replace internal : by H in $(timesoldate).
  152.     !endif
  153.   </div>
  154. !endif
  155.  
  156. !if $activetest>1 and $type>=2
  157.   $name_userperimemessage
  158. !endif
  159.