/
show_plg.php
59 lines (55 loc) · 2.07 KB
/
show_plg.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
<?php
/*
* Sistem Inventory Donasi.
*
* Tidak dibenarkan menyebarkan, memperbanyak, menggandakan Program ini
* untuk kepentingan pribadi, kelompok atau instansi yang dijadikan
* program komersial maupun gratisan kepada pihak ketiga. Namun dibenarkan
* merobah program, menambah atau mengurangi sebahagian atau seluruh program
* hanya bagi Donator kami, tanpa menghilangkan atribut lisensi yang ada
* pada tiap-tiap file program.
* Website : www.gosoftware.web.id
* Blog : http://phpbego.wordpress.com
* Hotline : 0623 456 2221
* SMS : 0852 6361 6901
* Email : cs@gosoftware.web.id
* Facebook: https://www.facebook.com/gosoftwarego
* Twitter : @phpbego
*
*/
mysql_select_db($database_invconnect, $invconnect);
$query_rec_show_plg = "SELECT * FROM pbpelanggan ORDER BY nama ASC";
$rec_show_plg = mysql_query($query_rec_show_plg, $invconnect) or die(mysql_error());
$row_rec_show_plg = mysql_fetch_assoc($rec_show_plg);
$totalRows_rec_show_plg = mysql_num_rows($rec_show_plg);
pbtitle('Daftar Pelanggan');
?>
<div class="well">
<button class="btn btn-large btn-block btn-primary" type="button" onclick="location='page.php?modul=add_plg'"><span class="glyphicon glyphicon-plus"></span> Tambah Pelanggan</button>
</div>
<table class="table table-bordered" id="datatable_id">
<thead>
<tr>
<th>#</th>
<th>kode</th>
<th>nama</th>
<th>alamat</th>
<th>telp</th>
<th>kota</th>
<th> </th>
</tr>
</thead>
<tbody>
<?php do { ?>
<tr>
<td><?php echo $row_rec_show_plg['id']; ?></td>
<td><?php echo $row_rec_show_plg['kode']; ?></td>
<td><?php echo $row_rec_show_plg['nama']; ?></td>
<td><?php echo $row_rec_show_plg['alamat']; ?></td>
<td><?php echo $row_rec_show_plg['telp']; ?></td>
<td><?php echo $row_rec_show_plg['kota']; ?></td>
<td><a class="btn btn-primary btn-xs" href="page.php?modul=edit_plg&id=<?php echo $row_rec_show_plg['id']; ?>"><span class="glyphicon glyphicon-edit"></span> Edit</a></td>
</tr>
<?php } while ($row_rec_show_plg = mysql_fetch_assoc($rec_show_plg)); ?>
</tbody>
</table>