Annotation of FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl, revision 1.1
1.1 ! as 1: <!-- $Paefchen: FreeBSD/tinderbox/webui/templates/paefchen/display_login.tpl,v 1.1 2008/01/05 11:56:01 as Exp $ //-->
! 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">
! 6: <? if ($errors) { ?>
! 7: <p style="color:#FF0000">
! 8: <? foreach($errors as $error){ ?>
! 9: <?=$error?><br />
! 10: <? } ?>
! 11: </p>
! 12: <?}?>
! 13: <h1>Login</h1>
! 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: </form>
! 26: <? } else { ?>
! 27: <form method="post" action="index.php">
! 28: <? if ($is_www_admin == 1) { ?>
! 29: <h1>Modify User</h1>
! 30: <input type="hidden" name="action" value="display_modify_user" />
! 31: <select name="modify_user_id">
! 32: <?foreach($all_users as $user){?>
! 33: <option value="<?=$user['user_id']?>" <?if ($user_name == $user['user_name']) {?>selected="selected"<?}?>><?=$user['user_name']?></option>
! 34: <? } ?>
! 35: </select>
! 36: <input type="submit" name="display_modify_user" value="Modify User" />
! 37: </form>
! 38: <? } ?>
! 39: <? } ?>
! 40: </div>