-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
474 lines (438 loc) · 23 KB
/
index.php
File metadata and controls
474 lines (438 loc) · 23 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
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
<?php include "conn.php"; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Perpus2.0 Project</title>
<link rel="icon" href="icon/dd.webp" />
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<meta name="description" content="Perpustakaan Berbasis Web">
<meta name="keywords" content="Perpustakaan, perpus, online, website">
<meta name="author" content="Adzkia Adi"/>
<!-- bootstrap 3.0.2 -->
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- font Awesome -->
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- Morris chart -->
<link href="css/morris/morris.css" rel="stylesheet" type="text/css" />
<!-- jvectormap -->
<link href="/css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
<!-- Date Picker -->
<link href="css/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
<!-- fullCalendar -->
<!-- <link href="css/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css" /> -->
<!-- Daterange picker -->
<link href="css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<!-- iCheck for checkboxes and radio inputs -->
<link href="css/iCheck/all.css" rel="stylesheet" type="text/css" />
<!-- bootstrap wysihtml5 - text editor -->
<!-- <link href="css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" /> -->
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<!-- Theme style -->
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
// 1 detik = 1000
window.setTimeout("waktu()",1000);
function waktu() {
var tanggal = new Date();
setTimeout("waktu()",1000);
document.getElementById("output").innerHTML = tanggal.getHours()+":"+tanggal.getMinutes()+":"+tanggal.getSeconds();
}
</script>
<script language="JavaScript">
var tanggallengkap = new String();
var namahari = ("Minggu Senin Selasa Rabu Kamis Jumat Sabtu");
namahari = namahari.split(" ");
var namabulan = ("Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember");
namabulan = namabulan.split(" ");
var tgl = new Date();
var hari = tgl.getDay();
var tanggal = tgl.getDate();
var bulan = tgl.getMonth();
var tahun = tgl.getFullYear();
tanggallengkap = namahari[hari] + ", " +tanggal + " " + namabulan[bulan] + " " + tahun;
var popupWindow = null;
function centeredPopup(url,winName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
popupWindow = window.open(url,winName,settings)
}
</script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<style type="text/css">
</style>
</head>
<body class="skin-black">
<!-- header logo: style can be found in header.less -->
<header class="header">
<a href="index.php" class="logo">
PerPusWeb
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<div class="navbar-right">
<ul class="nav navbar-nav">
<!-- Messages: style can be found in dropdown.less-->
<li class="messages-menu">
<table width="1000">
<tr>
<td width="200"><div class="Tanggal"><h4><script language="JavaScript">document.write(tanggallengkap);</script></div></h4></td>
<td align="left" width="30"> - </td>
<td align="left" width="620"> <h4><div id="output" class="jam" ></div></h4></td>
</tr>
</table>
</li>
<li class="dropdown messages-menu">
<a href="#" data-toggle="modal" data-target="#contact">
<i class="fa fa-envelope"></i>
<!--<span class="label label-success">4</span>-->
</a>
</li>
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="www.php" data-placement="bottom" data-toggle="tooltip" title="Login Admin">
<i class="fa fa-user"></i>
</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="wrapper row-offcanvas row-offcanvas-left">
<!-- Left side column. contains the logo and sidebar -->
<aside>
<!-- Main content -->
<section class="content">
<!-- Main row -->
<div class="row">
<div class="col-lg-12">
<div class="alert alert-info alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<!--<marquee behavior="alternate" direction="left" onmouseover="this.stop();" onmouseout="this.start();">-->
<b>Selamat Datang di Perpus2.0 Project (Perpustakaan Berbasis Website) Pro Version, Untuk Login Admin silahkan klik Icon User atau klik <a href="www.php">disini</a></b>
</div>
</div>
<div class="col-md-8">
<section class="panel">
<header class="panel-heading">
<b>Data Pengunjung Hari Ini</b>
</header>
<div class="panel-body table-responsive">
<?php
$tanggal = date("Y/m/d");
$query1="select * from pengunjung where tgl_kunjung='$tanggal'";
$tampil=mysql_query($query1) or die(mysql_error());
?>
<table class="table table-hover">
<thead>
<tr>
<th>Nama</th>
<th>Tanggal</th>
<th>Jam Berkunjung </th>
<th>Keperluan</th>
</tr>
</thead>
<?php while($data=mysql_fetch_array($tampil))
{ ?>
<tbody>
<tr>
<td><?php echo $data['nama']; ?></td>
<td><?php echo $data['tgl_kunjung'];?></td>
<td><?php echo $data['jam_kunjung'];?></td>
<td><?php echo $data['perlu1'];?></td>
<?php
}
?>
</table><hr />
<?php $tampil=mysql_query("select * from pengunjung where tgl_kunjung='$tanggal'");
$user=mysql_num_rows($tampil);
?>
<center><h4>Jumlah Pengunjung Hari Ini : <?php echo "$user"; ?> Orang </h4> </center>
</div>
</section>
</div><!--end col-6 -->
<div class="col-md-4">
<section class="panel">
<header class="panel-heading">
<b>Buku Pengunjung</b>
</header>
<div class="panel-body">
<div class="twt-area">
<form class="form-horizontal style-form" style="margin-top: 20px;" action="insert-pengunjung.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">No </label>
<div class="col-sm-10">
<input name="id" type="text" id="id" class="form-control" placeholder="Tidak perlu di isi" autofocus="on" readonly="readonly" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Nama</label>
<div class="col-sm-10">
<input name="nama" type="text" id="nama" class="form-control" placeholder="Nama Anda" required />
<!--<span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Jenkel</label>
<div class="col-sm-6">
<select class="form-control" name="jk" id="jk">
<option> -- Pilih Salah Satu --</option>
<option value="L"> Laki - Laki</option>
<option value="P"> Perempuan</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Kelas</label>
<div class="col-sm-6">
<select class="form-control" name="kelas" id="kelas">
<option> -- Pilih Salah Satu --</option>
<option value="X1"> X1</option>
<option value="X2"> X2</option>
<option value="X3"> X3</option>
<option value="X4"> X4</option>
<option value="X5"> X5</option>
<option value="XI1"> XI1</option>
<option value="XI2"> XI2</option>
<option value="XI3"> XI3</option>
<option value="XI4"> XI4</option>
<option value="XI5"> XI5</option>
<option value="XII1"> XII1</option>
<option value="XII2"> XII2</option>
<option value="XII3"> XII3</option>
<option value="XII4"> XII4</option>
<option value="XII5"> XII5</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Perlu</label>
<div class="col-sm-10">
<input name="perlu1" type="text" id="perlu1" class="form-control" placeholder="Keperluan" required />
<!--<span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Cari?</label>
<div class="col-sm-10">
<input name="cari" type="text" id="cari" class="form-control" placeholder="Apa yang anda cari.?" required />
<!--<span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Saran</label>
<div class="col-sm-10">
<textarea rows="4" name="saran" id="saran" class="form-control" placeholder="Saran Anda untuk PerPusWeb" cols="25"></textarea>
<!--<span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Tanggal</label>
<div class="col-sm-10">
<input name="tgl_kunjung" type="text" class="form-control" id="tgl_kunjung" value="<?php echo "".date("Y/m/d").""; ?>" readonly="readonly"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-sm-2 control-label">Jam</label>
<div class="col-sm-10">
<input name="jam_kunjung" type="text" class="form-control" id="jam_kunjung" value="<?php echo "".date("H:i:s").""?>" readonly="readonly"/>
</div>
</div>
<div class="form-group" style="margin-bottom: 20px;">
<label class="col-sm-2 col-sm-2 control-label"></label>
<div class="col-sm-8">
<input type="submit" value="Simpan" name="simpan" class="btn btn-sm btn-primary" />
<a href="input-anggota.php" class="btn btn-sm btn-danger">Batal </a>
</div>
</div>
</form>
</div>
</div>
</section>
</div>
</div>
</section>
<!-- Data Total Pengunjung -->
<div class="col-md-12">
<section class="panel">
<header class="panel-heading">
<b> Data Akumulasi Pengunjung</b>
</header>
<div class="panel-body table-responsive">
<?php
$query="select * from pengunjung order by id desc limit 10";
$tampil=mysql_query($query) or die(mysql_error());
?>
<table class="table table-hover">
<thead>
<tr>
<th>Nama</th>
<th>Jenis Kelamin</th>
<th>Kelas</th>
<th>Tanggal</th>
<th>Jam Berkunjung </th>
<th>Keperluan</th>
<th>Buku Yang di Cari</th>
</tr>
</thead>
<?php while($data1=mysql_fetch_array($tampil))
{ ?>
<tbody>
<tr>
<td><?php echo $data1['nama']; ?></td>
<td><?php echo $data1['jk']; ?></td>
<td><?php echo $data1['kelas'];?></td>
<td><?php echo $data1['tgl_kunjung'];?></td>
<td><?php echo $data1['jam_kunjung'];?></td>
<td><?php echo $data1['perlu1'];?></td>
<td><?php echo $data1['cari'];?></td>
<?php
}
?>
</table><hr />
<?php $tampil1=mysql_query("select * from pengunjung order by id");
$user1=mysql_num_rows($tampil1);
?>
<center><h4>Jumlah Total Pengunjung : <?php echo "$user1"; ?> Orang </h4> </center>
</div>
</section>
</div>
</div>
<!-- row end -->
<!-- /.content -->
<div class="footer-main">
Copyright © 2023 by <a href="https://adzkiaadi.free.nf" target="_blank">Adzkia Adi</a> | All Right Reversed.
</div>
</aside><!-- /.right-side -->
</div><!-- ./wrapper -->
<!-- Modal Dialog Contact -->
<div class="modal fade" id="contact" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">PerPusWeb PRO</h4>
</div>
<div class="modal-body">
PerPusWeb adalah aplikasi perpustakaan bebasis website yang responsif, PerPusWeb Versi ini adalah versi PerPusWeb Pro untuk info, saran, maupun kritik bisa menghubungi
Sarjana Komedi :
<table>
<tr>
<td>No Telepon</td> <td>:</td> <td>0857 2880 3444</td>
</tr>
<br />
<tr>
<td>E-mail</td><td>:</td> <td><a href="mailto:developer@sarjanakomedi.com">developer@sarjanakomedi.com</a> | <a href="mailto:rsabyl@gmail.com">rsabyl@gmail.com</a></td>
</tr>
<br />
<tr>
<td>Blog</td> <td>:</td> <td><a href="http://www.sarjanakomedi.com" target="_blank">www.sarjanakomedi.com</a></td>
</tr>
<br />
<tr>
<td>Website</td> <td>:</td> <td><a href="http://www.sarjanakomedi.com" target="_blank">www.sarjanakomedi.com</a></td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- end dialog modal -->
<!-- jQuery 2.0.2 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<!-- jQuery UI 1.10.3 -->
<script src="js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<!-- daterangepicker -->
<script src="js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<script src="js/plugins/chart.js" type="text/javascript"></script>
<!-- datepicker
<script src="js/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>-->
<!-- Bootstrap WYSIHTML5
<script src="js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>-->
<!-- iCheck -->
<script src="js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<!-- calendar -->
<script src="js/plugins/fullcalendar/fullcalendar.js" type="text/javascript"></script>
<!-- Director App -->
<script src="js/Director/app.js" type="text/javascript"></script>
<!-- Director dashboard demo (This is only for demo purposes) -->
<script src="js/Director/dashboard.js" type="text/javascript"></script>
<!-- Director for demo purposes -->
<script type="text/javascript">
$('input').on('ifChecked', function(event) {
// var element = $(this).parent().find('input:checkbox:first');
// element.parent().parent().parent().addClass('highlight');
$(this).parents('li').addClass("task-done");
console.log('ok');
});
$('input').on('ifUnchecked', function(event) {
// var element = $(this).parent().find('input:checkbox:first');
// element.parent().parent().parent().removeClass('highlight');
$(this).parents('li').removeClass("task-done");
console.log('not');
});
</script>
<script>
$('#noti-box').slimScroll({
height: '400px',
size: '5px',
BorderRadius: '5px'
});
$('input[type="checkbox"].flat-grey, input[type="radio"].flat-grey').iCheck({
checkboxClass: 'icheckbox_flat-grey',
radioClass: 'iradio_flat-grey'
});
</script>
<script type="text/javascript">
$(function() {
"use strict";
//BAR CHART
var data = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(220,220,220,0.2)",
strokeColor: "rgba(220,220,220,1)",
pointColor: "rgba(220,220,220,1)",
pointStrokeColor: "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(220,220,220,1)",
data: [65, 59, 80, 81, 56, 55, 40]
},
{
label: "My Second dataset",
fillColor: "rgba(151,187,205,0.2)",
strokeColor: "rgba(151,187,205,1)",
pointColor: "rgba(151,187,205,1)",
pointStrokeColor: "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(151,187,205,1)",
data: [28, 48, 40, 19, 86, 27, 90]
}
]
};
new Chart(document.getElementById("linechart").getContext("2d")).Line(data,{
responsive : true,
maintainAspectRatio: false,
});
});
// Chart.defaults.global.responsive = true;
</script>
</body>
</html>