version 1.2, 2008/01/07 03:53:59
|
version 1.3, 2008/01/07 04:16:24
|
Line 1
|
Line 1
|
<!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl,v 1.1 2008/01/05 12:25:17 as Exp $ //--> | <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl,v 1.2 2008/01/07 03:53:59 as Exp $ //--> |
<!-- user_name:<?=$user_name?>;user_id:<?=$user_id?>;is_www_admin:<?=$is_www_admin?> //--> |
<!-- user_name:<?=$user_name?>;user_id:<?=$user_id?>;is_www_admin:<?=$is_www_admin?> //--> |
<div id="user"> |
|
<? if (empty($user_name)) { ?> |
<? if (empty($user_name)) { ?> |
<form method="post" action="index.php"> |
<form method="post" action="index.php"> |
<fieldset> | <fieldset> |
<label>Login</label> | <label>Login</label> |
<? if ($errors) { ?> |
<? if ($errors) { ?> |
<p style="color:#FF0000"> | <p style="color:#FF0000"> |
<? foreach($errors as $error){ ?> |
<? foreach($errors as $error){ ?> |
<?=$error?><br /> | <?=$error?><br /> |
<? } ?> |
<? } ?> |
</p> | </p> |
<?}?> |
<?}?> |
<table> | <table> |
<tr> | <tr> |
<td>Username</td> | <td>Username</td> |
<td><input type="text" name="User_Name" /></td> | <td><input type="text" name="User_Name" /></td> |
<td> </td> | <td> </td> |
<td>Password</td> | <td>Password</td> |
<td><input type="password" name="User_Password" /></td> | <td><input type="password" name="User_Password" /></td> |
<td> </td> | <td> </td> |
<td><input type="submit" name="do_login" value="login" /></td> | <td><input type="submit" name="do_login" value="login" /></td> |
</tr> | </tr> |
</table> | </table> |
</fieldset> | </fieldset> |
</form> |
</form> |
<? } else { ?> | <? } else if (! empty($user_name) && $is_www_admin == 1) { ?> |
<form method="post" action="index.php"> |
<form method="post" action="index.php"> |
<? if ($is_www_admin == 1) { ?> | <fieldset> |
<h1>Modify User</h1> | <label>Modify User</label> |
<input type="hidden" name="action" value="display_modify_user" /> | <input type="hidden" name="action" value="display_modify_user" /> |
<select name="modify_user_id"> | <select name="modify_user_id"> |
<?foreach($all_users as $user){?> |
<?foreach($all_users as $user){?> |
<option value="<?=$user['user_id']?>" <?if ($user_name == $user['user_name']) {?>selected="selected"<?}?>><?=$user['user_name']?></option> | <option value="<?=$user['user_id']?>" <?if ($user_name == $user['user_name']) {?>selected="selected"<?}?>><?=$user['user_name']?></option> |
<? } ?> |
<? } ?> |
</select> | </select> |
<input type="submit" name="display_modify_user" value="Modify User" /> | <input type="submit" name="display_modify_user" value="Modify User" /> |
| </fieldset> |
</form> |
</form> |
<? } ?> |
|
<? } ?> |
<? } ?> |
</div> |
|