Subversion Repositories wimsdev

Rev

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

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