Subversion Repositories wimsdev

Rev

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

  1. !reset confirm
  2. !read adm/css.phtml
  3.  
  4. !read js/external/tinymce.phtml .iEdit
  5. !header1
  6.  
  7. <!-- adm/class/sheet/main.phtml START -->
  8.  
  9. !read adm/class/classname.phtml $wims_classname\
  10. $wims_institutionname
  11.  
  12. !if $job iswordof student chseries
  13.   !changeto $job.phtml
  14. !endif
  15. !if $job notwordof prep_modify getsource clone
  16.   !read adm/title.phtml 1\
  17. $classname\
  18. $name_title $name_title2
  19. !else
  20.   !read adm/title.phtml 1\
  21. $name_title\
  22. $(name_$(job1)) $modif
  23. !endif
  24. !if $error!=$empty
  25.   !if prep_ notin $error
  26.     !!this is not a true message error ...
  27.     <div class="wims_msg alert">
  28.       !read lang/msg.phtml.$moduclass_lang
  29.     </div>
  30.   !else
  31.     !read lang/msg.phtml.$moduclass_lang
  32.   !endif
  33.   !if $display!=1
  34.     !goto end
  35.   !endif
  36. !else
  37.   !if $message!=$empty
  38.     <div class="wims_msg success">
  39.       $message
  40.     </div>
  41.     !reset message
  42.   !endif
  43. !endif
  44.  
  45. !if $job=getsource
  46.   !read getsource.phtml
  47.   !goto end
  48. !endif
  49.  
  50. <div id="sheet_management">
  51. !if $jquery_defined=yes
  52.   <script>
  53.     /*<![CDATA[*/
  54.     jQuery(function($$) {
  55.       // Get in sessionStorage if a tab was previously selected, and activate it.
  56.       var selectedTabId = sessionStorage.getItem("sheet_management_selectedTab");
  57.       selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
  58.       $$("#sheet_management").tabs({
  59.         active: selectedTabId,
  60.         activate : function( event, ui ) {
  61.             selectedTabId = $$("#sheet_management").tabs("option", "active");
  62.             sessionStorage.setItem("sheet_management_selectedTab", selectedTabId);
  63.         }
  64.       });
  65.     });
  66.     /*]]>*/
  67.   </script>
  68.   <ul>
  69.     <li><a href="#sheetinfo">$name_info</a></li>
  70.     !ifval $activetest!=-1
  71.       <li><a href="#list">$name_content</a></li>
  72.       !if $indivtechvar!=0 and $indivtechvar!=$empty
  73.         <li><a href="#individualisation">$name_individualisation</a></li>
  74.       !endif
  75.       !if $prpage_save=yes
  76.         <li><a href="#prpage">$(name_shinfo[5])</a></li>
  77.       !endif
  78.     !endif
  79.   </ul>
  80.   <div id="sheetinfo">
  81.      !read adm/sheet/sheetinfo.phtml
  82.   </div>
  83. !else
  84.   !if $wims_infoshow=no
  85.    <fieldset class="property_fields blockcenter">
  86.      <legend> $name_info [
  87.      !href cmd=resume&infoshow=yes $wims_name_showall
  88.      ]
  89.      </legend>
  90.    </fieldset>
  91.   !else
  92.     !read adm/sheet/sheetinfo.phtml
  93.   !endif
  94. !endif
  95.  
  96. !ifval $activetest=-1
  97.   !goto end
  98. !endif
  99.  
  100. :end1
  101. <div id="list">
  102. !if $exocnt=0
  103.   <p class="wims_msg info">$name_warning</p>
  104. !else
  105.   !if $activetest=0
  106.     <a class="wims_button" href="#add_work">$name_add_work</a>
  107.   !endif
  108.   !set wims_ref_class=wims_button
  109.   !href module=adm/sheet&sh=$sheet&job=print $wims_name_printable
  110.  
  111.   !read adm/sheet/sheetcontent.phtml
  112. !endif
  113.  
  114. !if $activetest=0
  115. <fieldset id="add_work">
  116.   <legend><h2>$name_add_work</h2></legend>
  117.   <div class="formHelp">$name_text1</div>
  118.   <p>$name_options_to_add...</p>
  119.   <div><p class="text_icon search">$name_text2:</p>
  120.     !read adm/search_engine/form.phtml
  121.   </div>
  122.   <p>$name_other_options:</p>
  123.   <ul class="flex_box grid-x small-up-1 medium-up-3">
  124.     <li class="card cell"><div class="card-section">
  125.       $name_text3
  126.       !set wims_ref_class=text_icon classexo
  127.       !href module=classes/$lang&special_parm=.nocache. $wims_name_classexo
  128.     </div></li><li class="card cell"><div class="card-section">
  129.       !set wims_ref_class=text_icon tags
  130.       !href target=wims_internal module=adm/browse&job=taxo $name_texttaxo
  131.       !!!href target=wims_internal module=adm/browse&job=subject $name_textsubject
  132.     </div></li><li class="card cell"><div class="card-section">
  133.       !set wims_ref_class=text_icon file
  134.       !href cmd=reply&job=prep_putsource $wims_name_putsource
  135.     </div></li>
  136.     !if $wims_devel_modules iswordof open
  137.       <li class="card cell"><div class="card-section">
  138.         <span>$name_text4</span>
  139.         !href module=adm/modtool $wims_name_modtool
  140.       </div></li>
  141.     !endif
  142.     !if $name_helpprog!=$empty
  143.       <li class="card cell"><div class="card-section">$(name_helpprog[1])
  144.         !set wims_ref_class=text_icon browse
  145.         !href module=help/teacher/program $(name_helpprog[2])
  146.         $(name_helpprog[3]).
  147.       </div></li>
  148.     !endif
  149.   </ul>
  150. </fieldset>
  151. !endif
  152. </div>
  153. !! -------- end of id=list
  154.  
  155. !if $indivtechvar!=0 and $indivtechvar!=$empty
  156.   <div id="individualisation">
  157.     !readproc indiv.proc
  158.     !read indiv.phtml
  159.   </div>
  160. !endif
  161.  
  162. !if $prpage_save=yes
  163.   <div id="prpage">
  164. !!    !readproc proc/prpage.proc
  165.     !read proc/prpage.phtml
  166.   </div>
  167. !endif
  168.  
  169.  
  170. :end
  171. </div>
  172. !if $activetest>=0
  173.   !if $activetest=0
  174.     !let wims_menu_items=!append line putsource,1,cmd=reply&job=prep_putsource to $wims_menu_items
  175.   !endif
  176.   !if $job!=getsource and
  177.     !let wims_menu_items=!append line sheetsource,1,cmd=reply&job=getsource to $wims_menu_items
  178.   !endif
  179.   !if $exocnt>0
  180.     !let wims_menu_items=!append line duplicatesheet,1,cmd=reply&job=duplicate&sheet=$sheet to $wims_menu_items
  181.   !endif
  182.   !let wims_menu_items=!append line itemsep,0,\
  183. printable,1,module=adm/sheet&sh=$sheet&job=print\
  184. participantview,1,module=adm/sheet&sh=$sheet to $wims_menu_items
  185. !endif
  186.  
  187. <!-- adm/class/sheet/main.phtml END -->
  188. !tail
  189.  
  190. !distribute item ,,,, into job,source,title,desc,prpage
  191.