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