Subversion Repositories wimsdev

Rev

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

  1. !if $(module_description_$moduclass_lang)!=$empty
  2.   !set module_description=$(module_description_$moduclass_lang)
  3. !endif
  4. !read adm/title.phtml 1\
  5. $classname\
  6. $module_description\
  7. $wims_name_sequence $seq
  8.  
  9. $name_addseq
  10.  
  11. !! Read some translation vars (like $C_A)
  12. !readproc adm/search_engine/names.$lang
  13.  
  14. !set data=!record 1 of wimshome/log/classes/$wims_class/seq/.sequence$seq
  15. !form reply
  16.   <label for="seq_title">$wims_name_title</label>: <input id="seq_title" name="seq_title" size="12" value="$(data[1;])">
  17.   $
  18.   <label for="seq_desc"> $wims_name_Description</label>: <input id="seq_desc" name="seq_desc" size="20" value="$(data[2;])">
  19.   $
  20.   <label for="visible">$wims_name_Status</label>:
  21.   !set visible=$(data[4;])
  22.   !formselect visible list 0,1 prompt $wims_name_shstatus[0..1]
  23.   $table_header
  24.     <caption>$wims_name_Docs, $wims_name_Votes & $C_A</caption>
  25.  
  26.     $table_hdtr<th scope="col">$wims_name_title</th>
  27.     <th scope="col">$wims_name_Status</th>
  28.     <th scope="col">$wims_name_Position</th></tr>
  29.  
  30.     !set listc=!filelist $wims_home/log/classes/$wims_class/doc
  31.     !set listc=!replace internal c by in $listc
  32.     !set listc=!lines2items $listc
  33.     !set listc=!sort numeric items $listc
  34.  
  35. !for i=1 to $doccnt
  36.   !set ci_=!item $(wims_sort_order[$i]) of $listc
  37.   !set sh=!record $ci_ of wimshome/log/classes/$wims_class/doc/.index
  38.   !distribute lines $sh into s_,t_,bidon,bidon,bidon,o_
  39.   !set ss_=!replace internal c by c$ $ in $s_
  40.   !set c_$i=!positionof item $ss_ in $(data[3;])
  41.   !set ss_=!replace internal c by c_ in $s_
  42.   !if $s_!=
  43.     $table_tr
  44.       <td>
  45.         <label for="$ss_">
  46.         !set wims_ref_class=wims_doc_item
  47.         !href module=adm/doc&job=read&doc=$s_&block=main $t_
  48.         </label>
  49.       </td><td class="wims_status_$o_">
  50.         !item $[$o_+1] of $wims_name_status
  51.         !set wims_ref_class=wims_button
  52.         !href module=adm/doc&job=prop&doc=$s_ $wims_name_change
  53.       </td><td>
  54.         <input type="number" name="$ss_" size="5" value="$(c_$i)" id="$ss_">
  55.       </td>
  56.     </tr>
  57.   !endif
  58. !next i
  59.  
  60. !for i=1 to $docpubliccnt
  61.   !set sh=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
  62.   !distribute lines $sh into s_,t_,ti,d_,o_
  63.   $table_tr
  64.     <td>
  65.       !set wims_ref_class=wims_doc_item
  66.       <label for="doc_$i">
  67.         !href module=$s_&$t_ $ti
  68.       </label>
  69.     </td><td class="wims_status_$o_">
  70.       !item $[$o_+1] of $wims_name_status
  71.       !set wims_ref_class=wims_button
  72.       !href module=adm/class/adddoc&job=prop&doc=$i $wims_name_change
  73.     </td><td>
  74.       !set doc_$i=!positionof item doc $i in $(data[3;])
  75.       <input type="number" name="doc_$i" size="5" value="$(doc_$i)" id="doc_$i">
  76.     </td>
  77.   </tr>
  78. !next i
  79.  
  80. !for i=1 to $sheetcnt
  81.   !set sh=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
  82.   !distribute lines $sh into ac,t_,ti
  83.   $table_tr
  84.     <td>
  85.       !set wims_ref_class=wims_sheet_item
  86.       <label for="sheet_$i">
  87.         !href module=adm/class/sheet&sheet=$i $ti
  88.       </label>
  89.     </td><td class="wims_status_$ac">
  90.       $(wims_name_shstatus[$ac+1])
  91.     </td><td>
  92.       !set sheet_$i=!positionof item sheet $i in $(data[3;])
  93.       <input type="number" name="sheet_$i" size="5" value="$(sheet_$i)" id="sheet_$i">
  94.     </td>
  95.   </tr>
  96. !next i
  97.  
  98. !!set examcnt=!recordcnt wimshome/log/classes/$wims_class/exams/.exams
  99. !for i=1 to $examcnt
  100.   !set sh=!record $i of wimshome/log/classes/$wims_class/exams/.exams
  101.   !distribute lines $sh into ac,t_,d_,ti
  102.   $table_tr
  103.     <td>
  104.       <label for="exam_$i">
  105.         !set wims_ref_class=wims_exam_item
  106.         !href module=adm/class/exam&exam=$i $ti
  107.       </label>
  108.     </td><td class="wims_status_$ac">
  109.       $(wims_name_shstatus[$ac+1])
  110.     </td><td>
  111.       !set exam_$i=!positionof item exam $i in $(data[3;])
  112.       <input type="number" name="exam_$i" size="5" value="$(exam_$i)" id="exam_$i">
  113.     </td>
  114.   </tr>
  115. !next i
  116.  
  117. !!set votecnt=!recordcnt wimshome/log/classes/$wims_class/vote/.votes
  118. !for i=1 to $votecnt
  119.   !set sh=!record $i of wimshome/log/classes/$wims_class/vote/.votes
  120.   !distribute lines $sh into st_,ti_,op_,re_
  121.   $table_tr
  122.     <td>
  123.       <label for="vote_$i">
  124.         !set wims_ref_class=wims_vote_item
  125.         !href module=adm/vote&job=read&vote=$i $ti_
  126.       </label>
  127.     </td><td class="wims_status_$st_">
  128.       $(wims_name_status[$st_+1])
  129.     </td><td>
  130.       !set vote_$i=!positionof item vote $i in $(data[3;])
  131.       <input type="number" name="vote_$i" size="5" value="$(vote_$i)" id="vote_$i">
  132.     </td>
  133.   </tr>
  134. !next i
  135.  
  136. !for i=1 to $toolcnt
  137.   !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.toolindex
  138.   !distribute lines $sh into s_,t_,ti,d_,o_
  139.   $table_tr
  140.     <td>
  141.       <label for="tool_$i">
  142.         !set wims_ref_class=wims_tool_item
  143.         !href module=$s_&$t_ $ti
  144.       </label>
  145.     </td><td class="wims_status_$o_">
  146.       !item $[$o_+1] of $wims_name_status
  147.       !set wims_ref_class=wims_button
  148.       !href module=adm/class/adddoc&job=prop&tool=$i $wims_name_change
  149.     </td><td>
  150.       !set doc_$i=!positionof item tool $i in $(data[3;])
  151.       <input type="number" name="tool_$i" size="5" value="$(tool_$i)" id="tool_$i">
  152.     </td>
  153.   </tr>
  154. !next i
  155.  
  156. !for i=1 to $glossarycnt
  157.   !set sh=!record $i of wimshome/log/classes/$wims_class/tool/.glossaryindex
  158.   !distribute lines $sh into o_,ti
  159.   $table_tr
  160.     <td>
  161.       <label for="glossary_$i">
  162.         !set wims_ref_class=wims_glossary_item
  163.         !href module=adm/tool/glossary&gl=$i $ti
  164.       </label>
  165.     </td><td class="wims_status_$o_">
  166.       !item $[$o_+1] of $wims_name_status
  167.       !set wims_ref_class=wims_button
  168.       !href module=adm/class/glossary&job=chstatus&gl=$i $wims_name_change
  169.     </td><td>
  170.       !set glossary_$i=!positionof item glossary $i in $(data[3;])
  171.       <input type="number" name="glossary_$i" size="5" value="$(glossary_$i)" id="glossary_$i">
  172.     </td>
  173.   </tr>
  174. !next i
  175.  
  176. !for i=1 to $freeworkcnt
  177.   !set sh=!record $i of wimshome/log/classes/$wims_class/freeworks/.freeworks
  178.   !distribute lines $sh into o_,bl,ti
  179.   $table_tr
  180.     <td>
  181.       <label for="freework_$i">
  182.         !set wims_ref_class=wims_freework_item
  183.         !href module=adm/class/freework/&freework=$i $ti
  184.       </label>
  185.     </td><td class="wims_status_$o_">
  186.       $(wims_name_shstatus[$o_+1])
  187.     </td><td>
  188.       !set freework_$i=!positionof item freework $i in $(data[3;])
  189.       <input type="number" name="freework_$i" size="5" value="$(freework_$i)" id="freework_$i">
  190.     </td>
  191.   </tr>
  192. !next i
  193.  
  194.  
  195. $table_end
  196. <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave"></div>
  197. !formend
  198.