Subversion Repositories wimsdev

Rev

Rev 10477 | Rev 13306 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !read js/examclock1.phtml
  3. !if $job=exo
  4.  !set js=!record 0 of js/chooselist.js
  5.  !set wims_html_header=!append line $js to $wims_html_header
  6. !endif
  7. !read adm/css.phtml
  8. !header1
  9.  
  10. !if $job iswordof student score scorereg
  11.  !changeto $job.phtml
  12. !endif
  13. !read adm/class/classname.phtml $wims_classname\
  14. $wims_institutionname
  15.  
  16. !read adm/title.phtml 1\
  17. $classname\
  18. $name_title $exam
  19.  
  20. !if $error!=$empty
  21.  <div class="wims_msg alert">
  22.  !read lang/msg.phtml.$moduclass_lang
  23.  </div>
  24.  
  25.  !if $error iswordof prep_noexercise
  26.   !set wims_menu_items=!append line back2,1,cmd=resume&error=$empty \
  27.    to $wims_menu_items
  28.    !reset save
  29.  !else
  30.   !set wims_menu_items=!append line back2,1,module=home \
  31.    to $wims_menu_items
  32.  !endif
  33.  !goto end
  34. !endif
  35.  
  36. !if $msg_info!=$empty
  37.  <div class="wims_msg info">
  38.    !set error=$msg_info
  39.    !read lang/msg.phtml.$moduclass_lang
  40.  </div>
  41. !endif
  42.  
  43.  
  44. !if $job=exo or $job=cpsheet or $job=cpexam
  45.  !read $job.phtml
  46.  !goto end
  47. !endif
  48.  
  49. <div id="exam_management">
  50.   !if $jquery_defined=yes
  51.       <script type="text/javascript">
  52.         /*<![CDATA[*/
  53.         jQuery(function($$) {
  54.           // Get in sessionStorage if a tab was previously selected, and activate it.
  55.           var selectedTabId = sessionStorage.getItem("exam_management_selectedTab");
  56.           selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
  57.           $$("#exam_management").tabs({
  58.             active: selectedTabId,
  59.             activate : function( event, ui ) {
  60.                 selectedTabId = $$("#exam_management").tabs("option", "active");
  61.                 sessionStorage.setItem("exam_management_selectedTab", selectedTabId);
  62.             }
  63.           });
  64.         });
  65.         /*]]>*/
  66.       </script>
  67.       <ul>
  68.         <li><a href="#examinfo">$name_info</a></li>
  69.         !ifval $activetest!=-1
  70.           <li><a href="#examcontent">$name_content</a></li>
  71.         !endif
  72.       </ul>
  73.       <div id="examinfo">
  74.          !read examinfo.phtml
  75.       </div>
  76.   !else
  77.     !if $wims_infoshow=no
  78.      <fieldset class="property_fields blockcenter">
  79.      <legend> $name_info [
  80.      !href cmd=resume&infoshow=yes $wims_name_showall
  81.      ]
  82.      </legend>
  83.      </fieldset>
  84.     !else
  85.      !read examinfo.phtml
  86.     !endif
  87.   !endif
  88.  
  89. !ifval $activetest=-1
  90.  !goto end
  91. !endif
  92.  
  93. :end1
  94. <div id="examcontent">
  95.  
  96. !if $exocnt=0
  97.  <p>$name_warning</p>
  98.  !set nex=!itemcnt $aexams
  99.  !if $nex > 0
  100.  !! !set wims_ref_class=wims_button_help
  101.  !! !href cmd=reply&job=cpexam $wims_name_cpexam
  102.   !let wims_menu_items=!append line cpexam,1,cmd=reply&job=cpexam to $wims_menu_items
  103.  !endif
  104. !else
  105.   !read examcontent.phtml
  106. !endif
  107.  
  108. !if $activetest=0
  109.  !let wims_menu_items=!append line addexo,1,cmd=reply&job=exo&exo=$[$exocnt+1]\
  110. addsexo,1,cmd=reply&job=cpsheet to $wims_menu_items
  111. !endif
  112.  
  113. !if $wims_user=supervisor and $exocnt>0
  114.  !let wims_menu_items=!append line itemsep,0,\
  115. duplicateexam,1,cmd=reply&job=duplicate to $wims_menu_items
  116. !endif
  117.  
  118. !if $activetest>=0
  119.  !let wims_menu_items=!append line itemsep,0,\
  120. participantview,1,cmd=reply&job=student to $wims_menu_items
  121. !endif
  122. </div>
  123.  
  124. :end
  125. </div>
  126. !tail
  127.  
  128. !reset job,echoose,eweight,ename,edep,eopt,source
  129.  
  130.