Script.php: improve notification message.

Bug430-Eden2
Lan Hui 2023-08-24 21:29:17 +08:00
parent 117cc0431c
commit 965d78c0c6
2 changed files with 2 additions and 2 deletions

View File

@ -903,7 +903,7 @@ if (!empty($_GET["ignoreremarking"])) {
if ($con->query($sql) === TRUE) {
$_SESSION["info_Marking"] = "Remarking Request Ignored , Submission Updated to 'Marked' status";
$_SESSION["info_Marking"] = "Remarking request ignored.";
header("Location: Submissions.php?id=" . $id . "&header=" . $header . "&total=" . $total);
} else {
echo "Error: " . $sql . "<br>" . $con->error;

View File

@ -56,7 +56,7 @@ echo "<div><a href='Courses.php?course=$url'> $header </a></div>";
error_reporting(0);
if (isset($_SESSION['info_Marking'])) {
echo '<hr><div class="alert alert-info" role="alert">' . $_SESSION['info_Marking'] . '</div>';
echo '<div class="alert alert-warning">' . $_SESSION['info_Marking'] . '</div>';
$_SESSION['info_Marking'] = null;
}