Rev 7444 | Rev 7535 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6997 | bpr | 1 | !read adm/levelname.phtml |
1170 | bpr | 2 | !read adm/css.phtml |
2570 | bpr | 3 | !read tabletheme |
1051 | bpr | 4 | !header1 |
5 | |||
6118 | obado | 6 | <!-- Begin regclass/main.phtml --> |
7 | |||
5700 | obado | 8 | <!--!read adm/title.phtml 3\--> |
6118 | obado | 9 | <div class="title_box"> |
5700 | obado | 10 | <h1 class="wims_title"> |
11 | <!--WIMS $httpd_HTTP_HOST\--> |
||
12 | $title |
||
13 | </h1> |
||
14 | </div> |
||
23 | reyssat | 15 | |
16 | !if $toomany=yes |
||
2346 | bpr | 17 | !read lang/toomany.phtml.$modu_lang |
23 | reyssat | 18 | !goto end |
19 | !endif |
||
20 | |||
21 | !if $error!=$empty |
||
5894 | bpr | 22 | <div class="wims_alertmsg"> |
2346 | bpr | 23 | !read lang/msg.phtml.$modu_lang |
5874 | bpr | 24 | </div> |
23 | reyssat | 25 | !if $restart!=no |
26 | <p> |
||
6118 | obado | 27 | !href module=$module&cmd=reply&step=0 $name_again |
5837 | bpr | 28 | </p> |
23 | reyssat | 29 | !endif |
30 | !goto end |
||
31 | !endif |
||
32 | |||
33 | !if $step=$empty or $step=pre |
||
5700 | obado | 34 | |
5413 | bpr | 35 | !!read local.phtml |
7077 | obado | 36 | <div class="wims_content"> |
7441 | bpr | 37 | $name_choose |
38 | |||
6118 | obado | 39 | <p> |
40 | !href cmd=reply&step=0&cltype=0 $wims_name_create_class |
||
5826 | bpr | 41 | </p> |
7441 | bpr | 42 | |
6118 | obado | 43 | !set wims_menu_items=!append line create_class,1,cmd=reply&step=0&cltype=0\ |
44 | to $wims_menu_items |
||
7441 | bpr | 45 | |
6118 | obado | 46 | <p> |
47 | !if 2 isitemof $alltypes |
||
48 | !href cmd=reply&step=0&cltype=2 $wims_name_create_superclass |
||
49 | !set wims_menu_items=!append line create_superclass,1,cmd=reply&step=0&cltype=2\ |
||
50 | to $wims_menu_items |
||
51 | !else |
||
52 | <span class="wims_emph"><strike>$wims_name_create_superclass</strike></span> ($noright). |
||
53 | !endif |
||
54 | </p> |
||
7441 | bpr | 55 | |
6118 | obado | 56 | <p> |
57 | !if 4 isitemof $alltypes |
||
58 | !href cmd=reply&step=0&cltype=4 $wims_name_create_portal |
||
59 | ($name_expert) |
||
60 | !set wims_menu_items=!append line create_portal,1,cmd=reply&step=0&cltype=4\ |
||
61 | to $wims_menu_items |
||
62 | !else |
||
63 | <span class="wims_emph"><strike>$wims_name_create_portal</strike></span> ($noright). |
||
64 | !endif |
||
65 | </p> |
||
7441 | bpr | 66 | |
6118 | obado | 67 | <span class="wims_warning">$wims_name_help</span>: |
68 | !read lang/help.phtml.$modu_lang 1 |
||
5700 | obado | 69 | </div> |
23 | reyssat | 70 | !goto end |
7441 | bpr | 71 | |
23 | reyssat | 72 | !endif |
73 | |||
74 | !if $step=0 |
||
2346 | bpr | 75 | !read lang/help.phtml.$modu_lang 2 |
5074 | bpr | 76 | |
23 | reyssat | 77 | !form reply |
6235 | bpr | 78 | <input type="hidden" name="step" value="1" /> |
7441 | bpr | 79 | |
7474 | bpr | 80 | <fieldset class="property_fields blockcenter"> |
7441 | bpr | 81 | <legend></legend> |
82 | <div class="field box"> |
||
83 | <label for="institution">$name_Name_portal</label> |
||
5346 | guerimand | 84 | !if $Cltype isin 13 |
85 | !let institution=$wims_institutionname |
||
86 | $institution |
||
87 | !else |
||
6235 | bpr | 88 | <input size="$instlim" name="institution" value="$institution" id="institution" maxlength="$instlim" /> |
7474 | bpr | 89 | <div class="formHelp">$name_atmost $instlim $name_characters</div> |
5346 | guerimand | 90 | !endif |
7441 | bpr | 91 | </div> |
92 | |||
93 | <div class="field box"> |
||
94 | <label for="description">$wims_name_name $name_classesss</label> |
||
7474 | bpr | 95 | <input size="$desclim" name="description" value="$description" id="description" maxlength="$desclim" /> |
7441 | bpr | 96 | <div class="formHelp">$name_atmost $desclim $name_characters</div> |
97 | </div> |
||
98 | !if $Cltype notin 24 |
||
99 | !set nblevel=!itemcnt $wims_listlevel |
||
100 | <div class="field box"> |
||
101 | <label for="level">$wims_name_level $name_classesss</label> |
||
102 | <select name="level" id="level"> |
||
486 | guerimand | 103 | !for k=1 to $nblevel |
6997 | bpr | 104 | !if $(wims_listlevel[$k])=$level |
105 | <option selected="selected" value="$(wims_listlevel[$k])">$(name_wims_listlevel[$k])</option> |
||
23 | reyssat | 106 | !else |
6997 | bpr | 107 | <option value="$(wims_listlevel[$k])">$(name_wims_listlevel[$k])</option> |
2336 | bpr | 108 | !endif |
7441 | bpr | 109 | !next k |
110 | </select> |
||
111 | </div> |
||
23 | reyssat | 112 | !endif |
7441 | bpr | 113 | |
114 | !set suplim2 =$[rint($suplim/3)] |
||
115 | !set emaillim2= $[rint(2*$emaillim/3)] |
||
116 | <div class="field box"> |
||
4803 | guerimand | 117 | !if $Cltype=1 |
118 | !let firstname=$wims_firstname |
||
119 | !let lastname=$wims_lastname |
||
7441 | bpr | 120 | $wims_name_Supervisor: $wims_firstname $wims_lastname |
4803 | guerimand | 121 | !else |
7441 | bpr | 122 | $wims_name_Supervisor |
123 | <label for="firstname">$wims_name_firstname</label> |
||
6235 | bpr | 124 | <input size="$suplim2" name="firstname" value="$firstname" id="firstname" /> |
7441 | bpr | 125 | <label for="lastname">$wims_name_lastname</label> |
126 | <input size="$suplim2" name="lastname" value="$lastname" id="lastname" maxlength="$suplim2" /> |
||
4803 | guerimand | 127 | !endif |
7441 | bpr | 128 | </div> |
129 | |||
130 | <div class="field box"> |
||
131 | <label for="email">$wims_name_email</label> |
||
132 | !if $Cltype=1 and $email!=$empty |
||
133 | !default email=$email |
||
134 | $email |
||
135 | !else |
||
7444 | bpr | 136 | <input size="$emaillim2" name="email" value="$email" id="email" maxlength="$emaillim2" /> |
7441 | bpr | 137 | !endif |
7474 | bpr | 138 | !if $regpolicy=email |
139 | <div class="formHelp">$name_regpolicy</div> |
||
140 | !endif |
||
7441 | bpr | 141 | </div> |
142 | !if $Cltype!=1 |
||
143 | <div class="field box"> |
||
7444 | bpr | 144 | <label for="passsup">$wims_name_Password ($name_sup)</label> |
145 | <input size="16" type="password" name="passsup" id="passsup" maxlength="16" /> |
||
7474 | bpr | 146 | <div class="formHelp">$name_warningpass $name_help1</div> |
7441 | bpr | 147 | </div> |
148 | !endif |
||
149 | |||
150 | <div class="field box"> |
||
151 | <label for="password">$wims_name_Password ($name_classesss)</label> |
||
7474 | bpr | 152 | <input size="16" type="password" name="password" id="password" maxlength="16" /> |
7441 | bpr | 153 | <div class="formHelp">$name_warningpass |
154 | !if $Cltype<2 |
||
155 | $name_help2 |
||
156 | !else |
||
157 | $name_help3 |
||
158 | !endif |
||
159 | </div> |
||
160 | </div> |
||
161 | <div class="field box"> |
||
7444 | bpr | 162 | <label for="exp_day">$wims_name_expiration</label> |
7441 | bpr | 163 | <select name="exp_day" id="exp_day"> |
23 | reyssat | 164 | !for i=1 to 31 |
3909 | bpr | 165 | <option value="$i" |
23 | reyssat | 166 | !ifval $i=$exp_day |
5838 | bpr | 167 | selected="selected" |
23 | reyssat | 168 | !endif |
169 | >$i |
||
5826 | bpr | 170 | </option> |
23 | reyssat | 171 | !next i |
7441 | bpr | 172 | </select> |
173 | <select name="exp_month" id="exp_month"> |
||
23 | reyssat | 174 | !for i=1 to 12 |
3909 | bpr | 175 | <option value="$i" |
23 | reyssat | 176 | !ifval $i=$exp_month |
5838 | bpr | 177 | selected="selected" |
23 | reyssat | 178 | !endif |
179 | > |
||
180 | !item $i of $months |
||
5826 | bpr | 181 | </option> |
23 | reyssat | 182 | !next i |
7441 | bpr | 183 | </select> |
184 | <select name="exp_year" id="exp_year"> |
||
23 | reyssat | 185 | !for i=$thisyear to $thisyear+1 |
3909 | bpr | 186 | <option value="$i" |
23 | reyssat | 187 | !ifval $i=$exp_year |
5838 | bpr | 188 | selected="selected" |
23 | reyssat | 189 | !endif |
190 | >$i |
||
5826 | bpr | 191 | </option> |
23 | reyssat | 192 | !next i |
7441 | bpr | 193 | </select> |
7474 | bpr | 194 | <div class="formHelp">$name_help_date</div> |
7441 | bpr | 195 | </div> |
196 | <div class="field box"> |
||
197 | <label for="limit">$name_help_limit</label> |
||
198 | !let num=!charcnt $wims_class_user_limit |
||
199 | <input size="3" name="limit" value="$limit" id="limit" maxlength="$num" /> |
||
7474 | bpr | 200 | <div class="formHelp">< $wims_class_user_limit</div> |
7441 | bpr | 201 | </div> |
486 | guerimand | 202 | |
7441 | bpr | 203 | <div class="field box"> |
204 | <label for="secure">$name_secure ($name_sup)</label> |
||
205 | !!!default secure=all |
||
206 | <input size="30" name="secure" value="$secure" id="secure" /> |
||
7474 | bpr | 207 | <div class="formHelp">$name_host</div> |
7441 | bpr | 208 | !reset secure |
4108 | bpr | 209 | !!!if $Cltype<3 |
210 | !! $name_optional. |
||
7441 | bpr | 211 | !!!endif |
7444 | bpr | 212 | </div> |
7441 | bpr | 213 | !if $cltype isin 024 |
7444 | bpr | 214 | <div class="field box"> |
215 | <label for="cas_auth">$name_cas ($name_optional)</label> |
||
7474 | bpr | 216 | <input size="30" name="cas_auth" value="$cas_auth" id="cas_auth" /> |
7444 | bpr | 217 | <div class="formHelp">$name_cas_help</div> |
218 | </div> |
||
7441 | bpr | 219 | !endif |
7474 | bpr | 220 | <div class="wimscenter wimsform"> |
221 | <input type="submit" value="$name_continue" /> |
||
222 | </div> |
||
7441 | bpr | 223 | </fieldset> |
5953 | bpr | 224 | |
5926 | bpr | 225 | !formend |
1776 | bpr | 226 | |
23 | reyssat | 227 | !goto end |
228 | !endif |
||
229 | |||
230 | !if $step=1 |
||
2346 | bpr | 231 | !read lang/help.phtml.$modu_lang step1 |
5837 | bpr | 232 | |
23 | reyssat | 233 | !form reply |
6235 | bpr | 234 | <input type="hidden" name="step" value="2" /> |
7474 | bpr | 235 | <fieldset class="property_fields blockcenter"> |
6118 | obado | 236 | !if $Cltype!=1 |
7474 | bpr | 237 | <div class="field box"> |
238 | <label for="passsup"> $wims_name_Password ($name_sup)</label> |
||
239 | <input type="password" name="passsup" id="passsup" maxlength="16" /> |
||
240 | </div> |
||
6118 | obado | 241 | !endif |
242 | !if $pword!=$empty |
||
7474 | bpr | 243 | <div class="field box"> |
244 | <label for="password">$wims_name_Password</label> |
||
245 | <input type="password" name="password" id="password" maxlength="16" /> |
||
246 | <div class="formHelp">$name_classesss</div> |
||
247 | </div> |
||
6118 | obado | 248 | !endif |
7474 | bpr | 249 | <div class="wimscenter wimsform"> |
250 | <input type="submit" value="$name_continue" /> |
||
251 | </div> |
||
252 | </fieldset> |
||
5926 | bpr | 253 | !formend |
23 | reyssat | 254 | !goto end1 |
255 | !endif |
||
256 | |||
257 | !if $step=2 |
||
2346 | bpr | 258 | !read lang/help.phtml.$modu_lang step2 |
23 | reyssat | 259 | !form reply |
6235 | bpr | 260 | <input type="hidden" name="step" value="3" /> |
7474 | bpr | 261 | <fieldset class="property_fields blockcenter"> |
262 | <div class="field box"> |
||
263 | <label for="typecode">$name_code</label> |
||
264 | <input size="12" name="typecode" id="typecode" /> |
||
265 | </div> |
||
266 | <div class="wimscenter wimsform"> |
||
267 | <input type="submit" value="$name_continue" /> |
||
268 | </div> |
||
269 | </fieldset> |
||
7441 | bpr | 270 | |
5926 | bpr | 271 | !formend |
7474 | bpr | 272 | <span class="wims_warning">$wims_name_warning</span>: |
273 | <span class="warning_code">$name_warning_code</span> |
||
23 | reyssat | 274 | !goto end1 |
275 | !endif |
||
276 | |||
277 | !if $step=3 |
||
4802 | guerimand | 278 | !read lang/help.phtml.$modu_lang step3 |
23 | reyssat | 279 | !if $Cltype iswordof 0 1 |
6997 | bpr | 280 | !let tmp=!positionof item $ilevel in $wims_listlevel |
281 | ($wims_name_level <span class="wims_emph">$(name_wims_listlevel[$tmp])</span>). |
||
2288 | bpr | 282 | !endif |
5074 | bpr | 283 | !read adm/class/initclass $code,auth |
7441 | bpr | 284 | !if $(class_authidp[1;])=cas |
7025 | bpr | 285 | !set link_=$host_auth/login?service= |
5074 | bpr | 286 | !else |
287 | !set link_=http://$httpd_HTTP_HOST$httpd_SCRIPT_NAME? |
||
288 | !endif |
||
6235 | bpr | 289 | <br class="spacer" /> |
5179 | guerimand | 290 | !read adm/class/links.phtml $code |
23 | reyssat | 291 | !goto end |
292 | !endif |
||
293 | |||
294 | :end1 |
||
2288 | bpr | 295 | |
23 | reyssat | 296 | :end |
2288 | bpr | 297 | !if $step>=0 and $cmd=reply |
298 | !set wims_menu_items=!append line back2,1,module=$module\ |
||
299 | to $wims_menu_items |
||
300 | !endif |
||
301 | |||
23 | reyssat | 302 | !tail |
303 | |||
304 | !set step= |