Rev 3066 | 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 | |||
2791 | guerimand | 4 | !set js=!record 0 of js/chooselist.js |
1864 | bpr | 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 |
||
2795 | bpr | 16 | !read msg.phtml |
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> |
||
3909 | bpr | 25 | <td><input name="subject" size="45" value="$subject"> |
1864 | bpr | 26 | </tr> |
27 | <tr> |
||
28 | <td>$name_message</td> |
||
3909 | bpr | 29 | <td><textarea name="msg" cols="40" rows="5">$msg</textarea> |
1864 | bpr | 30 | </tr></table> |
3909 | bpr | 31 | <input type="submit" name="reg" value="$wims_name_send"></center> |
1864 | bpr | 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 |
||
3066 | bpr | 54 | |
55 | !set wims_ref_class=wims_button_help |
||
1864 | bpr | 56 | !href cmd=help&special_parm=general $wims_name_help |
3066 | bpr | 57 | |
1864 | bpr | 58 | <p> |
59 | !formradio job list all prompt $name_allparticipants |
||
3066 | bpr | 60 | </p> |
1864 | bpr | 61 | !formradio job list select prompt <b>$name_select</b>: |
62 | $name_expert1 |
||
63 | |||
2795 | bpr | 64 | !set wims_chooselist_select=$option |
65 | !set wims_chooselist_checked=$option_select |
||
66 | |||
67 | <center> |
||
68 | !read js/chooselist.phtml select_user1,select_user2,select_user |
||
1864 | bpr | 69 | </center> |
70 | |||
3066 | bpr | 71 | <p></p> |
1864 | bpr | 72 | !formradio job list s prompt <b>$name_loginlist</b>: |
73 | $name_expert2 |
||
74 | <center> |
||
3909 | bpr | 75 | <textarea name="loginlist" cols="20" rows="5">$loginlist</textarea> |
1864 | bpr | 76 | </center> |
77 | !default job=$job |
||
78 | <p> |
||
79 | !formradio job list filter prompt <b>$name_filter:</b> |
||
80 | $name_expert3 |
||
3066 | bpr | 81 | |
82 | !set wims_ref_class=wims_button_help |
||
1864 | bpr | 83 | !href cmd=help&special_parm=filter $wims_name_help |
3066 | bpr | 84 | |
3909 | bpr | 85 | <center><textarea name="variable" cols="20" rows="3">$variable</textarea> |
1864 | bpr | 86 | </center> |
87 | |||
88 | </fieldset> |
||
89 | </form> |
||
90 | !goto end |
||
91 | !endif |
||
92 | !if $confirm=$empty and $reg!= |
||
93 | !if $email_exists=0 |
||
2795 | bpr | 94 | !! $list_user$list_noemail |
1864 | bpr | 95 | !if $list_user$list_noemail notsametext |
96 | $name_noemail |
||
97 | ($wims_name_Login : $(list_noemail[3])) |
||
98 | !else |
||
99 | $name_nouser |
||
100 | !endif |
||
101 | <p> |
||
2795 | bpr | 102 | !set wims_menu_items=!append line back2,1,cmd=resume\ |
103 | to $wims_menu_items |
||
1864 | bpr | 104 | !goto end |
105 | !endif |
||
106 | $name_warning |
||
107 | <center> |
||
3909 | bpr | 108 | <input name="subject" size="45" value="$subject" readonly> |
1864 | bpr | 109 | <br> |
3909 | bpr | 110 | <textarea cols="40" rows="5" readonly> |
1864 | bpr | 111 | $msg |
112 | </textarea> |
||
113 | </center> |
||
114 | <pre> |
||
115 | $list_user |
||
116 | </pre> |
||
2795 | bpr | 117 | <p> |
1864 | bpr | 118 | !if $list_noemail notsametext |
119 | $name_noemail2 |
||
120 | <pre> |
||
121 | $list_noemail |
||
122 | </pre> |
||
123 | !endif |
||
124 | !form reply |
||
125 | <center> |
||
3066 | bpr | 126 | !set wims_ref_class=wims_button |
1864 | bpr | 127 | !href cmd=reply&confirm=yes $wims_name_send |
128 | |
||
3066 | bpr | 129 | !set wims_ref_class=wims_button |
1864 | bpr | 130 | !href cmd=resume $wims_name_giveup |
3066 | bpr | 131 | </center> |
1864 | bpr | 132 | </form> |
133 | |||
134 | !endif |
||
135 | !set wims_menu_items=!append line back2,1,cmd=resume\ |
||
136 | to $wims_menu_items |
||
137 | !endif |
||
138 | |||
139 | !if $confirm=yes |
||
140 | !set cmp=0 |
||
141 | !set cmp_tr=0 |
||
142 | !set cnt=!linecnt $list_user |
||
143 | !for l_ =1 to $cnt |
||
144 | !set u=!line $l_ of $list_user |
||
145 | !if $(u[4])!= |
||
146 | !mailto $(u[4]) -- -f $supervisormail\ |
||
147 | [WIMS $wims_classname] $subject\ |
||
148 | $msg\ |
||
149 | \ |
||
150 | |||
151 | !endif |
||
152 | !reset u |
||
153 | !next |
||
154 | !endif |
||
155 | !if $cmd=reply and $confirm=yes |
||
156 | <p> |
||
157 | $name_participant1 |
||
158 | <pre>$(list_user[;1..2])</pre> |
||
159 | !if $list_noemail notsametext |
||
160 | $name_participant2 |
||
161 | <pre> |
||
162 | $(list_noemail[;1..2]) |
||
163 | </pre> |
||
164 | !endif |
||
1975 | bpr | 165 | |
166 | !set wims_module_log=class $class: sendmail |
||
167 | !set date=!translate : to . in $wims_now |
||
168 | !appendfile wimshome/log/classes/$wims_class/.log $date $httpd_REMOTE_ADDR $supervisormail send mail to $(list_user[;1]) |
||
169 | |||
1864 | bpr | 170 | !reset list_user list_noemail |
171 | |||
172 | !endif |
||
173 | :end |
||
174 | !reset confirm reg abandon error |
||
175 | |||
176 | !tail |