-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgreeting.php
116 lines (104 loc) · 2.06 KB
/
greeting.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
session_start();
?>
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<title>Home</title>
<link rel="icon" type="image/gif/png" href="homelogo.png">
<style>
*{
margin: 0px;
padding: 0px;
}
body {margin:0px;}
button {
margin-left: 11px;
border: 1px blue;
background: blue;
margin-bottom: 7px;
border-radius: 5px;
}
button a{
color: #fff;
text-decoration: none;
}
input{
width: 300px;
margin: 4px;
padding: 2px;
font-size: 14px;
margin-left: 10px;
}
label{
font-size: 18px;
margin-left: 10px;
}
.navbar {
overflow: hidden;
font-size:30px;
background-color: none;
}
.navbar a {
float: left;
font-size: 16px;
text-align: center;
padding: 14px 16px;
text-decoration: none;
color: black;
}
.active {
background-color: green;
color: white;
}
.navbar a:hover {
background-color: blue;
color: #fff;
}
li{
float: left;
list-style: none;
padding: none;
margin: 0px;
}
.a {
border-radius: 25px;
}
.logout{
}
.a a:hover {
background-color: black;
}
.greeting{
color:black;
font-size:25px;
text-align: center;
margin:4px;
}
</style>
<script>
</script>
</head>
<body>
<header>
<img src="logogo.png" style="height:20%;overflow:hidden;width:100%;">
<div class="navbar">
<ul>
<li><a href="home.php" class="active a">Home</a></li>
<li><a href="mydiary.php" class="a">Diary</a></li>
<li><a href="todo.php" class="a">To-Do List</a></li>
<li><a href="myimages.php" class="a">My Image</a></li>
<li><a href="feedback.php" class="a">Feedback</a></li>
<li style="float:right;"><a href="includes/logout.inc.php" class="a">Logout</a></li>
</ul>
</div>
<div class="greeting">
<?php
if(isset($_SESSION['u_id'])){
echo "Welcome ".$_SESSION['u_first'];
} ?>
</div>
</header>
</body>
</html>