-
Notifications
You must be signed in to change notification settings - Fork 1
/
adminfound.php
114 lines (106 loc) · 3.36 KB
/
adminfound.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
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>
Admin Area (flown things)
</title>
</head>
<body class="blue-grey darken-4">
<nav>
<div class="nav-wrapper blue-grey darken-3 ">
<a href="#" class="brand-logo center " style="text-transform: uppercase;overflow: hidden;">Admin Area <span
class="hide-on-med-and-down"></span> </a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li style="margin-right: 0px;" ><a class="btn teal" href="index.php">home</a> </li>
<li style="margin-left: 0px" ><a class="btn teal" href="logut.php">logout</a> </li>
<!-- <li><a href="badges.html">Components</a></li>
<li><a href="collapsible.html">JavaScript</a></li>-->
</ul>
</div>
</nav>
<br>
<style>
.row {
margin-bottom: 0px;
}
.xx{
overflow-y:scroll;
height: 350px;
display:block;
}
</style>
<?php
require ("session.php");
require ("config.php");
require ("functions.php");
auth_admin();
$tu=t_count('user');
$tl=tp_count('lthings');
$tf=tp_count('fthings');
$td=draft_post_count();
?>
<div class="row" style="margin: 0px;">
<div class="col s12 m12 l3">
<div class="card blue darken-2">
<div class="card-content white-text">
<span class="card-title">Total User's</span>
<?php echo"<p>$tu</p>"?>
<span><a href="admin.php" class=" btn">VIEW</a></span>
</div>
</div>
</div>
<div class="col s12 m12 l3">
<div class="card blue darken-2">
<div class="card-content white-text">
<span class="card-title"> Lost post's</span>
<?php echo"<p>$tl</p>"?>
<span><a href="adminlost.php" class="btn">VIEW</a></span>
</div>
</div>
</div>
<div class="col s12 m12 l3">
<div class="card blue darken-2">
<div class="card-content white-text">
<span class="card-title"> Found post's</span>
<?php echo"<p>$tf</p>"?>
<span><a href="adminfound.php" class=" disabled btn">VIEW</a></span>
</div>
</div>
</div>
<div class="col s12 m12 l3">
<div class="card blue darken-2">
<div class="card-content white-text">
<span class="card-title">Drafted posts</span>
<?php echo"<p>$td</p>"?>
<span><a href="admindraft.php" class=" btn">VIEW</a></span>
</div>
</div>
</div>
</div><!--main bar-->
<div class="container" style="margin-top: 0px;">
<div class="white-text blue-grey darken-1 xx z-depth-1" style="border-radius: 5px;">
<table class="centered responsive-table ">
<div class="center-align flow-text">Found posts</div>
<thead>
<tr>
<th>post id</th>
<th>user</th>
<th>Catageory</th>
<th>date</th>
<th>know more</th>
</tr>
</thead>
<tbody>
<?php
get_post_list("found");
?>
</tbody>
</table>
<br>
</div>
</div>
<br>
</body>
</html>