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