Rev 13306 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 13306 | Rev 13612 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | 1 | ||
2 | !read adm/css.phtml |
2 | !read adm/css.phtml |
3 | !read adm/class/classname.phtml $wims_classname\ |
3 | !read adm/class/classname.phtml $wims_classname\ |
4 | $wims_institutionname |
4 | $wims_institutionname |
5 | 5 | ||
6 | !read js/ |
6 | !read js/external/tinymce.phtml .iEdit |
7 | !header1 |
7 | !header1 |
8 | 8 | ||
9 | !read adm/title.phtml 1\ |
9 | !read adm/title.phtml 1\ |
10 | $classname\ |
10 | $classname\ |
11 | $name_title |
11 | $name_title |
12 | 12 | ||
13 | <div class="wims_content"> |
13 | <div class="wims_content"> |
14 | !if $error!=$empty |
14 | !if $error!=$empty |
15 | <div class="wims_msg alert"> |
15 | <div class="wims_msg alert"> |
16 | !read lang/msg.phtml.$moduclass_lang |
16 | !read lang/msg.phtml.$moduclass_lang |
17 | </div> |
17 | </div> |
18 | <p> |
18 | <p> |
19 | !href module=home $wims_name_class_home |
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> |
20 | .</p> |
- | 21 | !goto end |
|
- | 22 | !endif |
|
33 | 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"> |
34 | <fieldset class="property_fields blockcenter"> |
35 | <legend>$name_commun</legend> |
35 | <legend>$name_commun</legend> |
36 | <div class="field box"> |
36 | <div class="field box"> |
37 | !set motd=!record 0 of wimshome/log/classes/$wims_class/.motd |
37 | !set motd=!record 0 of wimshome/log/classes/$wims_class/.motd |
38 | !if $motd=$empty |
38 | !if $motd=$empty |
39 | <div style="padding:.5em;background-color:#DFDFDF;color:#444;"> |
39 | <div style="padding:.5em;background-color:#DFDFDF;color:#444;"> |
40 | <em>$name_nomessage.<br/> |
40 | <em>$name_nomessage.<br/> |
41 | $name_clicktocreate.</em> |
41 | $name_clicktocreate.</em> |
42 | </div> |
42 | </div> |
43 | !else |
43 | !else |
44 | <div style="padding:.5em;background-color:white;"> |
44 | <div style="padding:.5em;background-color:white;"> |
45 | $motd |
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 | |
|
- | 53 | !set wims_ref_class=wims_button wims_warning |
|
- | 54 | !href cmd=reply&job=delete&user=.CLASS. $wims_name_erase |
|
46 | </div> |
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 |
|
47 | !endif |
95 | !endif |
- | 96 | </div> |
|
48 | 97 | ||
49 | <div class="wimscenter"> |
98 | <div class="wimscenter"> |
50 |
|
99 | <input type="hidden" name="job" value="groupe"> |
51 |
|
100 | <input type="submit" name="action" value="$name_reactive"/> |
52 |
|
101 | <input type="submit" name="action" value="$name_change"/> |
- | 102 | <input type="submit" name="action" value="$name_erase" class="wims_warning"/> |
|
53 | ! |
103 | !if $wims_numpartconnected>0 |
54 |
|
104 | <input type="submit" name="action" value="$name_walertmsg"/> |
- | 105 | !endif |
|
55 | </div> |
106 | </div> |
56 | </div> |
- | |
57 | </fieldset> |
107 | </fieldset> |
58 | - | ||
59 | !form reply |
- | |
60 | <fieldset class="property_fields blockcenter"> |
- | |
61 | <legend>$name_grpaction</legend> |
- | |
62 | <p>$name_expert0</p> |
- | |
63 | <div class="field box"> |
- | |
64 | 108 | ||
65 | <ul> |
- | |
66 |
|
109 | !set table_id=TABLE_userlist |
67 |
|
110 | !set table_class=sortable |
68 |
|
111 | $table_header |
69 |
|
112 | <caption>$name_listusermotd</caption> |
70 | !set listuser=__ALL__,__CHECK__,__FILTER__ |
- | |
71 | !set listuserchoices=$name_all,$name_checked,$name_filter |
- | |
72 |
|
113 | <thead> |
73 | !set listuser=__ALL__,__CHECK__ |
- | |
74 | !set listuserchoices=$name_all,$name_checked |
- | |
75 |
|
114 | $table_hdtr |
76 |
|
115 | <th scope="col" data-sort-method="none">Select</th> |
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 |
|
116 | <th scope="col" >$name_participant</th> |
85 |
|
117 | <th scope="col" style="width:50%">$name_actualmotd</th> |
86 |
|
118 | <th scope="col" >$wims_name_Status</th> |
87 |
|
119 | <th scope="col" >$name_alertmsg</th> |
88 | }); |
- | |
89 |
|
120 | <th scope="col" data-sort-method="none">$name_aloneaction</th> |
90 | jq( "#tech_var" ).slideUp(); |
- | |
91 |
|
121 | </tr> |
92 | }); /*]]>*/ |
- | |
93 |
|
122 | </thead> |
94 |
|
123 | <tbody> |
95 | ! |
124 | !set listuser=$listuser |
96 | </div> |
- | |
97 | - | ||
98 |
|
125 | !for k=1 to $nbuser |
99 |
|
126 | $table_tr |
100 | <input type="submit" name="action" value="$name_reactive" $wims_on_click/> |
- | |
101 | <input type="submit" name="action" value="$name_change" $wims_on_click/> |
- | |
102 | <input type="submit" name="action" value="$name_erase" class="wims_warning" $wims_on_click/> |
- | |
103 |
|
127 | !let u=$(listiduser[$k]) |
104 | <input |
128 | <td><input type="checkbox" name="listuser" id="listuser$k" value="$u"/></td> |
105 | !endif |
- | |
106 | </div> |
- | |
107 | </fieldset> |
- | |
108 | 129 | ||
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 | !reset css_connected |
130 | !reset css_connected |
130 | !if $u isitemof $wims_connectedlogin |
131 | !if $u isitemof $wims_connectedlogin |
131 | !set css_connected=class="wims_connected" |
132 | !set css_connected=class="wims_connected" |
132 | !set wims_ref_title=connected |
133 | !set wims_ref_title=connected |
133 | !endif |
134 | !endif |
134 | <td> |
135 | <td> |
135 | <label for="listuser$k"><span $css_connected>$(listnameuser[$k])</span></label> |
136 | <label for="listuser$k"><span $css_connected>$(listnameuser[$k])</span></label> |
136 | </td><td> |
137 | </td><td> |
137 | !record 0 of wimshome/log/classes/$wims_class/motd/$u |
138 | !record 0 of wimshome/log/classes/$wims_class/motd/$u |
138 | </td><td> |
139 | </td><td> |
139 | !let test=!record 0 of wimshome/log/classes/$wims_class/motd/.$u |
140 | !let test=!record 0 of wimshome/log/classes/$wims_class/motd/.$u |
140 | !if $test=$empty |
141 | !if $test=$empty |
141 | $(name_status[1]) |
142 | $(name_status[1]) |
142 | !else |
143 | !else |
143 | $(name_status[2]) |
144 | $(name_status[2]) |
144 | !href cmd=reply&job=reactivate&listuser=$u $name_reactive |
145 | !href cmd=reply&job=reactivate&listuser=$u $name_reactive |
145 | !endif |
146 | !endif |
146 | </td><td> |
147 | </td><td> |
147 | !let p=!positionof item $u in $wims_connectedlogin |
148 | !let p=!positionof item $u in $wims_connectedlogin |
148 | !if $p!=$empty |
149 | !if $p!=$empty |
149 | !let n=!itemcnt $(wims_whoconnect[$p;]) |
150 | !let n=!itemcnt $(wims_whoconnect[$p;]) |
150 | !if $n>4 |
151 | !if $n>4 |
151 | $name_usermultisession |
152 | $name_usermultisession |
152 | !else |
153 | !else |
153 | !defof wims_alertmsg in wimshome/sessions/$(wims_whoconnect[$p;4])/var.stat |
154 | !defof wims_alertmsg in wimshome/sessions/$(wims_whoconnect[$p;4])/var.stat |
154 | !endif |
155 | !endif |
155 | !endif |
156 | !endif |
156 | </td> |
157 | </td><td> |
157 | <td> |
- | |
158 | !set wims_ref_class=wims_button |
158 | !set wims_ref_class=wims_button |
159 | !href cmd=reply&job=modif&listuser=$u $wims_name_change |
159 | !href cmd=reply&job=modif&listuser=$u $wims_name_change |
160 | |
160 | |
161 | !set wims_ref_class=wims_button wims_warning |
161 | !set wims_ref_class=wims_button wims_warning |
162 | !href cmd=reply&job=delete&listuser=$u $wims_name_erase |
162 | !href cmd=reply&job=delete&listuser=$u $wims_name_erase |
163 | !if $n<5 and $p!=$empty |
163 | !if $n<5 and $p!=$empty |
164 | |
164 | |
165 | !set wims_ref_class=wims_button |
165 | !set wims_ref_class=wims_button |
166 | !href cmd=reply&job=write&listuser=$u $name_walertmsg |
166 | !href cmd=reply&job=write&listuser=$u $name_walertmsg |
167 | !endif |
167 | !endif |
168 | </td> |
168 | </td> |
169 | </tr> |
169 | </tr> |
170 | !next k |
170 | !next k |
171 | </tbody> |
171 | </tbody> |
172 | $table_end |
172 | $table_end |
173 | !read tablesort.phtml |
173 | !read tablesort.phtml |
174 | !formend |
174 | !formend |
175 | :end |
175 | :end |
176 | 176 | ||
177 | !if $job!=$empty and $job!=delete |
177 | !if $job!=$empty and $job!=delete |
178 | !set wims_menu_items=!append line back2,1,cmd=reply\ |
178 | !set wims_menu_items=!append line back2,1,cmd=reply\ |
179 | to $wims_menu_items |
179 | to $wims_menu_items |