-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample.php
63 lines (60 loc) · 1.61 KB
/
sample.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
<?PHP
$auto_connect = 1; //auto connect database;
require_once("config.php");
require_once("_/_session.php");
?>
<!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>Data Kategori - <?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'>
<?PHP require_once("_/_alert_message.php"); ?>
<section class="card card-blue mb-3">
<header class="card-header">
Judul Card
</header>
<div class="card-block">
<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_sample.php",
data: dataString,
cache: false,
success: function(result){
$(".flash").hide();
$("#pageData").html(result);
}
});
}
</script>
</body>
</html>