added menu in header

This commit is contained in:
chestnutit committed 2024-07-22 15:43:47 +07:00
1 parent ccd57f7fdf
commit a17652035a
2 files changed
+22 -6

No files matched your search

+10 -6
View File
@@ -1,12 +1,11 @@
<?php
require "check.php";
$user=@$_SESSION['user'];
if(empty($user)){
header('Location: login.php');
}
print('<!DOCTYPE html>
?>
<!DOCTYPE html>
<meta charset="utf-8">
<title>Stream Upload</title>
<link rel="icon" href="favicon.png">
@@ -22,8 +21,13 @@ function filename(){
name.style.fontWeight = "normal";
}
</script>
<div class="user"><p class="user">User:&nbsp;<b>'.$user.'</b></p><p class="title">Dashboard</p>
<div class="user">
<p class="user">User:&nbsp;<b><?php echo $user ?></b></p>
<div class="menu">
<a href="index.php" class="menu-item">Home</a>
<a href="dashboard.php" class="menu-item">Dashboard</a>
</div>
<form action="login.php" method="post">
<input id="logoff" type="submit" name="logoff" value="Logoff">
</form></div>');
?>
</form>
</div>
+12
View File
@@ -16,6 +16,18 @@ p.user {
margin:0;
padding:.9em;
}
.menu {
padding:.9em;
width: 100%;
box-sizing: border-box;
}
.menu-item {
font-weight: bold;
text-decoration: none;
color: #000;
padding-left: 10px;
padding-right: 10px;
}
#logoff {
margin:0;
background-color:darkorange;