-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtransaksi_pending.php
64 lines (61 loc) · 1.71 KB
/
transaksi_pending.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
<?PHP
$auto_connect = 1; //auto connect database;
require_once("config.php");
require_once("_/_session.php");
$total = $db->num_rows("select id from transaksi where status=0");
?>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Semua Transaksi Pending - <?PHP echo $c_name; ?></title>
<?PHP require_once("_/css.php")?>
</head>
<body class="with-side-menu">
<?PHP require_once("_/header.php"); ?>
<?PHP require_once("_/sidebar.php"); ?>
<div class="page-content">
<div class="container-fluid">
<div class="row">
<div class='col-md-12 col-xs-12 col-lg-12'>
<section class="card card-blue mb-3">
<header class="card-header">
Semua Transaksi Pending
</header>
<div class="card-block">
Total Transaksi Pending : <?PHP echo $total; ?><p>
<div id="pageData"></div>
<span class="flash"></span>
</div>
</section>
</div>
</div>
</div><!--.container-fluid-->
</div><!--.page-content-->
<?PHP require_once("_/js.php"); ?>
<script>
$(document).ready(function(){
changePagination('1', 'all', '');
});
function changePagination(page, action, q){
$(".flash").show();
$(".flash").fadeIn(400).html
('Loading...');
var dataString = 'page='+ page;
dataString = dataString + '&action='+action+'&q='+q;
$.ajax({
type: "POST",
url: "ajax/load_transaksi_pending.php",
data: dataString,
cache: false,
success: function(result){
$(".flash").hide();
$("#pageData").html(result);
}
});
}
</script>
</body>
</html>