Annotation of FreeBSD/tinderbox/webui/templates/default/display_login.tpl, revision 1.1.1.1
1.1 as 1: <?if(!$user_name){?>
2: <form method="post" action="index.php">
3: <?if($errors){?>
4: <p style="color:#FF0000">
5: <?foreach($errors as $error){?>
6: <?=$error?><br />
7: <?}?>
8: </p>
9: <?}?>
10: <table>
11: <tr>
12: <td>Username</td>
13: <td><input type="text" name="User_Name" /></td>
14: </tr>
15: <tr>
16: <td>Password</td>
17: <td><input type="password" name="User_Password" /></td>
18: </tr>
19: <tr>
20: <td colspan="2"><input type="submit" name="do_login" value="login" /></td>
21: </tr>
22: </table>
23: </form>
24: <?}else{?>
25: <table>
26: <tr>
27: <td><form method="post" action="index.php">
28: <table class="noborder" style="margin-top:10px">
29: <tr>
30: <td class="noborder">Welcome <?=$user_name?>!</td>
31: <td class="noborder"><input type="submit" name="do_logout" value="logout" /></td>
32: </tr>
33: </table>
34: </form></td>
35: </tr>
36: <tr>
37: <td><form method="post" action="index.php">
38: <table class="noborder">
39: <tr><td class="noborder"><a href="index.php?action=list_tinderd_queue" style="margin-left:10px">Tinderd Queue</a></td></tr>
40: <?if($is_www_admin==1){?>
41: <tr><td class="noborder"><a href="index.php?action=config" style="margin-left:10px">Tinderbox Config</a></td></tr>
42: <tr><td class="noborder">
43: <input type="hidden" name="action" value="display_modify_user" />
44: <select name="modify_user_id" style="margin-left:10px">
45: <?foreach($all_users as $user){?>
46: <option value="<?=$user['user_id']?>" <?if ($user_name == $user['user_name']) {?>selected="selected"<?}?>><?=$user['user_name']?></option>
47: <?}?>
48: </select>
49: <input type="submit" name="display_modify_user" value="Modify User" />
50: </td></tr>
51: <tr><td class="noborder"><a href="index.php?action=display_add_user" style="margin-left:10px">Add User</a></td></tr>
52: <?}else{?>
53: <tr><td class="noborder"><a href="index.php?action=display_modify_user&modify_user_id=<?=$user_id?>" style="margin-left:10px">Modify User</a></td></tr>
54: <?}?>
55: </table>
56: </form></td>
57: </tr>
58: </table>
59: <?}?>