Courses.php: better code spacing (2)

Bug430-Eden2
Lan Hui 2023-09-07 19:36:24 +08:00
parent 368c4763d2
commit 79a928354b
1 changed files with 5 additions and 9 deletions

View File

@ -433,11 +433,12 @@ include 'Header.php';
<?php
if( $_SESSION['user_type']=="TA")
{
if ($_SESSION['user_type'] == "TA") {
echo "<center>Only Lecturer can post assignments</center>";
}
if( $_SESSION['user_type']=="Lecturer"){ ?>
if ($_SESSION['user_type'] == "Lecturer"){
?>
<b>Create a new course</b>
@ -459,10 +460,8 @@ include 'Header.php';
Faculty <br>
<input type="text" name="faculty" placeholder="Faculty" class="form-control" required="">
<input type="hidden" name="lecturer" value="<?php echo $_SESSION['user_id']; ?>">
Verify joining students?
<input type="radio" name="verify" value="1"> Yes
<input type="radio" name="verify" value="0" checked=""> No
@ -476,15 +475,13 @@ include 'Header.php';
</div>
<!-- END LECTURER -->
<?php
}
if( $_SESSION['user_type']=="Student")
{
if ($_SESSION['user_type'] == "Student") {
?>
<!--STUDENT CODE-->
@ -492,7 +489,6 @@ include 'Header.php';
<div class="col-md-6">
<?php
error_reporting(0);
if (isset($_SESSION['info_Courses_student'])) {
echo '<hr><span class="alert alert-success" role="alert">' . $_SESSION['info_Courses_student'] . '</span>';