Subversion Repositories wimsdev

Rev

Rev 9957 | Rev 10477 | 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 $job=exo or $job=cpsheet or $job=cpexam
  37.  !read $job.phtml
  38.  !goto end
  39. !endif
  40.  
  41. <div id="exam_management">
  42.   !if $jquery_defined=yes
  43.       <script type="text/javascript">
  44.         /*<![CDATA[*/
  45.         jQuery(function($$) {
  46.           // Get in sessionStorage if a tab was previously selected, and activate it.
  47.           var selectedTabId = sessionStorage.getItem("exam_management_selectedTab");
  48.           selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
  49.           $$("#exam_management").tabs({
  50.             active: selectedTabId,
  51.             activate : function( event, ui ) {
  52.                 selectedTabId = $$("#exam_management").tabs("option", "active");
  53.                 sessionStorage.setItem("exam_management_selectedTab", selectedTabId);
  54.             }
  55.           });
  56.         });
  57.         /*]]>*/
  58.       </script>
  59.       <ul>
  60.         <li><a href="#examinfo">$name_info</a></li>
  61.         !ifval $activetest!=-1
  62.           <li><a href="#examcontent">$name_content</a></li>
  63.         !endif
  64.       </ul>
  65.       <div id="examinfo">
  66.          !read examinfo.phtml
  67.       </div>
  68.   !else
  69.     !if $wims_infoshow=no
  70.      <fieldset class="property_fields blockcenter">
  71.      <legend> $name_info [
  72.      !href cmd=resume&infoshow=yes $wims_name_showall
  73.      ]
  74.      </legend>
  75.      </fieldset>
  76.     !else
  77.      !read examinfo.phtml
  78.     !endif
  79.   !endif
  80.  
  81. !ifval $activetest=-1
  82.  !goto end
  83. !endif
  84.  
  85. :end1
  86. <div id="examcontent">
  87.  
  88. !if $exocnt=0
  89.  <p>$name_warning
  90.  !set nex=!itemcnt $aexams
  91.  !if $nex > 0
  92.   !set wims_ref_class=wims_button_help
  93.   !href cmd=reply&job=cpexam $wims_name_cpexam
  94.   !let wims_menu_items=!append line cpexam,1,cmd=reply&job=cpexam to $wims_menu_items
  95.  !endif
  96.  </p>
  97. !else
  98.   !read examcontent.phtml
  99. !endif
  100.  
  101. !if $activetest=0
  102.  !let wims_menu_items=!append line addexo,1,cmd=reply&job=exo&exo=$[$exocnt+1]\
  103. addsexo,1,cmd=reply&job=cpsheet to $wims_menu_items
  104. !endif
  105.  
  106. !if $wims_user=supervisor and $exocnt>0
  107.  !let wims_menu_items=!append line itemsep,0,\
  108. duplicateexam,1,cmd=reply&job=duplicate to $wims_menu_items
  109. !endif
  110.  
  111. !if $activetest>=0
  112.  !let wims_menu_items=!append line itemsep,0,\
  113. participantview,1,cmd=reply&job=student to $wims_menu_items
  114. !endif
  115. </div>
  116.  
  117. :end
  118. </div>
  119. !tail
  120.  
  121. !reset job,echoose,eweight,ename,edep,eopt,source
  122.  
  123.