Contents of /trunk/flyspray/themes/Magellan/templates/common.newuserbulk.tpl
Parent Directory | Revision Log
Revision 6 -
(show annotations)
(download)
Thu Mar 24 13:33:23 2016 UTC (8 years, 2 months ago) by niro
File size: 3346 byte(s)
Thu Mar 24 13:33:23 2016 UTC (8 years, 2 months ago) by niro
File size: 3346 byte(s)
-import flyspray-1.0-beta Magellan theme
1 | <?php if ($do == 'admin'): echo tpl_form(Filters::noXSS(CreateURL($do, 'newuserbulk')),null,null,null,'id="registernewuser"'); |
2 | else: echo tpl_form(Filters::noXSS($_SERVER['SCRIPT_NAME']), null,null,null,'id="registernewuser"'); |
3 | endif; ?> |
4 | <ul class="form_elements"> |
5 | <li class="required"> |
6 | <?php if ($do == 'admin'): ?> |
7 | <input type="hidden" name="action" value="admin.newuserbulk" /> |
8 | <input type="hidden" name="do" value="admin" /> |
9 | <input type="hidden" name="area" value="newuserbulk" /> |
10 | <?php else: ?> |
11 | <input type="hidden" name="action" value="register.newuserbulk" /> |
12 | <?php endif; ?> |
13 | </li> |
14 | |
15 | <!-- Header --> |
16 | <li> |
17 | <b><?php echo Filters::noXSS(L('bulkuserstoadd')); ?>:</b> |
18 | </li> |
19 | <table class="bulkuser"> |
20 | <tr> |
21 | <td><label for="realname"><?php echo Filters::noXSS(L('realname')); ?></label></td> |
22 | <td><label for="username"><?php echo Filters::noXSS(L('username')); ?></label></td> |
23 | <td><label for="emailaddress"><?php echo Filters::noXSS(L('emailaddress')); ?></label></td> |
24 | </tr> |
25 | <br /> |
26 | |
27 | |
28 | <?php for ($i = 0 ; $i < 10 ; $i++) { ?> |
29 | <!-- User <?php echo Filters::noXSS($i); ?> --> |
30 | <tr> |
31 | <td><input id="realname" name="real_name<?php echo Filters::noXSS($i); ?>" class="text" value="<?php echo Filters::noXSS(Req::val('real_name')); ?>" type="text" size="20" maxlength="100" onblur="this.form.elements['user_name<?php echo Filters::noXSS($i); ?>'].value = this.form.elements['real_name<?php echo Filters::noXSS($i); ?>'].value.replace(/ /g,'');"/></td> |
32 | <td><input id="username" name="user_name<?php echo Filters::noXSS($i); ?>" value="<?php echo Filters::noXSS(Req::val('user_name')); ?>" class="text" type="text" size="20" maxlength="32" onblur="checkname(this.value); "/></td> |
33 | <td><input id="emailaddress" name="email_address<?php echo Filters::noXSS($i); ?>" class="text" value="<?php echo Filters::noXSS(Req::val('email_address')); ?>" type="text" size="20" maxlength="100" /></td> |
34 | <tr> |
35 | <tr></tr> |
36 | <?php } ?> |
37 | </table> |
38 | |
39 | |
40 | <br /> |
41 | |
42 | <li> |
43 | <b><?php echo Filters::noXSS(L('optionsforallusers')); ?>:</b> |
44 | </li> |
45 | <li> |
46 | <label for="notify_type"><?php echo Filters::noXSS(L('notifications')); ?></label> |
47 | <select id="notify_type" name="notify_type"> |
48 | <?php echo tpl_options($fs->GetNotificationOptions(), Req::val('notify_type')); ?> |
49 | |
50 | </select> |
51 | </li> |
52 | |
53 | <li> |
54 | <label for="time_zone"><?php echo Filters::noXSS(L('timezone')); ?></label> |
55 | <select id="time_zone" name="time_zone"> |
56 | <?php |
57 | $times = array(); |
58 | for ($i = -12; $i <= 13; $i++) { |
59 | $times[$i] = L('GMT') . (($i == 0) ? ' ' : (($i > 0) ? '+' . $i : $i)); |
60 | } |
61 | ?> |
62 | <?php echo tpl_options($times, Req::val('time_zone', 0)); ?> |
63 | |
64 | </select> |
65 | </li> |
66 | |
67 | <?php if (isset($groups)): ?> |
68 | <li> |
69 | <label for="groupin"><?php echo Filters::noXSS(L('globalgroup')); ?></label> |
70 | <select id="groupin" class="adminlist" name="group_in"> |
71 | <?php echo tpl_options($groups, Req::val('group_in', $fs->prefs['anon_group'])); ?> |
72 | </select> |
73 | </li> |
74 | <?php endif; ?> |
75 | |
76 | </ul> |
77 | <p><button type="submit" id="buSubmit"><?php echo Filters::noXSS(L('registerbulkaccount')); ?></button></p> |
78 | </form> |