Subversion Repositories wimsdev

Rev

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

  1.  
  2. !read adm/css.phtml
  3. !read adm/class/classname.phtml $wims_classname\
  4. $wims_institutionname
  5.  
  6. !read js/external/tinymce.phtml .iEdit
  7. !header1
  8.  
  9. !read adm/title.phtml 1\
  10. $classname\
  11. $name_title
  12.  
  13. <div class="wims_content">
  14.   !if $error!=$empty
  15.     <div class="wims_msg alert">
  16.       !read lang/msg.phtml.$moduclass_lang
  17.     </div>
  18.     <p>
  19.       !href module=home $wims_name_class_home
  20. .</p>
  21.     !goto end
  22.   !endif
  23.  
  24.   !if $job!=$empty
  25.     !read $job.phtml
  26.     !goto end
  27.   !endif
  28.  
  29.   <p>
  30.     $name_Intro
  31.     !href style=student $name_home
  32. .</p>
  33.  
  34.   <fieldset class="property_fields blockcenter">
  35.     <legend>$name_commun</legend>
  36.     <div class="field box">
  37.       !set motd=!record 0 of wimshome/log/classes/$wims_class/.motd
  38.       !if $motd=$empty
  39.         <div style="padding:.5em;background-color:#DFDFDF;color:#444;">
  40.           <em>$name_nomessage.<br>
  41.           $name_clicktocreate.</em>
  42.         </div>
  43.       !else
  44.         <div style="padding:.5em;background-color:white;">
  45.           $motd
  46.         </div>
  47.       !endif
  48.  
  49.       <div class="wimscenter">
  50.         !set wims_ref_class=wims_button
  51.         !href cmd=reply&job=modif&user=.CLASS. $wims_name_change
  52.         &nbsp;
  53.         !set wims_ref_class=wims_button wims_warning
  54.         !href cmd=reply&job=delete&user=.CLASS. $wims_name_erase
  55.       </div>
  56.     </div>
  57.   </fieldset>
  58.  
  59.   !form reply
  60.   <fieldset class="property_fields blockcenter">
  61.     <legend>$name_grpaction</legend>
  62.     <p>$name_expert0</p>
  63.  
  64.     <div class="field box">
  65.       <ul>
  66.         !set wims_html_mode= li
  67.         !set wims_ref_class=wims_formradio
  68.         !set wims_ref_id=motd_type
  69.         !if $tv_listtechvar!=$empty
  70.           !set listuser=__ALL__,__CHECK__,__FILTER__
  71.           !set listuserchoices=$name_all,$name_checked,$name_filter
  72.         !else
  73.           !set listuser=__ALL__,__CHECK__
  74.           !set listuserchoices=$name_all,$name_checked
  75.         !endif
  76.         !formradio listuser list $listuser prompt $listuserchoices
  77.       </ul>
  78.       !if $tv_listtechvar!=$empty
  79.         !read adm/vfilter/varfilter htmldiv
  80.  
  81.         !!# Avec JQuery, Le champ "variable technique" n'apparait que lorsqu'il est necessaire.
  82.        !if $jquery_defined=yes
  83.           <script>
  84.             /*<![CDATA[*/ jQuery(function(jq) {
  85.               jq( "#tech_var" ).hide();
  86.               jq( "#motd_type3" ).click(function() {
  87.                 jq( "#tech_var" ).slideDown();
  88.               });
  89.               jq( "#motd_type1, #motd_type2" ).click(function() {
  90.                 jq( "#tech_var" ).slideUp();
  91.               });
  92.             }); /*]]>*/
  93.           </script>
  94.         !endif
  95.       !endif
  96.     </div>
  97.  
  98.     <div class="wimscenter">
  99.       <input type="hidden" name="job" value="groupe">
  100.       <input type="submit" name="action" value="$name_reactive">
  101.       <input type="submit" name="action" value="$name_change">
  102.       <input type="submit" name="action" value="$name_erase" class="wims_warning">
  103.       !if $wims_numpartconnected>0
  104.         <input type="submit" name="action" value="$name_walertmsg">
  105.       !endif
  106.     </div>
  107.   </fieldset>
  108.  
  109.   !set table_id=TABLE_userlist
  110.   !set table_class=sortable
  111.   $table_header
  112.     <caption>$name_listusermotd</caption>
  113.     <thead>
  114.       $table_hdtr
  115.         <th scope="col" data-sort-method="none">Select</th>
  116.         <th scope="col" >$name_participant</th>
  117.         <th scope="col" style="width:50%">$name_actualmotd</th>
  118.         <th scope="col" >$wims_name_Status</th>
  119.         <th scope="col" >$name_alertmsg</th>
  120.         <th scope="col" data-sort-method="none">$name_aloneaction</th>
  121.       </tr>
  122.     </thead>
  123.     <tbody>
  124.     !set listuser=$listuser
  125.     !for k=1 to $nbuser
  126.       $table_tr
  127.         !let u=$(listiduser[$k])
  128.         <td><input type="checkbox" name="listuser" id="listuser$k" value="$u"></td>
  129.  
  130.         !reset css_connected
  131.         !if $u isitemof $wims_connectedlogin
  132.           !set css_connected=class="wims_connected"
  133.           !set wims_ref_title=connected
  134.         !endif
  135.         <td>
  136.           <label for="listuser$k"><span $css_connected>$(listnameuser[$k])</span></label>
  137.         </td><td>
  138.           !record 0 of wimshome/log/classes/$wims_class/motd/$u
  139.         </td><td>
  140.           !let test=!record 0 of wimshome/log/classes/$wims_class/motd/.$u
  141.           !if $test=$empty
  142.             $(name_status[1])
  143.           !else
  144.             $(name_status[2])
  145.             !href cmd=reply&job=reactivate&listuser=$u $name_reactive
  146.           !endif
  147.         </td><td>
  148.           !let p=!positionof item $u in $wims_connectedlogin
  149.           !if $p!=$empty
  150.             !let n=!itemcnt $(wims_whoconnect[$p;])
  151.             !if $n>4
  152.               $name_usermultisession
  153.             !else
  154.               !defof wims_alertmsg in wimshome/sessions/$(wims_whoconnect[$p;4])/var.stat
  155.             !endif
  156.           !endif
  157.         </td><td>
  158.           !set wims_ref_class=wims_button
  159.           !href cmd=reply&job=modif&listuser=$u $wims_name_change
  160.           &nbsp;
  161.           !set wims_ref_class=wims_button wims_warning
  162.           !href cmd=reply&job=delete&listuser=$u $wims_name_erase
  163.           !if $n<5 and $p!=$empty
  164.             &nbsp;
  165.             !set wims_ref_class=wims_button
  166.             !href cmd=reply&job=write&listuser=$u $name_walertmsg
  167.           !endif
  168.         </td>
  169.       </tr>
  170.     !next k
  171.     </tbody>
  172.   $table_end
  173.   !read tablesort.phtml
  174.   !formend
  175. :end
  176.  
  177. !if $job!=$empty and $job!=delete
  178.   !set wims_menu_items=!append line back2,1,cmd=reply\
  179.  to $wims_menu_items
  180. !endif
  181. </div>
  182. !tail
  183. !reset job
  184.