-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.php
64 lines (60 loc) · 2.41 KB
/
index.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
include "init.php";
$data_pusat_bantuan = new bantuan;
?>
<!DOCTYPE html>
<html lang="en-ID">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Management Raport</title>
<?php include 'header.php'; ?>
</head>
<body class="<?php if(preg_match("/bantuan/", ($_GET['ref']??''))) : ?> bgSilver <?php else: ?> bgGreen <?php endif; ?> noOverflowX">
<?php if(preg_match("/bantuan/", ($_GET['ref']??''))) : ?>
<ul class="menuheader">
<div class="container">
<?php if(isset($_GET['ref']) && $_GET['ref'] != "pusat_bantuan") : ?>
<li><a id="btnMenuPusatBantuan"><div class="menu_humberger"></div></a></li>
<?php endif; ?>
<li><a href="<?php if($_SESSION['RAPORT']['level'] == "admin") { echo config::base_url('admin/index.php'); } elseif($_SESSION['RAPORT']['level'] == "guru") {echo config::base_url('guru/index.php');} ?>" class="benner"><span class="fa fa-home ico"></span> MANPORT</a></li>
<?php if($_SESSION['RAPORT']['level'] == "admin") : ?>
<li class="right sign-out"><a href="<?= config::base_url('admin/login/logout.php'); ?>"><span class="fa fa-sign-out ico"></span></a></li>
<?php elseif($_SESSION['RAPORT']['level'] == "guru") : ?>
<li class="right sign-out"><a href="<?= config::base_url('home/proses.php?action=logout'); ?>"><span class="fa fa-sign-out ico"></span></a></li>
<?php endif; ?>
</div>
</ul>
<?php endif; ?>
<ul class="menuPusatBantuan">
<li><a href="index.php?ref=pusat_bantuan">Bantuan</a></li>
<hr>
<?php
$data_pusat_bantuan = $data_pusat_bantuan->tampil_pusat_bantuan();
if($data_pusat_bantuan) :
foreach($data_pusat_bantuan as $pb) :
if($pb['pusat_bantuan_id'] != ($_GET['pusat_bantuan_id']??'')) :
?>
<li><a href="index.php?ref=bantuan_detail&pusat_bantuan_id=<?= $pb['pusat_bantuan_id']; ?>"><?= str_replace("_", " ", $pb['nama_bantuan']); ?></a></li>
<?php endif; endforeach; endif; ?>
</ul>
<div class="menuPusatBantuan_bg"></div>
<!-- progress bar -->
<div class="progress_bar_back <?php if(!isset($_GET['ref'])) echo "login"; ?>">
<div class="progress_bar green default"></div>
</div>
<div class="container">
<?php
config::page("home/home.php");
?>
</div>
<script type="text/javascript">
$(function(){
$("a#btnMenuPusatBantuan").click(function(){
$("ul.menuPusatBantuan").toggleClass("muncul");
$("div.menuPusatBantuan_bg").toggleClass("muncul");
})
})
</script>
</body>
</html>