added menu in header
This commit is contained in:
parent
ccd57f7fdf
commit
a17652035a
@ -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: <b>'.$user.'</b></p><p class="title">Dashboard</p>
|
||||
<div class="user">
|
||||
<p class="user">User: <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
web/page.css
12
web/page.css
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user