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