Submissions.php: rename variables

Bug430-Eden2
Lan Hui 2023-09-03 20:31:46 +08:00
parent ecce12e1f3
commit d6365377ef
1 changed files with 6 additions and 6 deletions

View File

@ -29,9 +29,9 @@ $resultx1 = mysqli_query($con, "SELECT Lab_Report_ID, Title, lab_reports_table.C
INNER JOIN courses_table ON courses_table.Course_ID=lab_reports_table.Course_ID
WHERE Lab_Report_ID=$id");
while ($row = mysqli_fetch_assoc($resultx1)) {
$Report_Type = $row['Type'];
$report_type = $row['Type'];
$c_id = $row['Course_ID'];
$Report_Title = $row['Title'];
$report_title = $row['Title'];
$url = $row['URL'];
}
?>
@ -109,7 +109,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
<?php
if ($Report_Type == "Group") {
if ($report_type == "Group") {
$result1 = mysqli_query($con, "SELECT Submission_ID, Submission_Date, lab_report_submissions.Lab_Report_ID, lab_report_submissions.Course_Group_id, Attachment1, Notes, Attachment2, Attachment3, Attachment4, Marks, lab_report_submissions.Status, Title, course_groups_table.Group_Name, course_groups_table.Group_Leader, users_table.Full_Name, users_table.Student_id
FROM lab_report_submissions
LEFT JOIN users_table ON users_table.Student_ID=lab_report_submissions.Student_id
@ -187,7 +187,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
<?php
if ($Report_Type == "Group") {
if ($report_type == "Group") {
$result = mysqli_query($con, "SELECT Submission_ID, Visibility, Submission_Date, lab_report_submissions.Lab_Report_ID, lab_report_submissions.Course_Group_id, Attachment1, Notes, Attachment2, Attachment3, Attachment4, Marks, lab_report_submissions.Status, Title, course_groups_table.Group_Name
FROM lab_report_submissions
LEFT JOIN course_groups_table ON course_groups_table.Course_Group_id=lab_report_submissions.Course_Group_id
@ -206,7 +206,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
} else {
echo "<h3><a href='~\..\Script.php?exportgrade=true&lab=$id&lab_name=$Report_Title'><i class='fa fa-book'></i> Export grades</a></h3>";
echo "<h3><a href='~\..\Script.php?exportgrade=true&lab=$id&lab_name=$report_title'><i class='fa fa-book'></i> Export grades</a></h3>";
while ($row = mysqli_fetch_assoc($result)) {
$title = $row['Title'];
@ -270,7 +270,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
<?php
if ($Report_Type == "Group") {
if ($report_type == "Group") {
$resulty = mysqli_query($con, "SELECT Submission_ID, Submission_Date, lab_report_submissions.Lab_Report_ID, lab_report_submissions.Course_Group_id, Attachment1, Notes, Attachment2, Attachment3, Attachment4, lab_report_submissions.Marks, lab_report_submissions.Status, Title, course_groups_table.Group_Name
FROM lab_report_submissions
LEFT JOIN course_groups_table ON course_groups_table.Course_Group_id=lab_report_submissions.Course_Group_id