-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinformation.php
332 lines (258 loc) · 16.2 KB
/
information.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
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<?php
require_once('../include/admin_class.php');
require_once('../include/information_class.php');
$admin = new admin();
$information = new information();
$admin->globals();
$token = $_REQUEST['token'];
$admin->check_admin_login();
$admin->check_admin_token($token);
if($_SERVER['REQUEST_METHOD'] == "POST"){
$tkn = $_POST['token'];
$delecte_id = $_POST['check[]'];
$information->delete_information($delecte_id,$tkn);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Supr admin</title>
<meta name="author" content="SuggeElson" />
<meta name="description" content="Supr admin template - new premium responsive admin template. This template is designed to help you build the site administration without losing valuable time.Template contains all the important functions which must have one backend system.Build on great twitter boostrap framework" />
<meta name="keywords" content="admin, admin template, admin theme, responsive, responsive admin, responsive admin template, responsive theme, themeforest, 960 grid system, grid, grid theme, liquid, masonry, jquery, administration, administration template, administration theme, mobile, touch , responsive layout, boostrap, twitter boostrap" />
<meta name="application-name" content="Supr admin template" />
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Le styles -->
<!-- Use new way for google web fonts
http://www.smashingmagazine.com/2012/07/11/avoiding-faux-weights-styles-google-web-fonts -->
<!-- Headings -->
<!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css' /> -->
<!-- Text -->
<!-- <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css' /> -->
<!--[if lt IE 9]>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Droid+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.googleapis.com/css?family=Droid+Sans:700" rel="stylesheet" type="text/css" />
<![endif]-->
<!-- Core stylesheets do not remove -->
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
<link href="css/supr-theme/jquery.ui.supr.css" rel="stylesheet" type="text/css"/>
<link href="css/icons.css" rel="stylesheet" type="text/css" />
<!-- Plugin stylesheets -->
<link href="plugins/misc/qtip/jquery.qtip.css" rel="stylesheet" type="text/css" />
<link href="plugins/forms/uniform/uniform.default.css" type="text/css" rel="stylesheet" />
<link href="plugins/tables/dataTables/jquery.dataTables.css" type="text/css" rel="stylesheet" />
<!-- Main stylesheets -->
<link href="css/main.css" rel="stylesheet" type="text/css" />
<!-- Custom stylesheets ( Put your own changes here ) -->
<link href="css/custom.css" rel="stylesheet" type="text/css" />
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/apple-touch-icon-144-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/apple-touch-icon-114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/apple-touch-icon-72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon-57-precomposed.png" />
<script type="text/javascript">
//adding load class to body and hide page
document.documentElement.className += 'loadstate';
</script>
<body>
<?php include('header.php'); ?>
<div id="wrapper">
<?php include('side_bar.php'); ?>
<div id="content" class="clearfix">
<div class="heading">
<h3 >Information page</h3>
<div class="resBtnSearch">
<a href="#"><span class="icon16 icomoon-icon-search-3"></span></a>
</div>
<ul class="breadcrumb">
<li>You are here:</li>
<li>
<a href="#" class="tip" title="back to dashboard">
<span class="icon16 icomoon-icon-screen-2"></span>
</a>
<span class="divider">
<span class="icon16 icomoon-icon-arrow-right-2"></span>
</span>
</li>
<li class="active">Information page</li>
</ul>
</div><!-- End .heading-->
<!-- Build page from here: -->
<div class="row-fluid">
<div class="span12">
<div class="box gradient">
<div class="title">
<h4>
<span>All Information </span>
<a href="#"onclick="confirm_delete()" id="delete"><span class=" label btn btn-danger btn-mini">Delete</span></a>
<a href="add_information.php<?php echo $_['url_prm']; ?>"><span class="label btn btn-primary btn-mini">Add New</span></a>
</h4>
</div>
<div class="content noPad clearfix">
<form method="post" id="form-delete" action="<?php echo $_['action']; ?>">
<input type="hidden" name="token" value="<?php echo $token; ?>" />
<table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered " width="500%" id="checkAll">
<thead>
<tr>
<th id="masterCh" class="ch"><input type="checkbox" name="checkbox" value="all" class="styled" /></th>
<th>ID</th>
<th>Information Title</th>
<th>Sort Order</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php $row = $information->information_list();foreach($row as $key){?>
<tr class="even gradeC">
<td class="chChildren"><input type="checkbox" name="check_list[]" value="<?php echo $key['id']; ?>" class="styled" /></td>
<td><?php echo $key['id']; ?> </td>
<td><?php echo $key['it']; ?></td>
<td><?php $key['is']; ?> </td>
<td>
<div class="controls center">
<a href="update_information.php?info_id=<?php echo $key['id'];?>&token=<?php echo $token;?>" title="Edit task" class="tip"><span class="icon12 icomoon-icon-pencil"></span></a>
</div>
</td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr>
<th id="masterCh" class="ch"><input type="checkbox" name="checkbox" value="all" class="styled" /></th>
<th>ID</th>
<th>Information Title</th>
<th>Sort Order</th>
<th>Actions</th>
</tr>
</tfoot>
</table>
</form>
</div>
</div><!-- End .box -->
</div><!-- End .span12 -->
</div>
<!-- Page end here -->
<div class="modal fade hide" id="myModal1">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span class="icon12 minia-icon-close"></span></button>
<h3>Chat layout</h3>
</div>
<div class="modal-body">
<ul class="messages">
<li class="user clearfix">
<a href="#" class="avatar">
<img src="images/avatar2.jpeg" alt="" />
</a>
<div class="message">
<div class="head clearfix">
<span class="name"><strong>Lazar</strong> says:</span>
<span class="time">25 seconds ago</span>
</div>
<p>
Time to go i call you tomorrow.
</p>
</div>
</li>
<li class="admin clearfix">
<a href="#" class="avatar">
<img src="images/avatar3.jpeg" alt="" />
</a>
<div class="message">
<div class="head clearfix">
<span class="name"><strong>Sugge</strong> says:</span>
<span class="time">just now</span>
</div>
<p>
OK, have a nice day.
</p>
</div>
</li>
<li class="sendMsg">
<form class="form-horizontal" action="#">
<textarea class="elastic" id="textarea1" rows="1" placeholder="Enter your message ..." style="width:98%;"></textarea>
<button type="submit" class="btn btn-info marginT10">Send message</button>
</form>
</li>
</ul>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
</div>
</div>
</div>
</div><!-- End .span9 -->
</div><!-- End #wrapper .row -->
</div><!-- End .container -->
<!-- footer area -->
<div id="footer_area">
<div class="footer_area_inner">
<?php include 'footer.php';?>
</div>
</div><!-- End -->
<!--/ footer area -->
<!-- Important plugins put in all pages -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap/bootstrap.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<!-- Charts plugins -->
<script type="text/javascript" src="plugins/charts/sparkline/jquery.sparkline.min.js"></script><!-- Sparkline plugin -->
<!-- Misc plugins -->
<script type="text/javascript" src="plugins/misc/qtip/jquery.qtip.min.js"></script><!-- Custom tooltip plugin -->
<script type="text/javascript" src="plugins/misc/totop/jquery.ui.totop.min.js"></script>
<!-- Search plugin -->
<script type="text/javascript" src="plugins/misc/search/tipuesearch_set.js"></script>
<script type="text/javascript" src="plugins/misc/search/tipuesearch_data.js"></script><!-- JSON for searched results -->
<script type="text/javascript" src="plugins/misc/search/tipuesearch.js"></script>
<!-- Form plugins -->
<script type="text/javascript" src="plugins/forms/watermark/jquery.watermark.min.js"></script>
<script type="text/javascript" src="plugins/forms/uniform/jquery.uniform.min.js"></script>
<!-- Fix plugins -->
<script type="text/javascript" src="plugins/fix/ios-fix/ios-orientationchange-fix.js"></script>
<!-- Table plugins -->
<script type="text/javascript" src="plugins/tables/dataTables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="plugins/tables/responsive-tables/responsive-tables.js"></script><!-- Make tables responsive -->
<!-- Important Place before main.js -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
<script type="text/javascript" src="plugins/fix/touch-punch/jquery.ui.touch-punch.min.js"></script><!-- Unable touch for JQueryUI -->
<!-- Init plugins -->
<script type="text/javascript" src="js/main.js"></script><!-- Core js functions -->
<script type="text/javascript" src="js/datatable.js"></script><!-- Init plugins only for page -->
<script type="text/javascript" src="js/widgets.js"></script><!-- Init plugins only for page -->
<script src="js/jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="js/datatable.js"></script><!-- Init plugins only for page -->
<script>
$(document).ready(function() {
$('#selecctall').click(function(event) { //on click
if(this.checked) { // check select status
$('.checkbox1').each(function() { //loop through each checkbox
this.checked = true; //select all checkboxes with class "checkbox1"
});
}else{
$('.checkbox1').each(function() { //loop through each checkbox
this.checked = false; //deselect all checkboxes with class "checkbox1"
});
}
});
});
function confirm_delete() {
var txt;
var r = confirm("Are You Sure to do this?");
if (r == true) {
$( "#form-delete" ).submit();
}
}
</script>
</body>
</html>