-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
133 lines (75 loc) · 3.5 KB
/
dashboard.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
<?php
require('db.php');
include("auth.php"); //include auth.php file on all secure pages ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="w3.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DASHBOARD</title>
</head>
<body class="" >
<div class="w3-sidebar w3-bar-block w3-white w3-card w3-animate-left" style="display:none" id="mySidebar">
<button onclick="w3_close()" class="w3-bar-item w3-button w3-large">Close ×</button>
<a class="w3-bar-item w3-button" href="index.php">HOME</a>
<a class="w3-bar-item w3-button" href="dashboard.php">DASHBOARD</a>
<a class="w3-bar-item w3-button" href="logout.php">LOGOUT</a>
</div>
<div class="w3-container w3-animate-right" id="main">
<?php include 'header.php';?>
<br/>
<div class="w3-bar w3-light-blue" >
<button class="w3-bar-item w3-button tablink w3-red" onclick="openCity(event,'London')">CALL OPTIONS</button>
<!-- <button class="w3-bar-item w3-button tablink" onclick="openCity(event,'Paris')">ADD OR REMOVE</button>
<button class="w3-bar-item w3-button tablink" onclick="openCity(event,'Tokyo')">NOTIFICATIONS</button>
<button class="w3-bar-item w3-button tablink" onclick="openCity(event,'tiruvuru')">SEARCH OPTIONS
</button>
<button class="w3-bar-item w3-button tablink" onclick="openCity(event,'kuppam')">LOGS</button>
</div>-->
<!--/////////////////////////////////////////-->
<div id="London" class="w3-container w3-display-container city">
<!-- <span onclick="this.parentElement.style.display='none'"
class="w3-button w3-large w3-display-topright">×</span>-->
<br/>
<div class=" w3-container w3-card w3-light-blue">
<center> <div class="w3-panel w3-round w3-white"><p> LOG OPTIONS</p></div></center>
<center> <button class="w3-btn w3-yellow w3-border" onclick="window.location.href='sort_by_date.php'"> LOG REPORTS SORT BY DATE</button></center><br/>
<center> <button class="w3-btn w3-yellow w3-border" onclick="window.location.href='show.php'">SHOW ALL REPORTS</button></center><br/>
<center> <button class="w3-btn w3-yellow w3-border" onclick="window.location.href='search_normal.php'">SEARCH REPORTS</button></center><br/>
</div>
<br/>
</div>
<script>
function openCity(evt, cityName) {
var i, x, tablinks;
x = document.getElementsByClassName("city");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < x.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" w3-red", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " w3-red";
}
</script>
<br/>
<script>
function w3_open() {
document.getElementById("main").style.marginLeft = "25%";
document.getElementById("mySidebar").style.width = "25%";
document.getElementById("mySidebar").style.display = "block";
document.getElementById("openNav").style.display = 'none';
}
function w3_close() {
document.getElementById("main").style.marginLeft = "0%";
document.getElementById("mySidebar").style.display = "none";
document.getElementById("openNav").style.display = "inline-block";
}
</script>
</div>
<?php include 'footer.php';?>
</body>
</html>