-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_index.php
More file actions
204 lines (164 loc) · 7.11 KB
/
admin_index.php
File metadata and controls
204 lines (164 loc) · 7.11 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lumino - Dashboard</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/datepicker3.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/common.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/council_index.js"></script>
<meta charset="utf-8" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta content="Semantic-UI-Forest, collection of design, themes and templates for Semantic-UI." name="description" />
<meta content="Semantic-UI, Theme, Design, Template" name="keywords" />
<meta content="PPType" name="author" />
<meta content="#ffffff" name="theme-color" />
<link href="static/dist/semantic-ui/semantic.min.css" rel="stylesheet" type="text/css" />
<link href="static/stylesheets/default.css" rel="stylesheet" type="text/css" />
<link href="static/stylesheets/pandoc-code-highlight.css" rel="stylesheet" type="text/css" />
<script src="static/dist/jquery/jquery.min.js"></script>
<script src="js/admin.js"></script>
<!--Custom Font-->
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse"><span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span></button>
<a class="navbar-brand" href="#"><span>Lumino</span>Admin</a>
<ul class="nav navbar-top-links navbar-right">
<li class="dropdown"><a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
<em class="fa fa-envelope"></em><span class="label label-danger">15</span>
</a>
<ul class="dropdown-menu dropdown-messages">
<li>
<div class="dropdown-messages-box"><a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="http://placehold.it/40/30a5ff/fff">
</a>
<div class="message-body"><small class="pull-right">3 mins ago</small>
<a href="#"><strong>John Doe</strong> commented on <strong>your photo</strong>.</a>
<br /><small class="text-muted">1:24 pm - 25/03/2015</small></div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="dropdown-messages-box"><a href="profile.html" class="pull-left">
<img alt="image" class="img-circle" src="http://placehold.it/40/30a5ff/fff">
</a>
<div class="message-body"><small class="pull-right">1 hour ago</small>
<a href="#">New message from <strong>Jane Doe</strong>.</a>
<br /><small class="text-muted">12:27 pm - 25/03/2015</small></div>
</div>
</li>
<li class="divider"></li>
<li>
<div class="all-button"><a href="#">
<em class="fa fa-inbox"></em> <strong>All Messages</strong>
</a></div>
</li>
</ul>
</li>
<li class="dropdown"><a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
<em class="fa fa-bell"></em><span class="label label-info">5</span>
</a>
<ul class="dropdown-menu dropdown-alerts">
<li><a href="#">
<div><em class="fa fa-envelope"></em> 1 New Message
<span class="pull-right text-muted small">3 mins ago</span></div>
</a></li>
<li class="divider"></li>
<li><a href="#">
<div><em class="fa fa-heart"></em> 12 New Likes
<span class="pull-right text-muted small">4 mins ago</span></div>
</a></li>
<li class="divider"></li>
<li><a href="#">
<div><em class="fa fa-user"></em> 5 New Followers
<span class="pull-right text-muted small">4 mins ago</span></div>
</a></li>
</ul>
</li>
</ul>
</div>
</div><!-- /.container-fluid -->
</nav>
<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
<div class="profile-sidebar">
<div class="profile-userpic">
<img src="http://placehold.it/50/30a5ff/fff" class="img-responsive" alt="">
</div>
<div class="profile-usertitle">
<div class="profile-usertitle-name">Username</div>
<div class="profile-usertitle-status"><span class="indicator label-success"></span>Online</div>
</div>
<div class="clear"></div>
</div>
<div class="divider"></div>
<ul class="nav menu">
<li class="active"><a id="admin_index" href="#" "><em class="fa fa-calendar"> </em> Events Requests</a></li>
<li><a id="confirmed_events" onclick="load(this.id)" ><em class="fa fa-calendar"> </em> Confirmed Events</a></li>
<li><a id="pending_events" onclick="load(this.id)" ><em class="fa fa-calendar"> </em> Pending Events</a></li>
<li><a href="logout.php"><em class="fa fa-power-off"> </em> Logout</a></li>
</ul>
</div><!--/.sidebar-->
<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
<div class="row">
<ol class="breadcrumb">
<li><a href="#">
<em class="fa fa-home"></em>
</a></li>
<li class="active">Dashboard</li>
</ol>
</div><!--/.row-->
<div id="add_here">
<div class="row">
</div>
<div class="row" style="margin-top:40px">
<table class="ui single line striped selectable center aligned table">
<thead><tr><th>#Event No</th><th>Event Name</th><th>Committee Name</th><th>Date</th><th>Capacity</th><th>Timing</th><th>#Operation1</th><th>#Operation2</th></tr></thead>
<tbody>
<?php
require("db.php");
$data=mysqli_query($con,"SELECT * FROM temporary_table");
if(($data) && (mysqli_num_rows($data) >0)){
//getting data and generating a row
while($row=mysqli_fetch_assoc($data))
{
$order=$row['event_no']; ///event id
$studentid=$row['studentid'];
echo("<tr><td>".$row['event_no']."</td><td>".$row['event_name']."</td><td>".$row['committee_name']."</td><td>".$row['date']."</td><td>".$row['capacity']."</td><td>".$row['timing']."</td><td><a class='ui tiny button blue' href='approve.php?accept=$order'>Approve</a></td><td><a class='ui tiny button orange' href='load.php?reject=$order'>Reject</a></td></tr>");
}
}
else{
echo "<tr><td colspan='9'>No records match found! </td></tr>";
}
mysqli_close($con);
?>
</tbody>
</table>
</div>
</div>
</div>
//end of Php
?>
<script src="js/bootstrap.min.js"></script>
<script src="js/chart.min.js"></script>
<script src="js/chart-data.js"></script>
<script src="js/easypiechart.js"></script>
<script src="js/easypiechart-data.js"></script>
<script src="js/bootstrap-datepicker.js"></script>
<script src="js/custom.js"></script>
</body>
</html>