Admin.php: remove redundant parenthese

pull/49/head
Hui Lan 2022-12-01 20:26:27 +08:00
parent 2230bf4222
commit ce4a9b76c7
1 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") {
echo "<b>TA Accounts </b><br>" ; echo "<b>TA Accounts </b><br>" ;
} }
else if(($_SESSION['user_type'] == "Admin")){ else if($_SESSION['user_type'] == "Admin"){
echo " <h4> Lecturer Account Management </h4> echo " <h4> Lecturer Account Management </h4>
<hr> "; <hr> ";
@ -84,7 +84,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") {
} }
else if(($_SESSION['user_type'] == "Admin")){ else if($_SESSION['user_type'] == "Admin"){
echo "<b>Create Lecturer Accounts </b>"; echo "<b>Create Lecturer Accounts </b>";
} }
@ -109,7 +109,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") {
} }
else if(($_SESSION['user_type'] == "Admin")){ else if($_SESSION['user_type'] == "Admin"){
echo " <input type='radio' name = 'type' value = 'Lecturer' required = '' id='role_lecturer' > Lecturer "; echo " <input type='radio' name = 'type' value = 'Lecturer' required = '' id='role_lecturer' > Lecturer ";
@ -160,7 +160,7 @@ if ($_SESSION['user_type'] != "Lecturer" || $_SESSION['user_type'] != "Admin") {
); );
} }
else if(($_SESSION['user_type'] == "Admin")){ else if($_SESSION['user_type'] == "Admin"){
$result = mysqli_query( $result = mysqli_query(
$con, $con,