Annotation of FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl, revision 1.2
1.2 ! as 1: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl,v 1.1 2008/01/05 12:25:17 as Exp $ //-->
1.1 as 2: <!-- user_name:<?=$user_name?>;user_id:<?=$user_id?>;is_www_admin:<?=$is_www_admin?> //-->
3: <div id="user">
4: <? if (empty($user_name)) { ?>
5: <form method="post" action="index.php">
1.2 ! as 6: <fieldset>
! 7: <label>Login</label>
1.1 as 8: <? if ($errors) { ?>
9: <p style="color:#FF0000">
10: <? foreach($errors as $error){ ?>
11: <?=$error?><br />
12: <? } ?>
13: </p>
14: <?}?>
15: <table>
16: <tr>
17: <td>Username</td>
18: <td><input type="text" name="User_Name" /></td>
19: <td> </td>
20: <td>Password</td>
21: <td><input type="password" name="User_Password" /></td>
22: <td> </td>
23: <td><input type="submit" name="do_login" value="login" /></td>
24: </tr>
25: </table>
1.2 ! as 26: </fieldset>
1.1 as 27: </form>
28: <? } else { ?>
29: <form method="post" action="index.php">
30: <? if ($is_www_admin == 1) { ?>
31: <h1>Modify User</h1>
32: <input type="hidden" name="action" value="display_modify_user" />
33: <select name="modify_user_id">
34: <?foreach($all_users as $user){?>
35: <option value="<?=$user['user_id']?>" <?if ($user_name == $user['user_name']) {?>selected="selected"<?}?>><?=$user['user_name']?></option>
36: <? } ?>
37: </select>
38: <input type="submit" name="display_modify_user" value="Modify User" />
39: </form>
40: <? } ?>
41: <? } ?>
42: </div>