-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
101 lines (84 loc) · 3.83 KB
/
admin.php
File metadata and controls
101 lines (84 loc) · 3.83 KB
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
<?php
session_start();
include("../../db.php");
error_reporting(0);
if(isset($_GET['action']) && $_GET['action']!="" && $_GET['action']=='delete')
{
$order_id=$_GET['order_id'];
/*this is delet query*/
mysqli_query($con,"delete from orders where order_id='$order_id'")or die("delete query is incorrect...");
}
///pagination
$page=$_GET['page'];
if($page=="" || $page=="1")
{
$page1=0;
}
else
{
$page1=($page*10)-10;
}
include "sidenav.php";
include "topheader.php";
?>
<!-- End Navbar -->
<div class="content">
<div class="container-fluid">
<!-- your content here -->
<div class="col-md-14">
<div class="card ">
<div class="card-header card-header-primary">
<h4 class="card-title">Activity / Page <?php echo $page;?> </h4>
</div>
<div class="card-body">
<div class="table-responsive ps">
<table class="table table-hover tablesorter " id="">
<thead class=" text-primary">
<tr><th>User_id</th><th>User_Email</th><th>Mobile</th><th>Logged_in</th><th>Logout</th><th></th>
</tr></thead>
<tbody>
<?php
$result=mysqli_query($con,"select user_id, email,mobile,last_login,last_logout from user_info Limit $page1,10")or die ("query 1 incorrect.....");
while(list($user_id,$email,$mobile,$last_login,$last_logout)=mysqli_fetch_array($result))
{
echo "<tr><td>$user_id</td><td>$email</td><td>$mobile</td><td>$last_login</td><td>$last_logout</td>
</tr>";
}
?>
</tbody>
</table >
<div class="ps__rail-x" style="left: 0px; bottom: 0px;"><div class="ps__thumb-x" tabindex="0" style="left: 0px; width: 0px;"></div></div><div class="ps__rail-y" style="top: 0px; right: 0px;"><div class="ps__thumb-y" tabindex="0" style="top: 0px; height: 0px;"></div></div></div>
</div>
</div>
</div>
<div class="col-md-14">
<div class="card ">
<div class="card-header card-header-primary">
<h4 class="card-title">Activity / Supplier</h4>
</div>
<div class="card-body">
<div class="table-responsive ps">
<table class="table table-hover tablesorter " id="">
<thead class=" text-primary">
<tr><th>User_id</th><th>User_Email</th><th>Mobile</th><th>Logged_in</th><th>Logout</th><th></th>
</tr></thead>
<tbody>
<?php
$result=mysqli_query($con,"select user_id, email,mobile,login_time,logout_time from user_info Limit $page1,10")or die ("query 1 incorrect.....");
while(list($user_id,$email,$mobile,$last_login,$last_logout)=mysqli_fetch_array($result))
{
echo "<tr><td>$user_id</td><td>$email</td><td>$mobile</td><td>$last_login</td><td>$last_logout</td>
</tr>";
}
?>
</tbody>
</table >
<div class="ps__rail-x" style="left: 0px; bottom: 0px;"><div class="ps__thumb-x" tabindex="0" style="left: 0px; width: 0px;"></div></div><div class="ps__rail-y" style="top: 0px; right: 0px;"><div class="ps__thumb-y" tabindex="0" style="top: 0px; height: 0px;"></div></div></div>
</div>
</div>
</div>
</div>
</div>
<?php
include "footer.php";
?>