-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
104 lines (96 loc) · 6.47 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
<?php
session_start();
error_reporting(0);
//define("SITE_HOST", "http://".$_SERVER['HTTP_HOST']."/kasir/");//.HOST_URI);
//error_reporting(0);
include 'config.php'; // echo $_SESSION['username']; exit();
include 'function.php';
if (!empty($_SESSION["username"]) && !empty($_SESSION['password'])) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="#" type="assets/image/png">
<title>TOPOS TOKO POINT OF SALE</title>
<link rel="stylesheet" type="text/css" href="assets/js/bootstrap-datepicker/css/datepicker-custom.css"/>
<link rel="stylesheet" type="text/css" href="assets/js/bootstrap-timepicker/css/timepicker.css"/>
<link rel="stylesheet" type="text/css" href="assets/js/bootstrap-colorpicker/css/colorpicker.css"/>
<link rel="stylesheet" type="text/css" href="assets/js/bootstrap-daterangepicker/daterangepicker-bs3.css"/>
<link rel="stylesheet" type="text/css" href="assets/js/bootstrap-datetimepicker/css/datetimepicker-custom.css"/>
<link href="assets/js/iCheck/skins/square/square.css" rel="stylesheet">
<link href="assets/js/iCheck/skins/square/red.css" rel="stylesheet">
<link href="assets/js/iCheck/skins/square/blue.css" rel="stylesheet">
<link href="assets/css/clndr.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-fileupload.min.css" />
<link rel="stylesheet" href="assets/js/morris-chart/morris.css">
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
<body class="text-secondary text-center">
<section>
<!-- main content start-->
<div class="main-content">
<!--body wrapper start-->
<?php
// include 'menuatas-member.php';
if (isset($_GET['hal']) && strlen($_GET['hal']) > 0) {
$hal = str_replace(".", "/", $_GET['hal']) . ".php";
} else {
$hal = "dashboard.php";
}
if (file_exists($hal)) {
include($hal);
} else {
include("dashboard.php");
}
?>
<!--body wrapper end-->
<!--footer section start-->
<?php include("footer.php"); ?>
<!--footer section end-->
</div>
<!-- main content end-->
</section>
<!-- Placed js at the end of the document so the pages load faster -->
<script src="assets/js/jquery-1.10.2.min.js"></script>
<script src="assets/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="assets/js/jquery-migrate-1.2.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/modernizr.min.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/js/easypiechart/jquery.easypiechart.js"></script>
<script src="assets/js/easypiechart/easypiechart-init.js"></script>
<script src="assets/js/sparkline/jquery.sparkline.js"></script>
<script src="assets/js/sparkline/sparkline-init.js"></script>
<script src="js/iCheck/jquery.icheck.js"></script>
<script src="js/icheck-init.js"></script>
<script src="assets/js/flot-chart/jquery.flot.js"></script><script src="assets/js/flot-chart/jquery.flot.tooltip.js"></script><script src="assets/js/flot-chart/jquery.flot.resize.js"></script><script src="assets/js/flot-chart/jquery.flot.pie.resize.js"></script><script src="assets/js/flot-chart/jquery.flot.selection.js"></script><script src="assets/js/flot-chart/jquery.flot.stack.js"></script><script src="assets/js/flot-chart/jquery.flot.time.js"></script><script src="assets/js/main-chart.js"></script><script src="assets/js/jquery-1.10.2.min.js"></script><script src="assets/js/jquery-ui-1.9.2.custom.min.js"></script><script src="assets/js/jquery-migrate-1.2.1.min.js"></script><script src="assets/js/bootstrap.min.js"></script><script src="assets/js/modernizr.min.js"></script><script src="assets/js/jquery.nicescroll.js"></script><script type="text/javascript" src="assets/js/data-tables/jquery.dataTables.js"></script><script type="text/javascript" src="assets/js/data-tables/DT_bootstrap.js"></script><script src="assets/js/editable-table.js"></script><script src="assets/asseys/js/editable-table.js"></script><script type="text/javascript" src="js/jquery.validate.min.js"></script><script src="js/validation-init.js"></script>
<?php
if ($_GET['hal'] == 'dashboard') {
?>
<script src="assets/js/morris-chart/morris.js"></script>
<script src="assets/js/morris-chart/raphael-min.js"></script>
<script src="assets/js/underscore-min.js"></script>
<script src="assets/js/dashboard-chart-init-edi.js"></script>
<?php
}
?>
<script type="text/javascript" src="assets/js/bootstrap-datepicker/js/bootstrap-datepicker.js"></script><script type="text/javascript" src="assets/js/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script><script type="text/javascript" src="assets/js/bootstrap-daterangepicker/moment.min.js"></script><script type="text/javascript" src="assets/js/bootstrap-daterangepicker/daterangepicker.js"></script><script type="text/javascript" src="assets/js/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script><script type="text/javascript" src="assets/js/bootstrap-timepicker/js/bootstrap-timepicker.js"></script><script src="assets/js/pickers-init.js"></script><script src="assets/js/scripts.js"></script><script src='https://cdn.jsdelivr.net/npm/vue/dist/vue.js'></script><script src='https://mesinkasir.github.io/larapos/pos/gallerya.js'></script><script type="text/javascript" src="assets/js/bootstrap-fileupload.min.js"></script>
<script>
jQuery(document).ready(function () {
EditableTable.init();
});
</script>
</body>
</html>
<?php
} else {
header("Location: login.php");
}
?>