Rev 1975 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1864 | bpr | 1 | !read adm/css.phtml |
2195 | bpr | 2 | !read lang/names.phtml.$moduclass_lang |
3 | |||
1864 | bpr | 4 | !set js=!record 0 of js |
5 | !set wims_html_header=!append line $js to $wims_html_header |
||
6 | !header1 |
||
7 | !read adm/title.phtml 1\ |
||
8 | $wims_classname - $wims_institutionname\ |
||
9 | $module_title\ |
||
10 | ($supervisormail) |
||
11 | |||
12 | !set wims_menu_items=!append line part_list,1,module=adm/class/userlist\ |
||
13 | to $wims_menu_items |
||
14 | |||
15 | !if $error!=$empty |
||
2195 | bpr | 16 | !read lang/msg.phtml.$moduclass_lang |
1864 | bpr | 17 | !set job= |
18 | !endif |
||
19 | !if $cmd!=reply or $error!=$empty |
||
20 | $name_intro |
||
21 | !form reply |
||
22 | <center><table> |
||
23 | <tr> |
||
24 | <td>$name_subject</td> |
||
25 | <td><input name=subject size=45 value="$subject"> |
||
26 | </tr> |
||
27 | <tr> |
||
28 | <td>$name_message</td> |
||
29 | <td><textarea name=msg cols=40 rows=5>$msg</textarea> |
||
30 | </tr></table> |
||
31 | <input type=submit name=reg value="$wims_name_send"></center> |
||
32 | |||
33 | <p> |
||
34 | <fieldset><legend>$name_menu |
||
35 | </legend> |
||
36 | !set file=wimshome/log/classes/$wims_class/.userlist |
||
37 | !set cnt=!recordcnt wimshome/log/classes/$wims_class/.userlist |
||
38 | !for lu =1 to $cnt |
||
39 | !set us_=!record $lu of $file |
||
40 | !if $(us_[3]) notitemof $select_user |
||
41 | !set option=!append line <option value="$(us_[3])">$(us_[1]) $(us_[2]) ($(us_[3]))</option> to $option |
||
42 | !else |
||
43 | !set option_select=!append line <option value="$(us_[3])">$(us_[1]) $(us_[2]) ($(us_[3]))</option> to $option_select |
||
44 | !endif |
||
45 | !next |
||
46 | !if $option=$empty |
||
47 | !set option=<option value=""></option> |
||
48 | !endif |
||
49 | !if $option_select=$empty |
||
50 | !set option_select=<option value=""></option> |
||
51 | !endif |
||
52 | |||
53 | $name_expert0 |
||
54 | [ |
||
55 | !href cmd=help&special_parm=general $wims_name_help |
||
56 | ] |
||
57 | <p> |
||
58 | !formradio job list all prompt $name_allparticipants |
||
59 | <p> |
||
60 | !formradio job list select prompt <b>$name_select</b>: |
||
61 | $name_expert1 |
||
62 | !set select_option=style="width: 225px;" multiple="multiple" size="10" |
||
63 | |||
64 | <center><table border="0" cellpadding="10" cellspacing="0"><tr> |
||
65 | <td valign="top"> |
||
66 | <select $select_option name="select_user1" ondblclick="moveSelections(this.form.elements['select_user1'], this.form.elements['select_user2'], this.form.elements['select_user'], 'add')"> |
||
67 | $option |
||
68 | </select></td> |
||
69 | <td align="center"> |
||
70 | <input name="add" value=" >> " type="button" |
||
71 | onclick="moveSelections(this.form.elements['select_user1'], this.form.elements['select_user2'], this.form.elements['select_user'], 'add'); return false;" |
||
72 | > |
||
73 | <br> |
||
74 | <input name="remove" value=" << " type="button" onclick="moveSelections(this.form.elements['select_user1'], this.form.elements['select_user2'], this.form.elements['select_user'], 'remove'); return false;" |
||
75 | > |
||
76 | </td> |
||
77 | <td valign="top"> |
||
78 | <select $select_option name="select_user2" ondblclick="moveSelections(this.form.elements['select_user1'], this.form.elements['select_user2'], this.form.elements['select_user'], 'remove')"> |
||
79 | $option_select |
||
80 | </select> |
||
81 | <select style="overflow: hidden; visibility: hidden; width: 1px; height: 0;" name="select_user" multiple="multiple" size="10"> |
||
82 | $option |
||
83 | </select></td> |
||
84 | </tr> |
||
85 | </table> |
||
86 | </center> |
||
87 | |||
88 | <p> |
||
89 | !formradio job list s prompt <b>$name_loginlist</b>: |
||
90 | $name_expert2 |
||
91 | <center> |
||
92 | <textarea name=loginlist cols=20 rows=5>$loginlist</textarea> |
||
93 | </center> |
||
94 | !default job=$job |
||
95 | <p> |
||
96 | !formradio job list filter prompt <b>$name_filter:</b> |
||
97 | $name_expert3 |
||
98 | [ |
||
99 | !href cmd=help&special_parm=filter $wims_name_help |
||
100 | ] |
||
101 | <center><textarea name=variable cols=20 rows=3>$variable</textarea> |
||
102 | </center> |
||
103 | |||
104 | </fieldset> |
||
105 | </form> |
||
106 | !goto end |
||
107 | !endif |
||
108 | !if $confirm=$empty and $reg!= |
||
109 | !if $email_exists=0 |
||
110 | $list_user$list_noemail |
||
111 | !if $list_user$list_noemail notsametext |
||
112 | $name_noemail |
||
113 | ($wims_name_Login : $(list_noemail[3])) |
||
114 | !else |
||
115 | $name_nouser |
||
116 | !endif |
||
117 | <p> |
||
118 | !href cmd=resume $wims_name_back2 |
||
119 | !goto end |
||
120 | !endif |
||
121 | $name_warning |
||
122 | <center> |
||
123 | <input name=subject size=45 value="$subject" readonly> |
||
124 | <br> |
||
125 | <textarea cols=40 rows=5 readonly> |
||
126 | $msg |
||
127 | </textarea> |
||
128 | </center> |
||
129 | <pre> |
||
130 | $list_user |
||
131 | </pre> |
||
132 | !if $list_noemail notsametext |
||
133 | $name_noemail2 |
||
134 | <pre> |
||
135 | $list_noemail |
||
136 | </pre> |
||
137 | !endif |
||
138 | !form reply |
||
139 | <center> |
||
140 | !href cmd=reply&confirm=yes $wims_name_send |
||
141 | |
||
142 | !href cmd=resume $wims_name_giveup |
||
143 | </form> |
||
144 | |||
145 | !endif |
||
146 | !set wims_menu_items=!append line back2,1,cmd=resume\ |
||
147 | to $wims_menu_items |
||
148 | !endif |
||
149 | |||
150 | !if $confirm=yes |
||
151 | !set cmp=0 |
||
152 | !set cmp_tr=0 |
||
153 | !set cnt=!linecnt $list_user |
||
154 | !for l_ =1 to $cnt |
||
155 | !set u=!line $l_ of $list_user |
||
156 | !if $(u[4])!= |
||
157 | !mailto $(u[4]) -- -f $supervisormail\ |
||
158 | [WIMS $wims_classname] $subject\ |
||
159 | $msg\ |
||
160 | \ |
||
161 | |||
162 | !endif |
||
163 | !reset u |
||
164 | !next |
||
165 | !endif |
||
166 | !if $cmd=reply and $confirm=yes |
||
167 | <p> |
||
168 | $name_participant1 |
||
169 | <pre>$(list_user[;1..2])</pre> |
||
170 | !if $list_noemail notsametext |
||
171 | $name_participant2 |
||
172 | <pre> |
||
173 | $(list_noemail[;1..2]) |
||
174 | </pre> |
||
175 | !endif |
||
1975 | bpr | 176 | |
177 | !set wims_module_log=class $class: sendmail |
||
178 | !set date=!translate : to . in $wims_now |
||
179 | !appendfile wimshome/log/classes/$wims_class/.log $date $httpd_REMOTE_ADDR $supervisormail send mail to $(list_user[;1]) |
||
180 | |||
1864 | bpr | 181 | !reset list_user list_noemail |
182 | |||
183 | !endif |
||
184 | :end |
||
185 | !reset confirm reg abandon error |
||
186 | |||
187 | !tail |