-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin_user.php
168 lines (158 loc) · 7.41 KB
/
admin_user.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
160
161
162
163
164
165
166
167
168
<?php include('adminserver.php');
//IF user is not logged in,then you cannot access this page
if(empty($_SESSION['adminid'])){
header('location: admin_login.php');
}
else{
if(((time() - $_SESSION['loggedin_time']) > $login_session_duration)){
unset($_SESSION['success']);
unset($_SESSION['admin']);
header('location: admin_login.php');
session_destroy();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
<link rel="icon" type="image/png" href="img/tax.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Tax Calculator and Submission</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
<!-- Fonts and icons -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
<!-- CSS Files -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link href="assets/css/light-bootstrap-dashboard.css?v=2.0.1" rel="stylesheet" />
<!-- CSS Just for demo purpose, don't include it in your project -->
<link href="assets/css/demo.css" rel="stylesheet" />
</head>
<body>
<div class="wrapper">
<div class="sidebar" data-image="assets/img/sidebar-5.jpg">
<!--
Tip 1: You can change the color of the sidebar using: data-color="purple | blue | green | orange | red"
Tip 2: you can also add an image using data-image tag
-->
<div class="sidebar-wrapper">
<div class="logo">
<a href="index.php" class="simple-text">
Tax Calculator and Submission
</a>
</div>
<ul class="nav">
<li>
<a class="nav-link" href="admin_dashboard.php">
<i class="nc-icon nc-chart-pie-35"></i>
<p>Dashboard</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin_return_list.php">
<i class="nc-icon nc-paper-2"></i>
<p>Returns Detail</p>
</a>
</li>
<li>
<a class="nav-link" href="userlist.php">
<i class="nc-icon nc-circle-09"></i>
<p>User Details</p>
</a>
</li>
<li >
<a class="nav-link" href="edit_admin.php">
<i class="nc-icon nc-icon nc-notes"></i>
<p>Edit User</p>
</a>
</li>
</ul>
</div>
</div>
<div class="main-panel">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg " color-on-scroll="500">
<div class=" container-fluid ">
<a class="navbar-brand" href="#"> Admin</a>
<button href="" class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" aria-controls="navigation-index" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-bar burger-lines"></span>
<span class="navbar-toggler-bar burger-lines"></span>
<span class="navbar-toggler-bar burger-lines"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navigation">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="edit_admin.php">
<span class="no-icon">Account</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin_return_list.php?adminlogout='1'">
<span class="no-icon">Log out</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- End Navbar -->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="card strpied-tabled-with-hover">
<div class="col-lg-10 mx-auto text-center"><br>
<img src="img/tax.png" alt="Tax Calculator and Submission" height="100" width="120"><br><br>
<h2 class="text-uppercase">
<strong>Tax Calculator And<br> Submission</strong>
</h2><hr>
</div>
<div class="card-header ">
<h4 class="card-title">Admin User ID</h4>
</div>
<div class="card-body table-full-width table-responsive">
<table class="table table-hover table-striped">
<thead>
<th>User ID</th>
</thead>
<tbody>
<?php
$con=mysqli_connect('localhost','root','','tax');
$q1="select * from admin";
$result=mysqli_query($con,$q1);
while ($row = $result->fetch_assoc()) {
echo "<tr><td>".$row['adminid']."</td></tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<nav>
<p class="copyright text-center">
Copyright © Tax Calculator And Submission 2018
</p>
</nav>
</div>
</footer>
</div>
</div>
</body>
<!-- Core JS Files -->
<script src="assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="assets/js/core/bootstrap.min.js" type="text/javascript"></script>
<!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
<script src="assets/js/plugins/bootstrap-switch.js"></script>
<!-- Control Center for Light Bootstrap Dashboard: scripts for the example pages etc -->
<script src="assets/js/light-bootstrap-dashboard.js?v=2.0.1" type="text/javascript"></script>
</html>