File:  [Paefchen] / FreeBSD / tinderbox / webui / templates / paefchen / display_login.tpl
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Jan 7 03:53:59 2008 UTC (16 years, 10 months ago) by as
Branches: MAIN
CVS tags: HEAD
- Valid XHTML 1.0 Strict
- Valid CSS 2.0

<!-- $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?> //-->
<div id="user">
<? if (empty($user_name)) { ?>
	<form method="post" action="index.php">
	<fieldset>
		<label>Login</label>
	<? if ($errors) { ?>
		<p style="color:#FF0000">
		<? foreach($errors as $error){ ?>
			<?=$error?><br />
		<? } ?>
		</p>
	<?}?>
	<table>
		<tr>
			<td>Username</td>
			<td><input type="text" name="User_Name" /></td>
			<td>&nbsp;</td>
			<td>Password</td>
			<td><input type="password" name="User_Password" /></td>
			<td>&nbsp;</td>
			<td><input type="submit" name="do_login" value="login" /></td>
		</tr>
	</table>
	</fieldset>
	</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>