Subversion Repositories wimsdev

Rev

Rev 18004 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! display freework page for student and type=3
  2.  
  3. !if $emptypage=yes
  4.   !exit
  5. !endif
  6.  
  7. !! todo: tune when we want the link to appear (we do not want link
  8. !!       to appear when students haven't yet opened their
  9. !!       freework)
  10. !if ($toolate=yes or $putiworkco=1) and $wims_user=supervisor
  11.   !read adm/class/getnextuser $wims_class,$userv,viewuser3,userv
  12. !endif
  13.  
  14. !if $desc!=$empty
  15.  <div class="wims_freework_desc">$desc</div>
  16. !endif
  17.  
  18. <div class="wims_widget_box">
  19.  <div class="title_box">
  20.    <h2 class="wims_title">$(name_subject)</h2>
  21.  </div>
  22.  <div class="box_content">
  23.    !for i=1 to $nbrezoneteacher
  24.      !read applet/$(ztypeteacher$i) displayhtml teacher $i 0 $userv
  25.    !next i
  26.  </div>
  27. </div>
  28.  
  29. !if $nbrezonestudent>0
  30. <div class="wims_widget_box">
  31.  <div class="title_box">
  32.    <h2 class="wims_title">$(name_workof) $name_studentname</h2>
  33.  </div>
  34.  <div class="box_content">
  35.    !for i=1 to $nbrezonestudent
  36.      !read applet/$(ztypestudent$i) displayhtml student $i 0 $userv
  37.    !next i
  38.  </div>
  39. </div>
  40. !endif
  41.  
  42. !if $putiworkco!=1 or $seealltime=1
  43.  <div class="wims_widget_box">  
  44.    <div class="title_box"><h2 class="wims_title">$(name_solution)</h2></div>
  45. !else
  46.  <fieldset class="property_fields blockcenter">
  47.    <legend>$(name_solution)</legend>
  48.    <div class="field box">
  49. !endif
  50.  
  51. !if $now<$d1
  52.      !let date=$date1
  53.      <div class="formHelp">$(name_desc_listwork4).</div>
  54.      !if $seealltime=1
  55.        !! in case of teacher can see work before endtime,
  56.        !! he can write remark on what he see of the actual work of the student
  57.        !form reply
  58.          <input type="hidden" name="job" value="remark3" >
  59.          <input type="hidden" name="freework" value="$freework">
  60.          <input type="hidden" name="userv" value="$userv">
  61.          !! TODO: need to check what we want to show
  62.          !if $nbrezonestudent>0
  63.            <div class="field box">
  64.              <label for="remark">$(name_remark)</label>
  65.              <div class="formHelp">$name_desc_remark</div>
  66.              <textarea id="remark" class="iEdit" rows="6" cols="65" name="remark">$remark</textarea>
  67.            </div>
  68.          !endif
  69.          <div class="field box">
  70.            <label for="finalremark">$(name_finalremark)</label>
  71.            <div class="formHelp">$name_desc_finalremark</div>
  72.            <textarea id="finalremark" class="iEdit" rows="6" cols="65" name="finalremark">$finalremark</textarea>
  73.          </div>
  74.          <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark">
  75.            !set wims_ref_class= wims_button wims_secondary_button
  76.            !href module=$module&+freework=$freework&job=configfw $wims_name_giveup
  77.          </div>
  78.         !formend
  79.      !endif
  80. !else
  81.      !if $scoring>0
  82.        !let k_=!positionof item $userv in $uulist
  83.        !if $k_!=$empty
  84.          !let t_=!record $[$k_+1] of wimshome/log/classes/$wims_class/.grades
  85.          !let t_=!item $[$scoring+2] of $t_
  86.        !else
  87.          !let t_=$empty
  88.        !endif
  89.      !endif
  90.      !if $putiworkco!=1
  91.        <div class="box_content">
  92.          !let date=$date2
  93.          <div class="formHelp">$(name_desc_listwork5).</div>
  94.          <div class="field box">
  95.            !if $scoring>0
  96.              <div><strong>$(name_score)</strong> $t_ (/$maxscore)</div>
  97.            !endif
  98.            !if $userfileexists=1
  99.              <div class="field box">
  100.                <strong>$(name_correctedfile)</strong>
  101.                !read proc/listfile.phtml usersol 0 $userv
  102.              </div>
  103.            !endif
  104.            !if $nbrezonestudent>0
  105.              <div><strong>$name_remark</strong> $remark</div>
  106.            !endif
  107.            <div><strong>$name_finalremark</strong> $finalremark</div>
  108.          </div>
  109.        </div>
  110.      !else
  111.        !if $userfileexists=1
  112.          !let wims_form_method=file
  113.        !endif
  114.        !form reply
  115.          <input type="hidden" name="job" value="uploadco3" >
  116.          <input type="hidden" name="freework" value="$freework">
  117.          <input type="hidden" name="userv" value="$userv">
  118.          !if $userfileexists=1
  119.            <div class="field box">
  120.              <label for="file">$(name_correctedfile)</label>
  121.              !read proc/listfile.phtml usersol 1 $userv
  122.              <input type="file" id="file" size="35" name="wims_deposit" >
  123.            </div>
  124.          !endif
  125.          !if $seealltime=1 and $nbrezonestudent>0
  126.            <div><strong>$name_remark</strong> $remark</div>
  127.          !endif
  128.          <div class="field box">
  129.            <label for="finalremark">$(name_finalremark)</label>
  130.            <div class="formHelp">$name_desc_finalremark</div>
  131.            <textarea id="finalremark" class="iEdit" rows="6" cols="65" name="finalremark">$finalremark</textarea>
  132.          </div>
  133.          !if $scoring>0
  134.            <div class="field box">
  135.              <label for="score">$(name_score) (/$maxscore)</label>
  136.              <input type="text" id="score" name="score" value="$t_" size="3" >
  137.            </div>
  138.          !endif
  139.          <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" name="saveremark">
  140.            !set wims_ref_class= wims_button wims_secondary_button
  141.            !href module=$module&+freework=$freework&job=configfw $wims_name_giveup
  142.          </div>
  143.        !formend
  144.      !endif
  145. !endif
  146. </div>
  147. !if $putiworkco=1 or $seealltime=1
  148. </fieldset>
  149. !else
  150. </div>
  151. !endif
  152.  
  153. !reset save,saveremark
  154.