From 443d76b639439ec2d50f58233da75c45c3852ac0 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Mon, 31 Jul 2023 17:10:53 +0800 Subject: [PATCH] Make Header.php look better --- Header.php | 327 ++++++++++++++++++++++++++--------------------------- 1 file changed, 163 insertions(+), 164 deletions(-) diff --git a/Header.php b/Header.php index 9268f16..1bb45e9 100644 --- a/Header.php +++ b/Header.php @@ -8,215 +8,214 @@ $con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr"); // Check database connection if (mysqli_connect_errno()) { - echo "Failed to connect to MySQL: " . mysqli_connect_error(); + echo "Failed to connect to MySQL: " . mysqli_connect_error(); } - ?> - + - LRR - Lab Report Repository - - - - + LRR - Lab Report Repository + + + + - - - + + + - + - + - + - - + function blockUser(id, status) { + if (!confirm('Are you sure you want to change user status?')) { + return; + } + window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status; + } +