Make Header.php look better

Bug430-Eden2
Lan Hui 2023-07-31 17:10:53 +08:00
parent 24ed22e5b8
commit 443d76b639
1 changed files with 163 additions and 164 deletions

View File

@ -10,14 +10,13 @@ $con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr");
if (mysqli_connect_errno()) { if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error(); echo "Failed to connect to MySQL: " . mysqli_connect_error();
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>LRR - Lab Report Repository</title> <title>LRR - Lab Report Repository</title>
<link href="./css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="./css/bootstrap.min.css" rel="stylesheet" type="text/css" />
@ -26,7 +25,7 @@ if (mysqli_connect_errno()) {
and any new css class can be added there. and any new css class can be added there.
* The reason is to make the css code reusable. * The reason is to make the css code reusable.
* the css file is used by submissions.php * the css file is used by submissions.php
--> -->
<link href = "./css/main.css" rel = "stylesheet" type = "text/css" /> <link href = "./css/main.css" rel = "stylesheet" type = "text/css" />
<script src="./css/jquery.min.js" type="text/javascript"></script> <script src="./css/jquery.min.js" type="text/javascript"></script>
@ -143,9 +142,9 @@ if (mysqli_connect_errno()) {
</style> </style>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="padding-left:150px;padding-right:150px;margin:auto;">
<a class="navbar-brand" href="~\..\index.php"> <img src="logo.png" style="width:30px;height:30px;"> LRR </a> <a class="navbar-brand" href="~\..\index.php"> <img src="logo.png" style="width:30px;height:30px;"> LRR </a>
@ -204,7 +203,7 @@ if (mysqli_connect_errno()) {
<script> <script>
function updatePass(id) { function updatePass(id) {
var pass = prompt("Enter your new password : ", "Enter a strong password"); const pass = prompt("Enter your new password : ", "Enter a strong password");
if (!confirm('Are you sure you want to reset your password?')) { if (!confirm('Are you sure you want to reset your password?')) {
return; return;