Subversion Repositories wimsdev

Rev

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