| 25 |
<table class="adminheading"> |
<table class="adminheading"> |
| 26 |
<tr> |
<tr> |
| 27 |
<th class="user"> |
<th class="user"> |
| 28 |
User Manager |
<?php echo T_('User Manager') ?> |
| 29 |
</th> |
</th> |
| 30 |
<td> |
<td> |
| 31 |
Filter: |
<?php echo T_('Filter:') ?> |
| 32 |
</td> |
</td> |
| 33 |
<td> |
<td> |
| 34 |
<input type="text" name="search" value="<?php echo $search;?>" class="inputbox" onChange="document.adminForm.submit();" /> |
<input type="text" name="search" value="<?php echo $search;?>" class="inputbox" onChange="document.adminForm.submit();" /> |
| 51 |
<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count($rows); ?>);" /> |
<input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count($rows); ?>);" /> |
| 52 |
</th> |
</th> |
| 53 |
<th class="title"> |
<th class="title"> |
| 54 |
Name |
<?php echo T_('Name') ?> |
| 55 |
</th> |
</th> |
| 56 |
<th width="5%" class="title" nowrap="nowrap"> |
<th width="5%" class="title" nowrap="nowrap"> |
| 57 |
Logged In |
<?php echo T_('Logged In') ?> |
| 58 |
</th> |
</th> |
| 59 |
<th width="5%" class="title"> |
<th width="5%" class="title"> |
| 60 |
Enabled |
<?php echo T_('Enabled') ?> |
| 61 |
</th> |
</th> |
| 62 |
<th width="15%" class="title" > |
<th width="15%" class="title" > |
| 63 |
UserID |
<?php echo T_('UserID') ?> |
| 64 |
</th> |
</th> |
| 65 |
<th width="15%" class="title"> |
<th width="15%" class="title"> |
| 66 |
Group |
<?php echo T_('Group') ?> |
| 67 |
</th> |
</th> |
| 68 |
<th width="15%" class="title"> |
<th width="15%" class="title"> |
| 69 |
E-Mail |
<?php echo T_('E-Mail') ?> |
| 70 |
</th> |
</th> |
| 71 |
<th width="10%" class="title"> |
<th width="10%" class="title"> |
| 72 |
Last Visit |
<?php echo T_('Last Visit') ?> |
| 73 |
</th> |
</th> |
| 74 |
</tr> |
</tr> |
| 75 |
<?php |
<?php |
| 151 |
|
|
| 152 |
// do field validation |
// do field validation |
| 153 |
if (trim(form.name.value) == "") { |
if (trim(form.name.value) == "") { |
| 154 |
alert( "You must provide a name." ); |
alert( "<?php echo T_('You must provide a name.') ?>" ); |
| 155 |
} else if (form.username.value == "") { |
} else if (form.username.value == "") { |
| 156 |
alert( "You must provide a user login name." ); |
alert( "<?php echo T_('You must provide a user login name.') ?>" ); |
| 157 |
} else if (r.exec(form.username.value) || form.username.value.length < 3) { |
} else if (r.exec(form.username.value) || form.username.value.length < 3) { |
| 158 |
alert( "You login name contains invalid characters or is too short." ); |
alert( "<?php echo T_('Your login name contains invalid characters or is too short.') ?>" ); |
| 159 |
} else if (trim(form.email.value) == "") { |
} else if (trim(form.email.value) == "") { |
| 160 |
alert( "You must provide an email address." ); |
alert( "<?php echo T_('You must provide an email address.') ?>" ); |
| 161 |
} else if (form.gid.value == "") { |
} else if (form.gid.value == "") { |
| 162 |
alert( "You must assign user to a group." ); |
alert( "<?php echo T_('You must assign user to a group.') ?>" ); |
| 163 |
} else if (trim(form.password.value) != "" && form.password.value != form.password2.value){ |
} else if (trim(form.password.value) != "" && form.password.value != form.password2.value){ |
| 164 |
alert( "Password do not match." ); |
alert( "<?php echo T_('Passwords do not match.') ?>" ); |
| 165 |
} else if (form.gid.value == "29") { |
} else if (form.gid.value == "29") { |
| 166 |
alert( "Please Select another group as `Public Frontend` is not a selectable option" ); |
alert( "<?php echo T_('Please Select another group as `Public Frontend` is not a selectable option') ?>" ); |
| 167 |
} else if (form.gid.value == "30") { |
} else if (form.gid.value == "30") { |
| 168 |
alert( "Please Select another group as `Public Backend` is not a selectable option" ); |
alert( "<?php echo T_('Please Select another group as `Public Backend` is not a selectable option') ?>" ); |
| 169 |
} else { |
} else { |
| 170 |
submitform( pressbutton ); |
submitform( pressbutton ); |
| 171 |
} |
} |
| 182 |
<table class="adminheading"> |
<table class="adminheading"> |
| 183 |
<tr> |
<tr> |
| 184 |
<th class="user"> |
<th class="user"> |
| 185 |
User: <small><?php echo $row->id ? 'Edit' : 'Add';?></small> |
<?php echo T_('User:') ?> <small><?php echo $row->id ? T_('Edit') : T_('Add');?></small> |
| 186 |
</th> |
</th> |
| 187 |
</tr> |
</tr> |
| 188 |
</table> |
</table> |
| 193 |
<table class="adminform"> |
<table class="adminform"> |
| 194 |
<tr> |
<tr> |
| 195 |
<th colspan="2"> |
<th colspan="2"> |
| 196 |
User Details |
<?php echo T_('User Details') ?> |
| 197 |
</th> |
</th> |
| 198 |
</tr> |
</tr> |
| 199 |
<tr> |
<tr> |
| 200 |
<td width="100"> |
<td width="100"> |
| 201 |
Name: |
<?php echo T_('Name:') ?> |
| 202 |
</td> |
</td> |
| 203 |
<td width="85%"> |
<td width="85%"> |
| 204 |
<input type="text" name="name" class="inputbox" size="40" value="<?php echo $row->name; ?>" /> |
<input type="text" name="name" class="inputbox" size="40" value="<?php echo $row->name; ?>" /> |
| 206 |
</tr> |
</tr> |
| 207 |
<tr> |
<tr> |
| 208 |
<td> |
<td> |
| 209 |
Username: |
<?php echo T_('Username:') ?> |
| 210 |
</td> |
</td> |
| 211 |
<td> |
<td> |
| 212 |
<input type="text" name="username" class="inputbox" size="40" value="<?php echo $row->username; ?>" /> |
<input type="text" name="username" class="inputbox" size="40" value="<?php echo $row->username; ?>" /> |
| 213 |
</td> |
</td> |
| 214 |
<tr> |
<tr> |
| 215 |
<td> |
<td> |
| 216 |
Email: |
<?php echo T_('Email:') ?> |
| 217 |
</td> |
</td> |
| 218 |
<td> |
<td> |
| 219 |
<input class="inputbox" type="text" name="email" size="40" value="<?php echo $row->email; ?>" /> |
<input class="inputbox" type="text" name="email" size="40" value="<?php echo $row->email; ?>" /> |
| 221 |
</tr> |
</tr> |
| 222 |
<tr> |
<tr> |
| 223 |
<td> |
<td> |
| 224 |
New Password: |
<?php echo T_('New Password:') ?> |
| 225 |
</td> |
</td> |
| 226 |
<td> |
<td> |
| 227 |
<input class="inputbox" type="password" name="password" size="40" value="" /> |
<input class="inputbox" type="password" name="password" size="40" value="" /> |
| 229 |
</tr> |
</tr> |
| 230 |
<tr> |
<tr> |
| 231 |
<td> |
<td> |
| 232 |
Verify Password: |
<?php echo T_('Verify Password:') ?> |
| 233 |
</td> |
</td> |
| 234 |
<td> |
<td> |
| 235 |
<input class="inputbox" type="password" name="password2" size="40" value="" /> |
<input class="inputbox" type="password" name="password2" size="40" value="" /> |
| 237 |
</tr> |
</tr> |
| 238 |
<tr> |
<tr> |
| 239 |
<td valign="top"> |
<td valign="top"> |
| 240 |
Group: |
<?php echo T_('Group:') ?> |
| 241 |
</td> |
</td> |
| 242 |
<td> |
<td> |
| 243 |
<?php echo $lists['gid']; ?> |
<?php echo $lists['gid']; ?> |
| 248 |
?> |
?> |
| 249 |
<tr> |
<tr> |
| 250 |
<td> |
<td> |
| 251 |
Block User |
<?php echo T_('Block User') ?> |
| 252 |
</td> |
</td> |
| 253 |
<td> |
<td> |
| 254 |
<?php echo $lists['block']; ?> |
<?php echo $lists['block']; ?> |
| 260 |
?> |
?> |
| 261 |
<tr> |
<tr> |
| 262 |
<td> |
<td> |
| 263 |
Receive Submission Emails |
<?php echo T_('Receive Submission Emails') ?> |
| 264 |
</td> |
</td> |
| 265 |
<td> |
<td> |
| 266 |
<?php echo $lists['sendEmail']; ?> |
<?php echo $lists['sendEmail']; ?> |
| 272 |
?> |
?> |
| 273 |
<tr> |
<tr> |
| 274 |
<td> |
<td> |
| 275 |
Register Date |
<?php echo T_('Register Date') ?> |
| 276 |
</td> |
</td> |
| 277 |
<td> |
<td> |
| 278 |
<?php echo $row->registerDate;?> |
<?php echo $row->registerDate;?> |
| 280 |
</tr> |
</tr> |
| 281 |
<tr> |
<tr> |
| 282 |
<td> |
<td> |
| 283 |
Last Visit Date |
<?php echo T_('Last Visit Date') ?> |
| 284 |
</td> |
</td> |
| 285 |
<td> |
<td> |
| 286 |
<?php echo $row->lastvisitDate;?> |
<?php echo $row->lastvisitDate;?> |
| 303 |
<table class="adminform"> |
<table class="adminform"> |
| 304 |
<tr> |
<tr> |
| 305 |
<th> |
<th> |
| 306 |
Contact Information |
<?php echo T_('Contact Information') ?> |
| 307 |
</th> |
</th> |
| 308 |
</tr> |
</tr> |
| 309 |
<tr> |
<tr> |
| 310 |
<td> |
<td> |
| 311 |
<br /> |
<br /> |
| 312 |
No Contact details linked to this User: |
<?php echo T_('No Contact details linked to this User:') ?> |
| 313 |
<br /> |
<br /> |
| 314 |
See 'Components -> Contact -> Manage Contacts' for details. |
<?php echo T_('See "Components -> Contact -> Manage Contacts" for details.') ?> |
| 315 |
<br /><br /> |
<br /><br /> |
| 316 |
</td> |
</td> |
| 317 |
</tr> |
</tr> |
| 322 |
<table class="adminform"> |
<table class="adminform"> |
| 323 |
<tr> |
<tr> |
| 324 |
<th colspan="2"> |
<th colspan="2"> |
| 325 |
Contact Information |
<?php echo T_('Contact Information') ?> |
| 326 |
</th> |
</th> |
| 327 |
</tr> |
</tr> |
| 328 |
<tr> |
<tr> |
| 329 |
<td width="15%"> |
<td width="15%"> |
| 330 |
Name: |
<?php echo T_('Name:') ?> |
| 331 |
</td> |
</td> |
| 332 |
<td> |
<td> |
| 333 |
<strong> |
<strong> |
| 337 |
</tr> |
</tr> |
| 338 |
<tr> |
<tr> |
| 339 |
<td> |
<td> |
| 340 |
Position: |
<?php echo T_('Position:') ?> |
| 341 |
</td> |
</td> |
| 342 |
<td > |
<td > |
| 343 |
<strong> |
<strong> |
| 347 |
</tr> |
</tr> |
| 348 |
<tr> |
<tr> |
| 349 |
<td> |
<td> |
| 350 |
Telephone: |
<?php echo T_('Telephone:') ?> |
| 351 |
</td> |
</td> |
| 352 |
<td > |
<td > |
| 353 |
<strong> |
<strong> |
| 357 |
</tr> |
</tr> |
| 358 |
<tr> |
<tr> |
| 359 |
<td> |
<td> |
| 360 |
Fax: |
<?php echo T_('Fax:') ?> |
| 361 |
</td> |
</td> |
| 362 |
<td > |
<td > |
| 363 |
<strong> |
<strong> |
| 388 |
<tr> |
<tr> |
| 389 |
<td colspan="2"> |
<td colspan="2"> |
| 390 |
<br /><br /> |
<br /><br /> |
| 391 |
<input class="button" type="button" value="change Contact Details" onclick="javascript: gotocontact( '<?php echo $contact[0]->id; ?>' )"> |
<input class="button" type="button" value="<?php echo T_('Change Contact Details') ?>" onclick="javascript: gotocontact( '<?php echo $contact[0]->id; ?>' )"> |
| 392 |
<i> |
<i> |
| 393 |
<br /> |
<br /> |
| 394 |
'Components -> Contact -> Manage Contacts'. |
'<?php echo T_('Components -> Contact -> Manage Contacts') ?>'. |
| 395 |
</i> |
</i> |
| 396 |
</td> |
</td> |
| 397 |
</tr> |
</tr> |