Annotation of FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl, revision 1.3
1.3 ! as 1: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl,v 1.2 2008/01/07 03:53:59 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>
! 24: </table>
! 25: </fieldset>
1.1 as 26: </form>
1.3 ! as 27: <? } else if (! empty($user_name) && $is_www_admin == 1) { ?>
1.1 as 28: <form method="post" action="index.php">
1.3 ! as 29: <fieldset>
! 30: <label>Modify User</label>
! 31: <input type="hidden" name="action" value="display_modify_user" />
! 32: <select name="modify_user_id">
1.1 as 33: <?foreach($all_users as $user){?>
1.3 ! as 34: <option value="<?=$user['user_id']?>" <?if ($user_name == $user['user_name']) {?>selected="selected"<?}?>><?=$user['user_name']?></option>
1.1 as 35: <? } ?>
1.3 ! as 36: </select>
! 37: <input type="submit" name="display_modify_user" value="Modify User" />
! 38: </fieldset>
1.1 as 39: </form>
40: <? } ?>