Subversion Repositories wimsdev

Rev

Rev 16087 | Blame | Last modification | View Log | RSS feed

  1. !! display freework page for student type=4
  2.  
  3. !if $emptypage=yes
  4.   !exit
  5. !endif
  6.  
  7. <div class="wims_freework_desc">$name_typequatre_desc</div>
  8.  
  9. <div class="wims_freework_desc">$desc</div>
  10.  
  11. <div class="wims_widget_box medium_size">
  12.   <div class="title_box">
  13.       <h2 class="wims_title">$(name_subject)</h2>
  14.   </div>
  15.   <div class="box_content">
  16.     $table_header
  17.       <thead>
  18.         $table_hdtr
  19.           <th>$name_num</th>
  20.           <th>$name_wimsexo</th>
  21.           <th>$name_description</th>
  22.           <th>$wims_name_Status</th>
  23.         </tr>
  24.       </thead>
  25.       <tbody>
  26.         !let num=1
  27.         !reset wims_fwlistexo
  28.         !for k=1 to $nbexo
  29.           !let data=!record $k of wimshome/log/classes/$wims_class/freeworks/.freework$freework
  30.           !distribute line $data into mod,cl,ti,desc
  31.           !if $mod!=solution
  32.             $table_tr
  33.               <td>$num</td>
  34.               <td>
  35.                 !let test=!fileexists wimshome/log/classes/$wims_class/freeworksdata/$freework/work/$wims_user.$k
  36.                 !if $test!=yes
  37.                   !if $toolate!=yes
  38.                     !href module=$(mod)&cmd=new&wims_freework=$(freework),$k&$cl $ti
  39.                     !let wims_fwlistexo=!append item $k to $wims_fwlistexo
  40.                   !else
  41.                     $ti
  42.                   !endif
  43.                 !else
  44.                   !href target=wims_check module=adm/class/freework&job=exocheck&checkuser=$wims_user&freework=$freework&logcheck=$k&checkstep=1 $ti
  45.                 !endif
  46.                </td>
  47.                <td>$de</de>
  48.                <td>
  49.                  !if $test=yes
  50.                   <span class="exo_done">$name_done</span>
  51.                  !endif
  52.                </td>
  53.              </tr>
  54.              !increase num
  55.            !endif
  56.          !next k
  57.        </tbody>
  58.      $table_end
  59.  </div>
  60. </div>
  61. !setdef wims_fwlistexo=$wims_fwlistexo in wimshome/sessions/$wims_session/var.stat
  62.  
  63. !if $activetest=1
  64.   <div class="wims_widget_box medium_size">
  65.     <div class="title_box">
  66.       <h2 class="wims_title">$(name_copie)</h2>
  67.     </div>
  68.  
  69.     <div class="box_content">
  70.       !if $sizelimitfile=0
  71.         <div class="wims_msg
  72.          !if $activetest>=2
  73.            warning">$name_copie_toolate2
  74.           !else
  75.             !if $toolate=yes
  76.               warning">$name_copie_toolate
  77.            !else
  78.              info">$name_copie_type1
  79.             !endif
  80.  
  81.             !read adm/date.phtml $deadline
  82.             !let time_out = !replace internal : by H in $(timedeadline)
  83.             <strong>$l_date_out $wims_name_at $time_out</strong>.
  84.           !endif
  85.         </div>
  86.       !else
  87.       !! ---- distribute & collect
  88.         !if $activetest>=2
  89.           <div class="wims_msg warning">$name_copie_toolate2</div>
  90.         !else
  91.           !if $toolate=yes
  92.             <div class="wims_msg warning">
  93.               $name_copie_toolate
  94.               !read adm/date.phtml $deadline
  95.               !set time_out=!replace internal : by H in $(timedeadline)
  96.               <strong>$l_date_out $wims_name_at $time_out</strong>.
  97.             </div>
  98.           !else
  99.             <div class="wims_msg info">
  100.               $name_copie_type2
  101.               !read adm/date.phtml $deadline
  102.               $l_date_out $wims_name_at
  103.               !replace internal : by H in $(timedeadline).
  104.             </div>
  105.             !if $seealltime=1
  106.               <div class="wims_msg info">$name_warningseealltime</div>
  107.             !endif
  108.           !endif
  109.           !if $data_0!=$empty
  110.               <div class="field box fullwidth">
  111.                 !getfile freeworksdata/work$freework-$(data_0[2]) $name_oldwork
  112.                 $name_the
  113.                 !read adm/date.phtml $(data_0[3])
  114.                 $l_date_out $wims_name_at
  115.                 !replace internal : by H in $(data_0[4]).
  116.               </div>
  117.           !endif
  118.           !if $toolate=$empty
  119.             <div>
  120.               !! --- interface de chargement de fichier
  121.               !if $quota_free>=1
  122.                 !set wims_form_method=file
  123.                 !form reply
  124.                   <input type="hidden" name="job" value="student4" />
  125.                   <input type="hidden" name="freework" value="$freework" />
  126.                   <label for="wims_deposit">$name_depos</label>
  127.                   <input type="file" size="35" name="wims_deposit" id="wims_deposit" />
  128.                   <div class="formHelp">$name_copie_type2bis.
  129.                     !if $data_0!=$empty
  130.                       $name_msgstudenthavefile
  131.                     !endif
  132.                   </div>
  133.                   <input type="submit" value="$wims_name_submit"
  134.                     !if $wims_user=supervisor
  135.                       disabled
  136.                     !endif
  137.                   />
  138.                 !formend
  139.               !else
  140.                 <div class="wims_msg warning">$name_warning_fullclass</div>
  141.               !endif
  142.             </div>
  143.           !endif
  144.         !endif
  145.       !endif
  146.     </div>
  147.   </div>
  148. !endif
  149.  
  150. !if ($codownload=1 or $activetest>=2) and $sizelimitfile>0
  151.   <div class="wims_widget_box medium_size">
  152.     <div class="title_box">
  153.       <h2 class="wims_title">$(name_correctedwork)</h2>
  154.     </div>
  155.     <div class="box_content">
  156.       !if $codownload=1
  157.         !if $(data_0[5])!=$empty
  158.           !getfile freeworksdata/workco$freework-$(data_0[5]) $(data_0[5])
  159.         !else
  160.           <div class="wims_msg info">$name_nouploaded</div>
  161.         !endif
  162.       !else
  163.         <div class="wims_msg info">$(name_nomorecodownload).</div>
  164.       !endif
  165.       !if $scoring>0
  166.         <div class="field box">
  167.           !let k_=!positionof item $wims_user in $uulist
  168.           !if $k_!=$empty
  169.             !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  170.             !let t_=!item $[$scoring+2] of $t_
  171.           !else
  172.             !let t_=$empty
  173.           !endif
  174.           <strong>$(name_score)</strong>
  175.           !if $t_!=$empty
  176.             $t_/$maxscore
  177.           !else
  178.             $name_noscore
  179.           !endif
  180.         </div>
  181.       !endif
  182.     </div>
  183.   </div>
  184. !endif
  185.  
  186. !if $flistsolution!=$empty
  187.   <div class="wims_widget_box medium_size">
  188.     <div class="title_box">
  189.       <h2 class="wims_title">$(name_solution)</h2>
  190.     </div>
  191.     <div class="box_content">
  192.       !if $displaysolution=1
  193.         !read proc/listfile.phtml solution 0
  194.       !else
  195.         <div class="wims_msg info">
  196.           $name_solutiondate
  197.           !read adm/date.phtml $soldate
  198.           !let time_out = !replace internal : by H in $(timesoldate)
  199.           <strong>$l_date_out $wims_name_at $time_out</strong>.
  200.         </div>
  201.       !endif
  202.     </div>
  203.   </div>
  204. !endif
  205.  
  206. !if $activetest>1 and $type>=2
  207.   <div class="clearall wims_msg info">$name_userperimemessage</div>
  208. !endif
  209.