/
head.php
159 lines (140 loc) · 2.76 KB
/
head.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<style>
ul{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li{
float: left;
}
li a{
display: block;
color: white;
padding: 14px 16px;
text-decoration: none;
}
li a:hover,.dropdown:hover .dropbtn {
background-color: #ddd;
}
li a:hover:not(.active) {
background-color: #ddd;
}
.active {
background-color: #CD5C5C;
}
.container {
position: relative;
text-align: center;
color: white;
}
.centered {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #333;
color: white;
text-align: center;
}
#panel, #flip {
padding: 5px;
text-align: center;
background-color: #e5eecc;
border: solid 1px #c3c3c3;
}
#panel {
padding: 50px;
display: none;
}
.dropdown {
float: left;
overflow: hidden;
}
.dropdown .dropbtn {
font-size: 16px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
<script src="slidedownjq.js"></script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
<?php
session_start();
if(isset($_SESSION["valid"]) && $_SESSION["valid"]=="yes"){
?>
<center><h2>Welcome Dear <?php echo $_SESSION["utype"]; ?> Office Admin!</h2></center>
<hr></br>
<ul>
<li><a class="active" href="head.php">Home</a></li>
<div class="dropdown">
<button class="dropbtn">Messages
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
<a href="inbox.php">Inbox</a>
<a href="bmsg.php">Branch Inbox</a>
<a href="newmsg.php">New Message</a>
</div>
</div>
<li><a href="logout.php">Logout</a></li>
</ul></br>
<div id="flip">Click Here To Show Your Available Features!</div></br>
<div id="panel">
<form action="hretrieve.php" method="post"><pre>
<h3>Please enter a date to show the transaction data!</h3>
Please Use The YYYY-MM-DD Format To Search!
<input type="text" name="transsearch" value="">
<input type="submit" name="datesub" value="Search" />
</pre></form>
</div>
<div class="footer">
Website originally developed!
</div>
<?php
}
else{
header("Location:logout.php");
//echo "<script>alert('Suspicious Login Attempt!');</script>";
}
?>