Course.php: remove link under Courses.
parent
e41311dde9
commit
3270817a4b
12
Course.php
12
Course.php
|
@ -24,7 +24,7 @@ include 'Header.php';
|
|||
. " , users_table.Full_Name FROM `courses_table` INNER JOIN users_table"
|
||||
. " ON users_table.User_ID=courses_table.Lecturer_User_ID where URL='$course_url' ");
|
||||
|
||||
if(mysqli_num_rows($result)==0) {
|
||||
if(mysqli_num_rows($result) == 0) {
|
||||
|
||||
echo "No course matching the given course URL: ".$course_url;
|
||||
|
||||
|
@ -37,20 +37,17 @@ include 'Header.php';
|
|||
$academic = $row['Academic_Year'];
|
||||
$url = $row['URL'];
|
||||
$course_id = $row['Course_ID'];
|
||||
// also get teaching assistant names(if any)
|
||||
// also get teaching assistant names (if any)
|
||||
$ta_result = mysqli_query($con, "SELECT Full_Name FROM users_table where User_ID in (select TA from course_ta where Course_ID='$course_id');");
|
||||
if (mysqli_num_rows($ta_result) == 0) {
|
||||
echo " <div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF;'> <a href='~\..\Courses.php?course=$url'>
|
||||
Courses </a> > ($code) $name > Assignments <br> <span style='font-size:8pt'>Faculty: $faculty Year: $academic Lecturer: $lecturer </span></div> ";
|
||||
echo " <div class='alert' style='border-bottom:2px solid #eee;'> Courses > ($code) $name > Assignments <br> <span style='font-size:8pt'>Faculty: $faculty Year: $academic Lecturer: $lecturer </span></div> ";
|
||||
} else {
|
||||
$ta_name = "";
|
||||
while ($row = mysqli_fetch_assoc($ta_result)) {
|
||||
$ta_name = $ta_name.$row['Full_Name']." ";
|
||||
}
|
||||
$ta_name = trim ($ta_name);
|
||||
echo " <div class='alert' style='margin-left:20px;border-bottom:2px solid #1D91EF;'> <a href='~\..\Courses.php?course=$url'>
|
||||
Courses > $name ($code) > Lab Reports <br> <span style='font-size:8pt'>Faculty: $faculty | Year: $academic | Lecturer: $lecturer | Teaching Assistant: $ta_name </span>
|
||||
</a></div> ";
|
||||
echo " <div class='alert' style='border-bottom:2px solid #eee;'> Courses > ($code) $name > Assignments <br> <span style='font-size:8pt'>Faculty: $faculty Year: $academic Lecturer: $lecturer Teaching Assistant: $ta_name </span></div> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -540,6 +537,7 @@ where course_group_members_table.Course_Group_id=$id");
|
|||
|
||||
</div>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/themes/base/jquery-ui.min.css" integrity="sha512-ELV+xyi8IhEApPS/pSj66+Jiw+sOT1Mqkzlh8ExXihe4zfqbWkxPRi8wptXIO9g73FSlhmquFlUOuMSoXz5IRw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.13.2/jquery-ui.min.js" integrity="sha512-57oZ/vW8ANMjR/KQ6Be9v/+/h6bq9/l3f0Oc7vn6qMqyhvPd1cvKBRWWpzu0QoneImqr2SkmO4MSqU+RpHom3Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
|
|
Loading…
Reference in New Issue