Contents of /trunk/flyspray/themes/Magellan/templates/common.profile.tpl
Parent Directory | Revision Log
Revision 6 -
(show annotations)
(download)
Thu Mar 24 13:33:23 2016 UTC (8 years, 1 month ago) by niro
File size: 8222 byte(s)
Thu Mar 24 13:33:23 2016 UTC (8 years, 1 month ago) by niro
File size: 8222 byte(s)
-import flyspray-1.0-beta Magellan theme
1 | <?php echo tpl_form( $do=='myprofile' ? Filters::noXSS(CreateUrl('myprofile')) : Filters::noXSS(CreateUrl('edituser', $theuser->id))); ?> |
2 | <ul class="form_elements"> |
3 | <li> |
4 | <label for="realname"><?php echo Filters::noXSS(L('realname')); ?></label> |
5 | <input id="realname" class="text" type="text" name="real_name" maxlength="100" |
6 | value="<?php echo Filters::noXSS(Req::val('real_name', $theuser->infos['real_name'])); ?>" /> |
7 | </li> |
8 | <li> |
9 | <label for="emailaddress"><?php echo Filters::noXSS(L('emailaddress')); ?></label> |
10 | <input id="emailaddress" class="text" type="text" name="email_address" maxlength="100" |
11 | value="<?php echo Filters::noXSS(Req::val('email_address', $theuser->infos['email_address'])); ?>" /> |
12 | </li> |
13 | <li> |
14 | <label for="hide_my_email"><?php echo Filters::noXSS(L('hidemyemail')); ?></label> |
15 | <?php echo tpl_checkbox('hide_my_email', Req::val('hide_my_email', !Post::val('action') && $theuser->infos['hide_my_email']), 'hide_my_email', 1, ($fs->prefs['hide_emails'] ) ? array('checked' => 'true', 'disabled' => 'true') : ''); ?> |
16 | </li> |
17 | <?php if (!empty($fs->prefs['jabber_server'])):?> |
18 | <li> |
19 | <label for="jabberid"><?php echo Filters::noXSS(L('jabberid')); ?></label> |
20 | <input id="jabberid" class="text" type="text" name="jabber_id" maxlength="100" |
21 | value="<?php echo Filters::noXSS(Req::val('jabber_id', $theuser->infos['jabber_id'])); ?>" /> |
22 | <input type="hidden" name="old_jabber_id" value="<?php echo Filters::noXSS($theuser->infos['jabber_id']); ?>" /> |
23 | </li> |
24 | <?php endif ?> |
25 | <?php if ($fs->prefs['enable_avatars']): ?> |
26 | <li> |
27 | <label for="profileimage"><?php echo Filters::noXSS(L('profileimage')); ?></label> |
28 | <?php echo tpl_userlinkavatar($theuser->id, $fs->prefs['max_avatar_size'], 'av_comment'); ?> |
29 | </li> |
30 | <li> |
31 | <label for="profileimage_input"> </label> |
32 | <input id="profileimage_input" name="profile_image" type="file" value="<?php echo Filters::noXSS(Req::val('profile_image')); ?>"/> |
33 | </li> |
34 | <?php endif ?> |
35 | <li> |
36 | <label for="notifytype"><?php echo Filters::noXSS(L('notifytype')); ?></label> |
37 | <select id="notifytype" name="notify_type"> |
38 | <?php echo tpl_options($fs->GetNotificationOptions(), Req::val('notify_type', $theuser->infos['notify_type'])); ?> |
39 | </select> |
40 | </li> |
41 | <li> |
42 | <label for="notify_own"><?php echo Filters::noXSS(L('notifyown')); ?></label> |
43 | <?php echo tpl_checkbox('notify_own', Req::val('notify_own', !Post::val('action') && $theuser->infos['notify_own']), 'notify_own'); ?> |
44 | </li> |
45 | <!--<li> |
46 | <label for="notify_online"><?php echo Filters::noXSS(L('notifyonline')); ?></label> |
47 | <?php echo tpl_checkbox('notify_online', Req::val('notify_online', !Post::val('action') && $theuser->infos['notify_online']), 'notify_online'); ?> |
48 | </li>--> |
49 | <li> |
50 | <label for="dateformat"><?php echo Filters::noXSS(L('dateformat')); ?></label> |
51 | <select id="dateformat" name="dateformat"> |
52 | <?php echo tpl_date_formats($theuser->infos['dateformat']); ?> |
53 | </select> |
54 | </li> |
55 | <li> |
56 | <label for="dateformat_extended"><?php echo Filters::noXSS(L('dateformat_extended')); ?></label> |
57 | <select id="dateformat_extended" name="dateformat_extended"> |
58 | <?php echo tpl_date_formats($theuser->infos['dateformat_extended'], true); ?> |
59 | </select> |
60 | </li> |
61 | <li> |
62 | <label for="tasks_perpage"><?php echo Filters::noXSS(L('tasksperpage')); ?></label> |
63 | <select name="tasks_perpage" id="tasks_perpage"> |
64 | <?php echo tpl_options(array(10, 25, 50, 100, 250), Req::val('tasks_perpage', $theuser->infos['tasks_perpage']), true); ?> |
65 | </select> |
66 | </li> |
67 | <li> |
68 | <label for="time_zone"><?php echo Filters::noXSS(L('timezone')); ?></label> |
69 | <select id="time_zone" name="time_zone"> |
70 | <?php |
71 | $times = array(); |
72 | for ($i = -12; $i <= 13; $i++) { |
73 | $times[$i] = L('GMT') . (($i == 0) ? ' ' : (($i > 0) ? '+' . $i : $i)); |
74 | } |
75 | ?> |
76 | <?php echo tpl_options($times, Req::val('time_zone', $theuser->infos['time_zone'])); ?> |
77 | </select> |
78 | </li> |
79 | <li> |
80 | <label for="langcode"><?php echo Filters::noXSS(L('language')); ?></label> |
81 | <select id="langcode" name="lang_code"> |
82 | <?php |
83 | #echo tpl_options(array_merge(array('browser', 'project'), Flyspray::listLangs()), Req::val('lang_code', $theuser->infos['lang_code']), true); |
84 | echo tpl_options( Flyspray::listLangs(), Req::val('lang_code', $theuser->infos['lang_code']), true); |
85 | ?> |
86 | </select> |
87 | </li> |
88 | <li> |
89 | <hr /> |
90 | </li> |
91 | <?php if ($user->perms('is_admin')): ?> |
92 | <li> |
93 | <label for="accountenabled"><?php echo Filters::noXSS(L('accountenabled')); ?></label> |
94 | <?php echo tpl_checkbox('account_enabled', Req::val('account_enabled', !Post::val('action') && $theuser->infos['account_enabled']), 'accountenabled'); ?> |
95 | </li> |
96 | <li> |
97 | <label for="delete_user"><?php echo Filters::noXSS(L('deleteuser')); ?></label> |
98 | <?php echo tpl_checkbox('delete_user', false, 'delete_user'); ?> |
99 | </li> |
100 | <?php endif; ?> |
101 | <li> |
102 | <label for="groupin"><?php echo Filters::noXSS(L('globalgroup')); ?></label> |
103 | <select id="groupin" class="adminlist" name="group_in" <?php echo Filters::noXSS(tpl_disableif(!$user->perms('is_admin'))); ?>> |
104 | <?php echo tpl_options($groups, Req::val('group_in', $theuser->infos['global_group'])); ?> |
105 | </select> |
106 | <input type="hidden" name="old_global_id" value="<?php echo Filters::noXSS($theuser->infos['global_group']); ?>" /> |
107 | </li> |
108 | |
109 | <?php if ($proj->id): ?> |
110 | <li> |
111 | <label for="projectgroupin"><?php echo Filters::noXSS(L('projectgroup')); ?></label> |
112 | <select id="projectgroupin" class="adminlist" name="project_group_in" <?php echo Filters::noXSS(tpl_disableif(!$user->perms('manage_project'))); ?>> |
113 | <?php echo tpl_options(array_merge($project_groups, array(0 => array('group_name' => L('none'), 0 => 0, 'group_id' => 0, 1 => L('none')))), Req::val('project_group_in', $theuser->perms('project_group'))); ?> |
114 | </select> |
115 | <input type="hidden" name="old_project_id" value="<?php echo Filters::noXSS($theuser->perms('project_group')); ?>" /> |
116 | </li> |
117 | <?php endif; ?> |
118 | <li> |
119 | <hr /> |
120 | </li> |
121 | |
122 | <?php if (!$theuser->infos['oauth_uid']): ?> |
123 | <?php if ($user->perms('is_admin') || $user->id == $theuser->id): ?> |
124 | <?php if (!$fs->prefs['disable_changepw']): ?> |
125 | <?php if (!$user->perms('is_admin')): ?> |
126 | <li> |
127 | <label for="oldpass"><?php echo Filters::noXSS(L('oldpass')); ?></label> |
128 | <input id="oldpass" class="password" type="password" name="oldpass" value="<?php echo Filters::noXSS(Req::val('oldpass')); ?>" maxlength="100" /> |
129 | </li> |
130 | <?php endif; ?> |
131 | <li> |
132 | <label for="changepass"><?php echo Filters::noXSS(L('changepass')); ?></label> |
133 | <input id="changepass" class="password" type="password" name="changepass" value="<?php echo Filters::noXSS(Req::val('changepass')); ?>" maxlength="100" /> |
134 | </li> |
135 | <li> |
136 | <label for="confirmpass"><?php echo Filters::noXSS(L('confirmpass')); ?></label> |
137 | <input id="confirmpass" class="password" type="password" name="confirmpass" value="<?php echo Filters::noXSS(Req::val('confirmpass')); ?>" maxlength="100" /> |
138 | </li> |
139 | <?php endif; ?> |
140 | <?php endif; ?> |
141 | <?php endif; ?> |
142 | <li> |
143 | <input type="hidden" name="action" value="<?php echo Filters::noXSS(Req::val('action', $do . '.edituser')); ?>" /> |
144 | <?php if (Req::val('area') || $do == 'admin'): ?><input type="hidden" name="area" value="users" /><?php endif; ?> |
145 | <input type="hidden" name="user_id" value="<?php echo Filters::noXSS($theuser->id); ?>" /> |
146 | <button type="submit"><?php echo Filters::noXSS(L('updatedetails')); ?></button> |
147 | </li> |
148 | </ul> |
149 | </form> |