2023-02-05 15:36:11 +00:00
|
|
|
<main class="home">
|
|
|
|
|
<form method="post" action="/portal/addUser">
|
|
|
|
|
<?php if ($update) {?>
|
|
|
|
|
<label>Enter Username</label>
|
|
|
|
|
<input type="username" name="username" value="<?=$user->username?>"/>
|
|
|
|
|
<label>Enter Password</label>
|
2023-02-05 23:04:45 +00:00
|
|
|
<input type="password" name="password" value=""/>
|
2023-02-05 15:36:11 +00:00
|
|
|
<label>Enter User Type</label>
|
|
|
|
|
<input type="text" name="type" value="<?=$user->userType?>"/>
|
|
|
|
|
<input type="hidden" name="user_id" value="<?=$user->id?>" />
|
|
|
|
|
<input type="submit" name="submit" value="Update"/>
|
|
|
|
|
<?php }
|
|
|
|
|
else { ?>
|
|
|
|
|
<label>Enter Username</label>
|
|
|
|
|
<input type="username" name="username" />
|
|
|
|
|
<label>Enter Password</label>
|
|
|
|
|
<input type="password" name="password" />
|
|
|
|
|
<label>Enter User Type</label>
|
|
|
|
|
<input type="text" name="type" />
|
|
|
|
|
<input type="submit" name="submit" value="Create"/>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</form>
|
|
|
|
|
</main>
|