/
adminhome.php
117 lines (103 loc) · 2.37 KB
/
adminhome.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
<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 {
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;
}
</style>
<script src="slidedownjq.js"></script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
<?php
if(isset($_COOKIE["admin"])){
?>
<center><h2>Welcome Dear Admin!</h2></center>
<hr></br>
<ul>
<li><a class="active" href="adminhome.php">Your home</a></li>
<li><a href="adminprofile.php">Profile</a></li>
<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="proserver.php" method="post"><pre>
<h3>Please enter a project id to check the status</h3>
<input type="text" name="projectsearch" value=""> <input type="submit" name="projectsub" value="Search" />
</pre></form>
<form action="aduserinfo.php" method="post"><pre>
<h3>Please enter an user id to check the information</h3>
<input type="text" name="usersearch" value=""> <input type="submit" name="usersub" value="Search" />
</pre></form>
<form action="newproserver.php" method="post"><pre>
<h3>Create a new project</h3>
Project ID: <input type="text" name="newProjectId" value="">
Client Username: <input type="text" name="clientName" value="">
<input type="submit" name="newProjectSub" value="Create Project" />
</pre></form>
</div>
<div class="footer">
Website originally developed! E-mail: ourmail@mail.com</br>
Phone: +99123422 Address: Address here</br>
</div>
<?php
}
else{
header("Location:logout.php");
//echo "<script>alert('Suspicious Login Attempt!');</script>";
}
?>