Subversion Repositories wimsdev

Rev

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