-
Notifications
You must be signed in to change notification settings - Fork 0
/
list-bayar.php
48 lines (39 loc) · 875 Bytes
/
list-bayar.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
<div>
<label>Cari Nomor Kontrak</label>
<input type='text' class='form-control' id='kontraktor' placeHolder="Nama Penghuni">
</div>
<div> </div>
<div id='datakontrak'></div>
<div class="row" id='list-bayar'>
<table class='table'>
<tr>
<th>ID</th>
<th>No. Kontrak</th>
<th>JUMLAH</th>
<th>MULAI</th>
<th>HINGGA</th>
</tr>
<?php
require("./lib/class.bayar.inc.php");
$byr = new payment();
$byr->listPayment(0);
?>
</table>
</div>
<script>
$('document').ready(function(){
$('#kontraktor').keyup(function(){
$('#list-bayar').hide();
var nama = $('#kontraktor').val();
if(nama.length == 0 ){
$('#datakontrak').hide();
$('#list-bayar').show();
}
$.ajax({url: 'ajax/seekKontrak.php?np='+$('#kontraktor').val(),
success:function(temuan){
$('#datakontrak').html(temuan);
}
});
});
});
</script>