-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlisttamu.php
57 lines (45 loc) · 1.66 KB
/
listtamu.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
<?php
require_once("session.php");
require_once('class.user.php');
$user = new USER();
?>
<?php
include_once 'dbconfigcrud.php';
include_once 'class.crud.tamu.php';
$crud = new crud($DB_con);
?>
<?php include_once 'header.php';?>
<link rel="stylesheet" href="styletamu.css" type="text/css">
<div class="clearfix"></div>
<div class="container-fluid">
<div class="container">
<h2>Daftar Tamu</h2>
<a href="add-tamu.php" class="btn btn-large btn-success"><i class="glyphicon glyphicon-plus"></i> Add Records</a>
</div>
<div class="clearfix"></div><br />
<div class="container">
<table class='table table-bordered table-responsive'>
<tr>
<th class="col-sm-1">Nama Penulis</th>
<th class="col-sm-2">Nama</th>
<th class="col-sm-5">Email</th>
<th class="col-sm-2">Alamat</th>
<th colspan="2" align="center" class="col-sm-1">Actions</th>
</tr>
<?php
$query = "SELECT * FROM tamu";
$records_per_page=5;
$newquery = $crud->paging($query,$records_per_page);
$crud->dataview($newquery);
?>
<tr>
<td colspan="6" align="center">
<div class="pagination-wrap">
<?php $crud->paginglink($query,$records_per_page); ?>
</div>
</td>
</tr>
</table>
</div>
</div>
<?php include_once 'footer.php'; ?>