commit 006f6137d9a1cd281bc5e77ad93c3401c608fa16 parent dbfe33e1af33b40816c6161ceaebe02be4d65b8d Author: Andrew <andreww107@gmail.com> Date: Thu, 20 Dec 2018 11:32:17 -0500 Update controlpanel.php Diffstat:
M | website/controlpanel.php | | | 48 | ++++++++++++++++++++++++++---------------------- |
1 file changed, 26 insertions(+), 22 deletions(-)
diff --git a/website/controlpanel.php b/website/controlpanel.php @@ -12,30 +12,34 @@ if (!isset($_SESSION['admin'])) { echo "<p> Hello, ", $user, " what would you like to do? <br>"; } ?> -<form class="block-form" action="res/block.php" method="POST"> - <input type='text' name='username' placeholder='User Name'> <br> - <button type='submit' name='revoke-creation' > Revoke Survey Creation </button> - <button type='submit' name='revoke-access' > Revoke All Survey Access </button> - <button type='submit' name='ban' > Ban User </button> - <button type='submit' name='unban' > Unban User </button> -</form> -<form class="delete-survey-form" action="res/delete-survey.php" method="POST"> - <input type='text' name='survey-code' placeholder='Survey Code'> <br> - <button type='submit' name='delete-survey' > Delete Survey</button> -</form> +<link rel="stylesheet" href="res/style.css"> -<form class="create-admin" action="res/register-admin.php" method="POST"> - <input type='text' name='email' placeholder='Email'> <br> - <input type='text' name='username' placeholder='User Name'> <br> - <input type='text' name='password' placeholder='Password'> <br> - <button type='submit' name='admin' > Create New Admin Account</button> -</form> +<div class="cpanel"> + <form class="block-form" action="res/block.php" method="POST"> + <input type='text' name='username' placeholder='User Name'> <br> + <button type='submit' name='revoke-creation' > Revoke Survey Creation </button> + <button type='submit' name='revoke-access' > Revoke All Survey Access </button> + <button type='submit' name='ban' > Ban User </button> + <button type='submit' name='unban' > Unban User </button> + </form> -<form class="banner-message" action="res/admin-message.php" method="POST"> - <input type='text' name='message' placeholder='New Message'> <br> - <button type='submit' name='admin' > New Banner Message </button> - <button type='submit' name='remove' > Remove Current Banner Message </button> -</form> + <form class="delete-survey-form" action="res/delete-survey.php" method="POST"> + <input type='text' name='survey-code' placeholder='Survey Code'> <br> + <button type='submit' name='delete-survey' > Delete Survey</button> + </form> + <form class="create-admin" action="res/register-admin.php" method="POST"> + <input type='text' name='email' placeholder='Email'> <br> + <input type='text' name='username' placeholder='User Name'> <br> + <input type='text' name='password' placeholder='Password'> <br> + <button type='submit' name='admin' > Create New Admin Account</button> + </form> + + <form class="banner-message" action="res/admin-message.php" method="POST"> + <input type='text' name='message' placeholder='New Message'> <br> + <button type='submit' name='admin' > New Banner Message </button> + <button type='submit' name='remove' > Remove Current Banner Message </button> + </form> +</div> <a href="index.php"> Home </a> <br>