-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
executable file
·123 lines (113 loc) · 3.22 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
error_reporting(0);
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Sistem Informasi Geografis</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="assets/css/cerulean.min.css" rel="stylesheet">
<style type="text/css"> body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
label.error {
color: red;
}
</style>
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<script src="assets/js/jquery.js"></script>
<script src="assets/js/bootstrap-dropdown.js"></script>
<script type="text/javascript" src="assets/js/jquery.validate.js"></script>
<script type="text/javascript" src="assets/js/messages_id.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false"
type="text/javascript"></script>
<script>$(document).ready(function() {
$("#form1").validate();
});
</script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a>
<a class="brand" href="#">Sistem Informasi Geografis</a>
<div class="nav-collapse">
<ul class="nav"></ul>
<ul class="nav pull-right">
<li>
<a href="#"></a>
</li>
<li class="divider-vertical"></li>
<li class="dropdown">
<?php
if(isset($_SESSION['username'])){
?>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user icon-white"></i>Setting <b class="caret"></b></a>
<ul class="dropdown-menu">
<li>
<a href="index.php?mod=login&pg=cp_form"><i class="icon-lock"></i>Change Password</a>
</li>
<li class="divider"></li>
<li>
<a href="login/logout.php"><i class="icon-off"></i>Logout</a>
</li>
</ul>
</li>
<? }else{
?><li>
<a href="index.php?mod=login&pg=form_login"><i class="icon-user icon-white"></i> Login</a>
</li>
<? } //end of if?>
</ul>
</div>
</div><!-- /navbar-inner -->
</div><!-- /navbar -->
</div>
<div class="container-fluid">
<div class="row">
<div class="span3">
<?php include ('inc/config.php');
include ('inc/menu.php');
include ('inc/function.php');
$sessi = $_SESSION['username'];
menu($sessi);?>
<div class="span9">
<div>
<?php
$pg = '';
/*
* PHP Code untuk mendapatkan halaman view masing masing tabel
*/
if(!isset($_GET['pg'])) {
if(!empty($_SESSION['username'])) {
include ('login/welcome.php');
} else {
include ('peta/peta.php');
}
} else {
$pg = $_GET['pg'];
$mod = $_GET['mod'];
include $mod . '/' . $pg . ".php";
}?>
</div><!--/span-->
</div><!--/row-->
</div>
<footer>
<p style="text-align: center">
<br>
<a href=''>Built By Fattahul Akbar</a>
</p>
</footer>
</div><!--/.fluid-container-->
</body>
</html>