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
$asanoer_page_title = "CRUD - ASANOER.COM";
include(ASANOER_FOLDER_PELENGKAP.'koneksi-nya.php');
include(ASANOER_FOLDER_PELENGKAP.'header-nya.php');
?>

<body>
<div id="wrapper">
<?php include(ASANOER_FOLDER_PELENGKAP.'menu-nya.php'); ?>
 <!-- Page Content -->
        <div id="page-wrapper">
		
<div id="x-respon" class="col-lg-12">&nbsp;</div>
<div id="asanoerload" loadnya="<?php echo ASANOER_MAIN_URL.'index-read.html'; ?>"></div>
<div class="page-loading" style="position:fixed;top:0;right:0;bottom:0;left:0;z-index:12345;background:url(<?php echo ASANOER_MAIN_URL.ASANOER_FOLDER_GBR."load.gif"; ?>)no-repeat center;background-color:rgba(0, 0, 0, 0.8);"></div>
<?php 
//source = https://ngasalnulis.wordpress.com/2015/05/22/membuat-animasi-loading-page-dengan-css-jquery-dan-gambar/
?>
</div></div>

	<!-- Modal HTML -->

	<div id="load-modal"></div>

	<!-- /////////Modal HTML -->

	

<?php include(ASANOER_FOLDER_PELENGKAP.'footer-nya.php'); ?>
<?php $xdatabase->close(); ?>

<script type="text/javascript">
    $(document).ready(function(){

	$('.page-loading').hide();
	$.ajaxSetup({
		beforeSend:function(){
			// show gif here, eg:
			$('.page-loading').show();
		},
		complete:function(){
			// hide gif here, eg:
			$('.page-loading').fadeOut('2000');
$("asanoeredit").removeAttr('disabled');
$("asanoerhapus").removeAttr('disabled');
$("asanoertambah").removeAttr('disabled');
		}
	});
    	//////////// MODAL JS HANDLING
		$("#asanoerload").load($("#asanoerload").attr("loadnya"));

    });
</script>


</body>
</html>