| 1 |
<?php /* $Id$ */ |
|---|
| 2 |
//Copyright (C) 2004 Coalescent Systems Inc. (info@coalescentsystems.ca) |
|---|
| 3 |
// |
|---|
| 4 |
//This program is free software; you can redistribute it and/or |
|---|
| 5 |
//modify it under the terms of the GNU General Public License |
|---|
| 6 |
//as published by the Free Software Foundation; either version 2 |
|---|
| 7 |
//of the License, or (at your option) any later version. |
|---|
| 8 |
// |
|---|
| 9 |
//This program is distributed in the hope that it will be useful, |
|---|
| 10 |
//but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 |
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 |
//GNU General Public License for more details. |
|---|
| 13 |
?> |
|---|
| 14 |
|
|---|
| 15 |
<div class="rnav"> |
|---|
| 16 |
<?php |
|---|
| 17 |
// Eventually I recon the drawListMenu could be built into the new component class thus making |
|---|
| 18 |
// the relevent page.php file unnessassary |
|---|
| 19 |
|
|---|
| 20 |
$extens = core_users_list(); |
|---|
| 21 |
drawListMenu($extens, $skip, $type, $display, $extdisplay, _("User")); |
|---|
| 22 |
?> |
|---|
| 23 |
</div> |
|---|
| 24 |
|
|---|
| 25 |
<?php |
|---|
| 26 |
// Javascript functions could be put into the configpageinit function but I personally prefer |
|---|
| 27 |
// to code JavaScript in a web page // |
|---|
| 28 |
?> |
|---|
| 29 |
|
|---|
| 30 |
<script language="javascript"> |
|---|
| 31 |
<!-- |
|---|
| 32 |
|
|---|
| 33 |
function checkBlankUserPwd() { |
|---|
| 34 |
msgConfirmBlankUserPwd = "<?php echo _('You have not entered a User Password. While this is acceptable, this user will not be able to login to an AdHoc device.\n\nAre you sure you wish to leave the User Password empty?'); ?>"; |
|---|
| 35 |
|
|---|
| 36 |
// check for password and warn if none entered |
|---|
| 37 |
if (isEmpty(theForm.password.value)) { |
|---|
| 38 |
var cnf = confirm(msgConfirmBlankUserPwd); |
|---|
| 39 |
if (!cnf) { |
|---|
| 40 |
theForm.password.focus(); |
|---|
| 41 |
return false; |
|---|
| 42 |
} |
|---|
| 43 |
} |
|---|
| 44 |
return true; |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
//--> |
|---|
| 48 |
</script> |
|---|