Subversion Repositories wimsdev

Rev

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

  1. $name_classnumber
  2. <br>
  3. $name_description
  4. !set wims_ref_class=wims_button_help
  5. !href target=wims_mhelp cmd=help $wims_name_help
  6.  
  7. <div id="widget_supervisor_list">
  8.   !if $jquery_defined=yes
  9.     !read adm/tabscript supervisor_list
  10.   !endif
  11.   <ul id="wims_supervisor_summary">
  12.     !if $[$docpubliccnt+$doccnt]>0
  13.       <li><a class="wims_doc_item" href="#wims_supervisor_doc">$wims_name_Docs</a></li>
  14.     !endif
  15.     !if $sheetcnt>0
  16.       <li><a class="wims_sheet_item" href="#wims_supervisor_sheet">$wims_name_Sheets</a></li>
  17.     !endif
  18.     !if $examcnt>0
  19.       <li><a class="wims_exam_item" href="#wims_supervisor_exam">$wims_name_Examens</a></li>
  20.     !endif
  21.     !if $votecnt>0
  22.       <li><a class="wims_vote_item" href="#wims_supervisor_vote">$wims_name_Votes</a></li>
  23.     !endif
  24.     !if $toolcnt>0
  25.       <li><a class="wims_tool_item" href="#wims_supervisor_tool">$wims_name_tools</a></li>
  26.     !endif
  27.     !if $glossarycnt>0
  28.       <li><a class="wims_glossary_item" href="#wims_supervisor_glossary">$wims_name_Glossaries</a></li>
  29.     !endif
  30.     !if $freeworkcnt>0
  31.       <li><a class="wims_freework_item" href="#wims_supervisor_freework">$wims_name_Freeworks</a></li>
  32.     !endif
  33.   </ul>
  34.  
  35. !! ------------- table of sheet
  36.   !set table_class=sortable
  37.   !if $sheetcnt>0
  38.     !set table_id=TABLE_supervisor_sheet
  39.     <div id="wims_supervisor_sheet">
  40.         $name_msgsheet
  41.         !if $classsheetcnt>=$max_sheets
  42.           <br>$name_touchlimit
  43.         !endif
  44.         !distribute item 1,no into wims_incremental,table_spacer
  45.         !form reply
  46.           <input type="hidden" name="job" value="import">
  47.           <input type="hidden" name="type" value="sheet">
  48.           $table_header
  49.           <thead><tr>
  50.             <th data-sort-method="none">
  51.               !if $listsheetimport!=$empty and $classsheetcnt<$max_sheets
  52.                 !read js/mastercheckbox.phtml sheet_checkbox
  53.               !endif
  54.             </th>
  55.             <th>$name_number</th>
  56.             <th>$wims_name_title</th>
  57.             <th>$name_Exercices</th>
  58.             <th>$wims_name_comment</th>
  59.           </tr></thead>
  60.           !for i=1 to $sheetcnt
  61.             !set sh=!record $i of wimshome/sessions/$wims_session/upload/class/sheets/.sheets
  62.             !distribute lines $sh into ac,t_,ti
  63.             !let exocnt_=!recordcnt wimshome/sessions/$wims_session/upload/class/sheets/.sheet$i
  64.             $table_tr
  65.               <td>
  66.                 !if $(listsheeterror[$i])=0 and $classsheetcnt<$max_sheets
  67.                   <input type="checkbox" class="sheet_checkbox" name="num" value="$i">
  68.                 !endif
  69.               </td>
  70.               <td><span class="wims_sheet_item">$i</span></td>
  71.               <td>$ti</td>
  72.               <td>$exocnt_</td>
  73.               <td>
  74.                 !if $(listsheeterror[$i])!=0
  75.                   !line $(listsheeterror[$i]) of $name_sheeterrormsg
  76.                 !else
  77.                   !if $classsheetcnt<$max_sheets and $i isitemof $listsheetimport
  78.                     !set wims_ref_class=wims_button
  79.                     !href cmd=reply&+module=$module&+job=import&+type=sheet&+num=$i $wims_name_import
  80.                     !if $dropbuttonlink!=$empty
  81.                       !let t=!replace internal IIII by $i in $dropbuttonlink
  82.                       !read js/dropdownbutton.phtml dropbutton$i\
  83.                             $name_replace\
  84.                             $t
  85.                      !endif
  86.                   !else
  87.                     !if $classsheetcnt<$max_sheets
  88.                       $name_alreadyinclass
  89.                     !else
  90.                        $name_limittouch
  91.                     !endif
  92.                   !endif
  93.                 !endif
  94.               </td>
  95.             </tr>
  96.           !next i
  97.           !reset exocnt_
  98.         $table_end
  99.         <div class="wimscenter">
  100.           <input type="submit" value="$name_importselected">
  101.         </div>
  102.         !formend
  103.         !read tablesort.phtml
  104.     </div>
  105.   !endif
  106.  
  107.   !if $examcnt>0
  108.     !set table_id=TABLE_supervisor_sheet
  109.     <div id="wims_supervisor_exam">
  110.         $name_msgexam
  111.     </div>
  112.   !endif
  113.  
  114.  
  115. !! ------------ set table for document
  116.   !if $[$docpubliccnt+$doccnt]>0
  117.     !set table_id=TABLE_supervisor_doc
  118.     <div id="wims_supervisor_doc">
  119.         $name_msgdoc
  120.         !if $classdoccnt>=$max_doc or $classdocpubliccnt>=$max_linkdoc
  121.           <br>$name_touchlimitdoc
  122.         !endif
  123.         !distribute item 1,no into wims_incremental,table_spacer
  124.         !form reply
  125.           <input type="hidden" name="job" value="import">
  126.           <input type="hidden" name="type" value="doc">
  127.           $table_header
  128.           <thead>
  129.             <tr>
  130.               <th data-sort-method="none">
  131.                 !if $listsheetimport!=$empty and ($classdoccnt<$max_doc or $classdocpubliccnt<$max_linkdoc)
  132.                   !read js/mastercheckbox.phtml doc_checkbox
  133.                 !endif
  134.               </th>
  135.               <th>$name_number</th><th>$wims_name_title</th><th>$name_type</th><th>$wims_name_comment</th>
  136.             </tr>
  137.           </thead>
  138.           !! ------ private doc
  139.           !for i=1 to $doccnt
  140.             !set d=!record $i of wimshome/sessions/$wims_session/upload/class/doc/.index
  141.             !distribute lines $d into rep,ti
  142.             !let number=!char 2 to -1 of $rep
  143.             $table_tr
  144.               <td>
  145.                 !if $number isitemof $listdocimport and $classdoccnt<$max_doc
  146.                   <input type="checkbox" class="doc_checkbox" name="num" value="$i">
  147.                 !endif
  148.               </td>
  149.               <td><span class="wims_doc_item">$rep</span></td>
  150.               <td>$ti</td>
  151.               <td>$name_prive</td>
  152.               <td>
  153.                 !if $number isitemof $listdocimport and $classdoccnt<$max_doc
  154.                   !set wims_ref_class=wims_button
  155.                   !href cmd=reply&+module=$module&+job=import&+type=doc&+num=$i $wims_name_import
  156.                 !else
  157.                   !if $classdoccnt<$max_doc
  158.                     $name_alreadyinclass
  159.                   !else
  160.                     $name_limittouch
  161.                   !endif
  162.                 !endif
  163.               </td>
  164.             </tr>
  165.           !next i
  166.           !! ------ link to public doc
  167.           !for i=1 to $docpubliccnt
  168.             !set d=!record $i of wimshome/sessions/$wims_session/upload/class/doc/.docindex
  169.             !distribute lines $d into rep,cmd,ti
  170.             $table_tr
  171.               <td>
  172.                 !if P$i isitemof $listdocimport and $classdocpubliccnt<$max_linkdoc
  173.                   <input type="checkbox" name="num" value="P$i">
  174.                 !endif
  175.               </td>
  176.               <td><span class="wims_doc_item">$i</span></td>
  177.               <td>$ti</td>
  178.               <td>$name_public</td>
  179.               <td>
  180.                 !if $i isitemof $listdocpublicnomodule
  181.                   $name_docpublicnomodule
  182.                 !else
  183.                   !if P$i isitemof $listdocimport and $classdocpubliccnt<$max_linkdoc
  184.                     !set wims_ref_class=wims_button
  185.                     !href cmd=reply&+module=$module&+job=import&+type=doc&+num=P$i $wims_name_import
  186.                     !if $i isitemof $listshdoc
  187.                       $name_doclinksheet
  188.                     !endif
  189.                   !else
  190.                     !if $classdocpubliccnt<$max_linkdoc
  191.                       $name_alreadyinclass
  192.                     !else
  193.                       $name_limittouch
  194.                     !endif
  195.                   !endif
  196.                 !endif
  197.               </td>
  198.             </tr>
  199.           !next i
  200.         $table_end
  201.         <div class="wimscenter">
  202.           <input type="submit" value="$name_importselected">
  203.         </div>
  204.         !formend
  205.         !read tablesort.phtml
  206.     </div>
  207.   !endif
  208.  
  209.   !if $votecnt>0
  210.     !set table_id=TABLE_supervisor_vote
  211.     <div id="wims_supervisor_vote">
  212.         $name_msgvote
  213.     </div>
  214.   !endif
  215.  
  216.   !! ------------ set table for tool
  217.   !if $toolcnt>0
  218.     !set table_id=TABLE_supervisor_tool
  219.     <div id="wims_supervisor_tool">
  220.         $name_msgtool
  221.         !if $classtoolcnt>=$max_tool
  222.           <br>$name_touchlimit
  223.         !endif
  224.         !distribute item 1,no into wims_incremental,table_spacer
  225.         !form reply
  226.           <input type="hidden" name="job" value="import">
  227.           <input type="hidden" name="type" value="tool">
  228.           $table_header
  229.           <thead>
  230.             <tr>
  231.               <th data-sort-method="none">
  232.                 !if $listtoolimport!=$empty and $classtoolcnt<$max_tool
  233.                   !read js/mastercheckbox.phtml tool_checkbox
  234.                 !endif
  235.               </th>
  236.               <th>$wims_name_Address</th><th>$wims_name_title</th><th>$wims_name_comment</th>
  237.             </tr>
  238.           </thead>
  239.           !! ------ tool
  240.           !for i=1 to $toolcnt
  241.             !set d=!record $i of wimshome/sessions/$wims_session/upload/class/tool/.toolindex
  242.             !distribute lines $d into rep,bl,ti
  243.             $table_tr
  244.               <td>
  245.                 !if $i isitemof $listtoolimport and $classtoolcnt<$max_tool
  246.                   <input type="checkbox" class="tool_checkbox" name="num" value="$i">
  247.                 !endif
  248.               </td>
  249.               <td><span class="wims_tool_item">$rep</span></td>
  250.               <td>$ti</td>
  251.               <td>
  252.                 !if $i isitemof $listtoolimport and $classtoolcnt<$max_tool
  253.                   !set wims_ref_class=wims_button
  254.                   !href cmd=reply&+module=$module&+job=import&+type=tool&+num=$i $wims_name_import
  255.                 !else
  256.                   !if $classtoolcnt<$max_tool
  257.                     $name_alreadyinclass
  258.                   !else
  259.                     $name_limittouch
  260.                   !endif
  261.                 !endif
  262.               </td>
  263.             </tr>
  264.           !next i
  265.         $table_end
  266.         <div class="wimscenter">
  267.           <input type="submit" value="$name_importselected">
  268.         </div>
  269.         !formend
  270.         !read tablesort.phtml
  271.     </div>
  272.   !endif
  273.  
  274.   !if $glossarycnt>0
  275.     !set table_id=TABLE_supervisor_glossary
  276.     <div id="wims_supervisor_glossary">
  277.         $name_msgglossary
  278.         !if $classglossarycnt>=$max_glossary
  279.           <br>$name_touchlimit
  280.         !endif
  281.         !distribute item 1,no into wims_incremental,table_spacer
  282.         !form reply
  283.           <input type="hidden" name="job" value="import">
  284.           <input type="hidden" name="type" value="glossary">
  285.           $table_header
  286.           <thead>
  287.             <tr>
  288.               <th data-sort-method="none">
  289.                 !if $listglossaryimport!=$empty and $classglossarycnt<$max_glossary
  290.                   !read js/mastercheckbox.phtml glossary_checkbox
  291.                 !endif
  292.               </th>
  293.               <th>$name_number</th><th>$wims_name_title</th><th>$wims_name_Description</th><th>$wims_name_comment</th>
  294.             </tr>
  295.           </thead>
  296.           !! ------ private doc
  297.           !for i=1 to $glossarycnt
  298.             !set d=!record $i of wimshome/sessions/$wims_session/upload/class/tool/.glossaryindex
  299.             !distribute lines $d into num,ti,desc
  300.             $table_tr
  301.               <td>
  302.                 !if $i isitemof $listglossaryimport and $classglossarycnt<$max_glossary
  303.                   <input type="checkbox" class="glossary_checkbox" name="num" value="$i">
  304.                 !endif
  305.               </td>
  306.               <td><span class="wims_glossary_item">$i</span></td>
  307.               <td>$ti</td>
  308.               <td>$desc</td>
  309.               <td>
  310.                 !if $i isitemof $listglossaryimport and $classglossarycnt<$max_glossary
  311.                   !set wims_ref_class=wims_button
  312.                   !href cmd=reply&+module=$module&+job=import&+type=glossary&+num=$i $wims_name_import
  313.                 !else
  314.                   !if $classglossarycnt<$max_glossary
  315.                     $name_alreadyinclass
  316.                   !else
  317.                     $name_limittouch
  318.                   !endif
  319.                 !endif
  320.               </td>
  321.             </tr>
  322.           !next i
  323.         $table_end
  324.         <div class="wimscenter">
  325.           <input type="submit" value="$name_importselected">
  326.         </div>
  327.         !formend
  328.         !read tablesort.phtml
  329.     </div>
  330.   !endif
  331.  
  332.  
  333.   !if $freeworkcnt>0
  334.     !set table_id=TABLE_supervisor_sheet
  335.     <div id="wims_supervisor_freework">
  336.         !set table_id=TABLE_supervisor_freework
  337.         <div id="wims_supervisor_sheet">
  338.           $name_msgfreework
  339.           !if $classfreeworkcnt>=$max_freeworks
  340.             <br>$name_touchlimit
  341.           !endif
  342.           !distribute item 1,no into wims_incremental,table_spacer
  343.           !form reply
  344.             <input type="hidden" name="job" value="import">
  345.             <input type="hidden" name="type" value="freework">
  346.             $table_header
  347.             <thead><tr>
  348.               <th data-sort-method="none">
  349.                 !if $listfreeworkimport!=$empty and $classfreeworkcnt<$max_freeworks
  350.                   !read js/mastercheckbox.phtml freework_checkbox
  351.                 !endif
  352.               </th>
  353.               <th>$name_number</th>
  354.               <th>$wims_name_title</th>
  355.               <th>$wims_name_comment</th>
  356.             </tr></thead>
  357.             !for i=1 to $freeworkcnt
  358.               !set sh=!record $i of wimshome/sessions/$wims_session/upload/class/freeworks/.freeworks
  359.               !distribute lines $sh into ac,t_,ti
  360.               $table_tr
  361.                 <td>
  362.                   !if $i isitemof $listfreeworkimport and $classfreeworkcnt<$max_freeworks
  363.                     <input type="checkbox" class="freework_checkbox" name="num" value="$i">
  364.                   !endif
  365.                 </td>
  366.                 <td><span class="wims_freework_item">$i</span></td>
  367.                 <td>$ti</td>
  368.                 <td>
  369.                   !if $classfreeworkcnt<$max_freeworks and $i isitemof $listfreeworkimport
  370.                     !set wims_ref_class=wims_button
  371.                     !href cmd=reply&+module=$module&+job=import&+type=freework&+num=$i $wims_name_import
  372.                     !if $fwdropbuttonlink!=$empty
  373.                       !let t=!replace internal IIII by $i in $fwdropbuttonlink
  374.                       !read js/dropdownbutton.phtml fwdropbutton$i\
  375.                             $name_replace\
  376.                             $t
  377.                     !endif
  378.                   !else
  379.                     !if $classfreeworkcnt<$max_freeworks
  380.                       $name_alreadyinclass
  381.                     !else
  382.                       $name_limittouch
  383.                     !endif
  384.                   !endif
  385.                 </td>
  386.               </tr>
  387.             !next i
  388.           $table_end
  389.           <div class="wimscenter">
  390.             <input type="submit" value="$name_importselected">
  391.           </div>
  392.         !formend
  393.         !read tablesort.phtml
  394.     </div>
  395.   !endif
  396.  
  397. </div>
  398.  
  399.  
  400.