-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathheader.php
101 lines (84 loc) · 4.17 KB
/
header.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
98
99
100
101
<?php
if(!isset($basepath))
exit("No direct script access allowed!");
require_once("core/conn.php");
$curr = $login->cek_login();
$login->login_redir();
$menu = isset($data['menu']) ? intval($data['menu']) : 0;
$submenu = isset($data['submenu']) ? intval($data['submenu']) : 0;
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?=isset($data['title']) ? $data['title']." - " : ""; ?>Skripsi TianRosandhy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/bootstrap.min.css">
<link rel="stylesheet" href="assets/propeller.min.css">
<link rel="stylesheet" href="assets/alertify.min.css">
<link rel="stylesheet" href="assets/jquery.mCustomScrollbar.css">
<link rel="stylesheet" href="assets/font-awesome.min.css">
<link rel="stylesheet" href="assets/animate.css">
<link rel="stylesheet/less" href="style.less">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="assets/jquery-1.12.3.min.js"></script>
</head>
<Body>
<!-- Nav menu -->
<nav class="navbar navbar-inverse pmd-navbar navbar-fixed-top pmd-z-depth" style="position:fixed;">
<div class="container-fluid">
<div class="dropdown pmd-dropdown pmd-user-info pull-right">
<a href="logout.php" class="btn-user dropdown-toggle media">
<div class="media-left logout-button" data-toggle="tooltip" data-placement="bottom" title="Logout">
<span class="fa fa-sign-out fa-fw fa-lg"></span>
<span class="text">Logout</span>
</div>
</a>
</div>
<!-- Sidebar Toggle Button-->
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<a href="javascript:void(0);" class="btn btn-sm pmd-btn-fab pmd-btn-flat pmd-ripple-effect btn-primary pull-left margin-r8 pmd-sidebar-toggle"><i class="fa fa-lg fa-bars"></i></a>
<span class="navbar-brand">Sistem Analisis Sentimen Komentar</span>
</div>
</div>
</nav>
<!-- Sidebar -->
<section id="pmd-main">
<!-- Left sidebar -->
<aside class="pmd-sidebar sidebar-custom sidebar-default pmd-sidebar-left-fixed pmd-sidebar-left pmd-z-depth sidebar-hide-custom" role="navigation">
<ul class="main-menu">
<li>
<a href="javascript:;" class="has-child <?=is_same(2, $menu, "active")?>"><span class="fa fa-fw fa-bar-chart"></span><label>Analysis</label></a>
<ul class="submenu">
<li><a href="single-anal.php" class=" <?=is_same(21, $submenu, "active")?>">Single Analysis</a></li>
<li><a href="batch-anal.php" <?=is_same(22, $submenu, "active")?>>Batch Analysis</a></li>
</ul>
</li>
<li><a href="history.php" class=" <?=is_same(3, $menu, "active")?>"><span class="fa fa-fw fa-file-text-o"></span><label>Analysis History</label></a></li>
<?php
if($curr['priviledge'] == 1):
?>
<li>
<a href="javascript:;" class="has-child <?=is_same(1, $menu, "active")?>"><span class="fa fa-fw fa-database"></span><label>Data Master</label></a>
<ul class="submenu">
<li><a href="home.php" class=" <?=is_same(11, $submenu, "active")?>">Kata Dasar</a></li>
<li><a href="stopword.php" class=" <?=is_same(12, $submenu, "active")?>">Stopword</a></li>
<li><a href="latih.php" class=" <?=is_same(13, $submenu, "active")?>">Data Latih</a></li>
</ul>
</li>
<li>
<a href="javascript:;" class="has-child <?=is_same(5, $menu, "active")?>"><span class="fa fa-fw fa-file-code-o"></span><label>Developer Option</label></a>
<ul class="submenu">
<li><a href="simulasi.php" class=" <?=is_same(51, $submenu, "active")?>">Simulasi Rumus</a></li>
<li><a href="validasi.php" <?=is_same(52, $submenu, "active")?>>Uji Validasi</a></li>
</ul>
</li>
<li><a href="setting.php" class="<?=is_same(4, $menu, "active")?>"><span class="fa fa-fw fa-cog"></span><label>User Management</label></a></li>
<?php
endif;
?>
</ul>
</aside>
<!-- Content -->
<div class="pmd-content" id="content">