Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
2193 bpr 1
 
1170 bpr 2
!read adm/css.phtml
4039 bpr 3
!read adm/class/classname.phtml $wims_classname\
4022 bpr 4
$wims_institutionname
5
 
13612 obado 6
!read js/external/tinymce.phtml .iEdit
1054 bpr 7
!header1
8
 
1348 bpr 9
!read adm/title.phtml 1\
4022 bpr 10
$classname\
1730 bpr 11
$name_title
1348 bpr 12
 
9050 obado 13
<div class="wims_content">
13612 obado 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
9050 obado 20
.</p>
13612 obado 21
    !goto end
22
  !endif
23 reyssat 23
 
13612 obado 24
  !if $job!=$empty
25
    !read $job.phtml
26
    !goto end
27
  !endif
5428 guerimand 28
 
13612 obado 29
  <p>
30
    $name_Intro
31
    !href style=student $name_home
9050 obado 32
.</p>
7026 bpr 33
 
13612 obado 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;">
17180 bpr 40
          <em>$name_nomessage.<br>
13612 obado 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
9050 obado 55
      </div>
56
    </div>
13612 obado 57
  </fieldset>
5874 bpr 58
 
13612 obado 59
  !form reply
60
  <fieldset class="property_fields blockcenter">
61
    <legend>$name_grpaction</legend>
62
    <p>$name_expert0</p>
8982 bpr 63
 
13612 obado 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>
10462 guerimand 78
      !if $tv_listtechvar!=$empty
13612 obado 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
10462 guerimand 95
      !endif
13612 obado 96
    </div>
11638 bpr 97
 
13612 obado 98
    <div class="wimscenter">
99
      <input type="hidden" name="job" value="groupe">
17180 bpr 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">
13612 obado 103
      !if $wims_numpartconnected>0
17180 bpr 104
        <input type="submit" name="action" value="$name_walertmsg">
13612 obado 105
      !endif
106
    </div>
107
  </fieldset>
9050 obado 108
 
13612 obado 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])
17180 bpr 128
        <td><input type="checkbox" name="listuser" id="listuser$k" value="$u"></td>
9050 obado 129
 
13612 obado 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
863 guerimand 175
:end
23 reyssat 176
 
863 guerimand 177
!if $job!=$empty and $job!=delete
1730 bpr 178
  !set wims_menu_items=!append line back2,1,cmd=reply\
179
 to $wims_menu_items
863 guerimand 180
!endif
9050 obado 181
</div>
23 reyssat 182
!tail
863 guerimand 183
!reset job