-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.php
97 lines (84 loc) · 2.29 KB
/
admin.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
session_start();
if( empty( $_SESSION['iduser'] ) ){
//session_destroy();
$_SESSION['err'] = '<strong>ERROR!</strong> Anda harus login terlebih dahulu.';
header('Location: ./');
die();
} else {
include "./koneksi.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="web spp">
<meta name="author" content="MuhammAd_Fariz">
<link rel="shortcut icon" type="image/png" href="Assets\logo\invoice.png"/>
<title>WEB PEMBAYARAN SPP</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
body {
min-height: 200px;
padding-top: 70px;
background-color: #eee;
background-image: url(Assets\logo\logo.jpg);
}
@media print {
.noprint {
display: none;
}
}
</style>
</head>
<body>
<?php include "menu.php"; ?>
<div class="container">
<?php
if( isset($_REQUEST['hlm'] )){
$hlm = $_REQUEST['hlm'];
switch( $hlm ){
case 'bayar':
include "./pembayaran.php";
break;
case 'laporan':
include "./Laporan/laporan.php";
break;
case 'master':
include "./master.php";
break;
case 'user':
include "./profil.php";
break;
}
} else {
?>
<!-- Main component for a primary marketing message or call to action -->
<div class="jumbotron">
<h2 align="center">APLIKASI PEMBAYARAN SPP KEPONDOKAN</h2>
<p align="center">Selamat Datang<strong> <?php echo $_SESSION['fullname']; ?></strong></p>
<p align="center"><strong>PONDOK PESANTREN DURROTU ASWAJA</strong></p>
</div>
<?php
}
?>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript, Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(".force-logout").alert().delay(3000).slideUp('slow', function(){
window.location = "./logout.php";
});
function fnCetak() {
window.print();
}
</script>
</body>
</html>
<?php
}
?>