Subversion Repositories wimsdev

Rev

Rev 15987 | Rev 15998 | 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></div>
  59.    
  60.     !! ---- manage of seqliste panel
  61.     <div id="seqliste">
  62.      $name_addseq
  63.      $table_header
  64.       <caption>$wims_name_Docs, $wims_name_Votes & $C_A</caption>
  65.       $table_hdtr
  66.         <th scope="col">$wims_name_title</th>
  67.         <th scope="col">$wims_name_Status</th>
  68.         <th scope="col">$wims_name_Position</th>
  69.       </tr>
  70.       !set listc=!filelist $wims_home/log/classes/$wims_class/doc
  71.       !set listc=!replace internal c by in $listc
  72.       !set listc=!lines2items $listc
  73.       !set listc=!sort numeric items $listc
  74.      
  75.       !! -- doc of the class data
  76.       !for i=1 to $doccnt
  77.         !set ci_=!item $(wims_sort_order[$i]) of $listc
  78.         !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index
  79.         !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_
  80.         !set ss_=!replace internal c by c$ $ in $s_
  81.         !set c_$i=!positionof item $ss_ in $(data[3;])
  82.         !set ss_=!replace internal c by c_ in $s_
  83.         !if $s_!=
  84.           $table_tr
  85.             <td>
  86.               <label for="$ss_">
  87.                 !set wims_ref_class=wims_doc_item
  88.                 !href module=adm/doc&job=read&doc=$s_&block=main $t_
  89.               </label>
  90.             </td>
  91.             <td class="wims_status_$o_">
  92.               !item $[$o_+1] of $wims_name_status
  93.               !set wims_ref_class=wims_button
  94.               !href module=adm/doc&job=prop&doc=$s_ $wims_name_change
  95.             </td>
  96.             <td>
  97.              <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_" />
  98.             </td>
  99.           </tr>
  100.         !endif
  101.       !next i
  102.      
  103.       !! -- public doc data
  104.       !for i=1 to $docpubliccnt
  105.         !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
  106.         !distribute lines $sh into s_,t_,ti,d_,o_
  107.         $table_tr
  108.           <td>
  109.             !set wims_ref_class=wims_doc_item
  110.             <label for="doc_$i">
  111.               !href module=$s_&$t_ $ti
  112.             </label>
  113.           </td>
  114.           <td class="wims_status_$o_">
  115.             !item $[$o_+1] of $wims_name_status
  116.             !set wims_ref_class=wims_button
  117.             !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change
  118.           </td>
  119.           <td>
  120.             !set doc_$i=!positionof item doc $i in $(data[3;])
  121.             <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i" />
  122.           </td>
  123.         </tr>
  124.       !next i
  125.      
  126.       !! -- sheet data
  127.       !for i=1 to $sheetcnt
  128.         !set sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
  129.         !distribute lines $sh into ac,t_,ti
  130.         $table_tr
  131.         <td>
  132.           !set wims_ref_class=wims_sheet_item
  133.           <label for="sheet_$i">
  134.             !href module=adm/class/sheet&sheet=$i $ti
  135.           </label>
  136.         </td>
  137.         <td class="wims_status_$ac">
  138.           $(wims_name_shstatus[$ac+1])
  139.         </td>
  140.         <td>
  141.           !set sheet_$i=!positionof item sheet $i in $(data[3;])
  142.           <input type="number" name="sheet_$i" size="5" value="$(sheet_$i)" id="sheet_$i" />
  143.         </td>
  144.       </tr>
  145.     !next i
  146.  
  147.     !! -- exam data
  148.     !for i=1 to $examcnt
  149.       !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams
  150.       !distribute lines $sh into ac,t_,d_,ti
  151.       $table_tr
  152.         <td>
  153.           <label for="exam_$i">
  154.             !set wims_ref_class=wims_exam_item
  155.             !href module=adm/class/exam&exam=$i $ti
  156.           </label>
  157.         </td>
  158.         <td class="wims_status_$ac">
  159.           $(wims_name_shstatus[$ac+1])
  160.         </td>
  161.         <td>
  162.           !set exam_$i=!positionof item exam $i in $(data[3;])
  163.           <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i"/>
  164.         </td>
  165.       </tr>
  166.     !next i
  167.  
  168.  
  169.     !! -- vote data
  170.       !for i=1 to $votecnt
  171.         !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes
  172.         !distribute lines $sh into st_,ti_,op_,re_
  173.         $table_tr
  174.         <td>
  175.           <label for="vote_$i">
  176.             !set wims_ref_class=wims_vote_item
  177.             !href module=adm/vote&job=read&vote=$i $ti_
  178.           </label>
  179.         </td>
  180.         <td class="wims_status_$st_">
  181.           $(wims_name_status[$st_+1])
  182.         </td>
  183.         <td>
  184.           !set vote_$i=!positionof item vote $i in $(data[3;])
  185.           <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i"/>
  186.         </td>
  187.       </tr>
  188.     !next i
  189.  
  190.     !! -- tool data
  191.     !for i=1 to $toolcnt
  192.       !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex
  193.         !distribute lines $sh into s_,t_,ti,d_,o_
  194.         $table_tr
  195.           <td>
  196.             <label for="tool_$i">
  197.               !set wims_ref_class=wims_tool_item
  198.               !href module=$s_&$t_ $ti
  199.             </label>
  200.           </td>
  201.           <td class="wims_status_$o_">
  202.             !item $[$o_+1] of $wims_name_status
  203.             !set wims_ref_class=wims_button
  204.             !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change
  205.           </td>
  206.           <td>
  207.             !set doc_$i=!positionof item tool $i in $(data[3;])
  208.             <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i" />
  209.           </td>
  210.         </tr>
  211.       !next i
  212.  
  213.       !! -- glossary data
  214.       !for i=1 to $glossarycnt
  215.         !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex
  216.         !distribute lines $sh into o_,ti
  217.         $table_tr
  218.         <td>
  219.           <label for="glossary_$i">
  220.             !set wims_ref_class=wims_glossary_item
  221.             !href module=adm/tool/glossary&gl=$i $ti
  222.           </label>
  223.         </td>
  224.         <td class="wims_status_$o_">
  225.           !item $[$o_+1] of $wims_name_status
  226.           !set wims_ref_class=wims_button
  227.           !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change
  228.         </td>
  229.         <td>
  230.           !set glossary_$i=!positionof item glossary $i in $(data[3;])
  231.           <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i" />
  232.         </td>
  233.       </tr>
  234.     !next i
  235.  
  236.     !! -- freework data
  237.     !for i=1 to $freeworkcnt
  238.         !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks
  239.         !distribute lines $sh into o_,bl,ti
  240.         $table_tr
  241.           <td>
  242.             <label for="freework_$i">
  243.               !set wims_ref_class=wims_freework_item
  244.               !href module=adm/class/freework/&freework=$i $ti
  245.             </label>
  246.           </td>
  247.           <td class="wims_status_$o_">
  248.             $(wims_name_shstatus[$o_+1])
  249.           </td>
  250.           <td>
  251.             !set freework_$i=!positionof item freework $i in $(data[3;])
  252.             <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i" />
  253.           </td>
  254.         </tr>
  255.     !next i
  256.   </div>
  257.   $table_end
  258. </div>
  259.  
  260.  
  261. <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div>
  262. !formend
  263. </div>
  264.