Subversion Repositories wimsdev

Rev

Rev 15988 | Rev 16001 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if $jquery_defined!=yes
  2.   !changeto addseq-old.phtml
  3. !endif
  4. !if $(module_description_$moduclass_lang)!=$empty
  5.   !set module_description=$(module_description_$moduclass_lang)
  6. !endif
  7. !read adm/title.phtml 1\
  8. $classname\
  9. $module_description\
  10. $wims_name_sequence $seq
  11.  
  12. <div id="seq_management">
  13.   <script>
  14.     /*<![CDATA[*/
  15.     jQuery(function($$) {
  16.       // Get in sessionStorage if a tab was previously selected, and activate it.
  17.       var selectedTabId = sessionStorage.getItem("seq_management_selectedTab");
  18.       selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0
  19.       $$("#seq_management").tabs({
  20.         active: selectedTabId,
  21.         activate : function( event, ui ) {
  22.             selectedTabId = $$("#seq_management").tabs("option", "active");
  23.             sessionStorage.setItem("seq_management_selectedTab", selectedTabId);
  24.         }
  25.       });
  26.     });
  27.     /*]]>*/
  28.   </script>
  29.   <ul>
  30.     <li><a href="#seqinfo">$name_info</a></li>
  31.     <li><a href="#seqliste">$name_content</a></li>
  32.   </ul>
  33.  
  34.   !! Read some translation vars (like $C_A)
  35.   !readproc adm/search_engine/names.$lang
  36.  
  37.   !set data=!record 1 of wimshome/log/classes/$wims_class/seq/.sequence$seq
  38.   !form reply
  39.     !! ---- manage of seqinfo panel
  40.     <div id="seqinfo"><fieldset class="property_fields blockcenter">
  41.       <div class="field box fullwidth">
  42.         <label for="seq_title">$wims_name_title</label>
  43. !!          !set wims_ref_class=wims_button_help float_right
  44. !!          !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help
  45.         <input id="seq_title" name="seq_title" size="65" value="$(data[1;])" required="required" maxlength="$title_limit" />
  46.         <div class="formHelp">$name_desc_title</div>
  47.       </div>
  48.       <div class="field box fullwidth">
  49.         <label for="visible">$wims_name_Status</label>
  50.         !set visible=$(data[4;])
  51.         !formselect visible list 0,1 prompt $wims_name_status
  52.       </div>
  53.       <div class="field box fullwidth">
  54.         <label for="seq_desc"> $wims_name_Description</label>
  55.         <div class="formHelp">$name_desc_desc</div>
  56.         <textarea id="seq_desc" class="iEdit" rows="6" cols="85" name="seq_desc" maxlength="$desc_limit">$(data[2;])</textarea>
  57.       </div>
  58.       <div class="field box">
  59.         <label for="hidedate">$name_hidedate</label>
  60.         !set hidedate=$(data[5;])
  61.         !default hidedate=$class_creation
  62.         !set wims_ref_class=wims_button_help float_right
  63.         !href target=wims_mhelp cmd=help&special_parm=hide $wims_name_help
  64.         !read adm/datepickerform.phtml $hidedate\
  65. hidedate\
  66. "$class_creation","$class_expiration"
  67.         <div class="formHelp">$name_desc_hidedate</div>
  68.       </div>
  69.       <div class="field box">
  70.         <label for="showdate">$name_showdate</label>
  71.         !set hidedate=$(data[6;])
  72.         !default showdate=$class_creation
  73.         !set wims_ref_class=wims_button_help float_right
  74.         !href target=wims_mhelp cmd=help&special_parm=show $wims_name_help
  75.         !read adm/datepickerform.phtml $showdate\
  76. showdate\
  77. "$class_creation","$class_expiration"
  78.         <div class="formHelp">$name_desc_showdate</div>
  79.       </div>
  80.     </div></div>
  81.    
  82.     !! ---- manage of seqliste panel
  83.     <div id="seqliste">
  84.      $name_addseq
  85.      $table_header
  86.       <caption>$wims_name_Docs, $wims_name_Votes & $C_A</caption>
  87.       $table_hdtr
  88.         <th scope="col">$wims_name_title</th>
  89.         <th scope="col">$wims_name_Status</th>
  90.         <th scope="col">$wims_name_Position</th>
  91.       </tr>
  92.       !set listc=!filelist $wims_home/log/classes/$wims_class/doc
  93.       !set listc=!replace internal c by in $listc
  94.       !set listc=!lines2items $listc
  95.       !set listc=!sort numeric items $listc
  96.      
  97.       !! -- doc of the class data
  98.       !for i=1 to $doccnt
  99.         !set ci_=!item $(wims_sort_order[$i]) of $listc
  100.         !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index
  101.         !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_
  102.         !set ss_=!replace internal c by c$ $ in $s_
  103.         !set c_$i=!positionof item $ss_ in $(data[3;])
  104.         !set ss_=!replace internal c by c_ in $s_
  105.         !if $s_!=
  106.           $table_tr
  107.             <td>
  108.               <label for="$ss_">
  109.                 !set wims_ref_class=wims_doc_item
  110.                 !href module=adm/doc&job=read&doc=$s_&block=main $t_
  111.               </label>
  112.             </td>
  113.             <td class="wims_status_$o_">
  114.               !item $[$o_+1] of $wims_name_status
  115.               !set wims_ref_class=wims_button
  116.               !href module=adm/doc&job=prop&doc=$s_ $wims_name_change
  117.             </td>
  118.             <td>
  119.              <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_" />
  120.             </td>
  121.           </tr>
  122.         !endif
  123.       !next i
  124.      
  125.       !! -- public doc data
  126.       !for i=1 to $docpubliccnt
  127.         !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
  128.         !distribute lines $sh into s_,t_,ti,d_,o_
  129.         $table_tr
  130.           <td>
  131.             !set wims_ref_class=wims_doc_item
  132.             <label for="doc_$i">
  133.               !href module=$s_&$t_ $ti
  134.             </label>
  135.           </td>
  136.           <td class="wims_status_$o_">
  137.             !item $[$o_+1] of $wims_name_status
  138.             !set wims_ref_class=wims_button
  139.             !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change
  140.           </td>
  141.           <td>
  142.             !set doc_$i=!positionof item doc $i in $(data[3;])
  143.             <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i" />
  144.           </td>
  145.         </tr>
  146.       !next i
  147.      
  148.       !! -- sheet data
  149.       !for i=1 to $sheetcnt
  150.         !set sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
  151.         !distribute lines $sh into ac,t_,ti
  152.         $table_tr
  153.         <td>
  154.           !set wims_ref_class=wims_sheet_item
  155.           <label for="sheet_$i">
  156.             !href module=adm/class/sheet&sheet=$i $ti
  157.           </label>
  158.         </td>
  159.         <td class="wims_status_$ac">
  160.           $(wims_name_shstatus[$ac+1])
  161.         </td>
  162.         <td>
  163.           !set sheet_$i=!positionof item sheet $i in $(data[3;])
  164.           <input type="number" name="sheet_$i" size="5" value="$(sheet_$i)" id="sheet_$i" />
  165.         </td>
  166.       </tr>
  167.     !next i
  168.  
  169.     !! -- exam data
  170.     !for i=1 to $examcnt
  171.       !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams
  172.       !distribute lines $sh into ac,t_,d_,ti
  173.       $table_tr
  174.         <td>
  175.           <label for="exam_$i">
  176.             !set wims_ref_class=wims_exam_item
  177.             !href module=adm/class/exam&exam=$i $ti
  178.           </label>
  179.         </td>
  180.         <td class="wims_status_$ac">
  181.           $(wims_name_shstatus[$ac+1])
  182.         </td>
  183.         <td>
  184.           !set exam_$i=!positionof item exam $i in $(data[3;])
  185.           <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"/>
  186.         </td>
  187.       </tr>
  188.     !next i
  189.  
  190.  
  191.     !! -- vote data
  192.       !for i=1 to $votecnt
  193.         !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes
  194.         !distribute lines $sh into st_,ti_,op_,re_
  195.         $table_tr
  196.         <td>
  197.           <label for="vote_$i">
  198.             !set wims_ref_class=wims_vote_item
  199.             !href module=adm/vote&job=read&vote=$i $ti_
  200.           </label>
  201.         </td>
  202.         <td class="wims_status_$st_">
  203.           $(wims_name_status[$st_+1])
  204.         </td>
  205.         <td>
  206.           !set vote_$i=!positionof item vote $i in $(data[3;])
  207.           <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"/>
  208.         </td>
  209.       </tr>
  210.     !next i
  211.  
  212.     !! -- tool data
  213.     !for i=1 to $toolcnt
  214.       !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex
  215.         !distribute lines $sh into s_,t_,ti,d_,o_
  216.         $table_tr
  217.           <td>
  218.             <label for="tool_$i">
  219.               !set wims_ref_class=wims_tool_item
  220.               !href module=$s_&$t_ $ti
  221.             </label>
  222.           </td>
  223.           <td class="wims_status_$o_">
  224.             !item $[$o_+1] of $wims_name_status
  225.             !set wims_ref_class=wims_button
  226.             !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change
  227.           </td>
  228.           <td>
  229.             !set doc_$i=!positionof item tool $i in $(data[3;])
  230.             <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i" />
  231.           </td>
  232.         </tr>
  233.       !next i
  234.  
  235.       !! -- glossary data
  236.       !for i=1 to $glossarycnt
  237.         !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex
  238.         !distribute lines $sh into o_,ti
  239.         $table_tr
  240.         <td>
  241.           <label for="glossary_$i">
  242.             !set wims_ref_class=wims_glossary_item
  243.             !href module=adm/tool/glossary&gl=$i $ti
  244.           </label>
  245.         </td>
  246.         <td class="wims_status_$o_">
  247.           !item $[$o_+1] of $wims_name_status
  248.           !set wims_ref_class=wims_button
  249.           !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change
  250.         </td>
  251.         <td>
  252.           !set glossary_$i=!positionof item glossary $i in $(data[3;])
  253.           <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i" />
  254.         </td>
  255.       </tr>
  256.     !next i
  257.  
  258.     !! -- freework data
  259.     !for i=1 to $freeworkcnt
  260.         !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks
  261.         !distribute lines $sh into o_,bl,ti
  262.         $table_tr
  263.           <td>
  264.             <label for="freework_$i">
  265.               !set wims_ref_class=wims_freework_item
  266.               !href module=adm/class/freework/&freework=$i $ti
  267.             </label>
  268.           </td>
  269.           <td class="wims_status_$o_">
  270.             $(wims_name_shstatus[$o_+1])
  271.           </td>
  272.           <td>
  273.             !set freework_$i=!positionof item freework $i in $(data[3;])
  274.             <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i" />
  275.           </td>
  276.         </tr>
  277.     !next i
  278.   </div>
  279.   $table_end
  280. </div>
  281.  
  282.  
  283. <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div>
  284. !formend
  285. </div>
  286.