-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex copy.php
179 lines (150 loc) · 7.53 KB
/
index copy.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?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">
<meta name="description" content="">
<link rel="shortcut icon" href="#" type="assets/image/png">
<title>TOPOS TOKO POINT OF SALE</title>
<!--icheck-->
<!--
<link href="assets/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<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">
-->
<!-- data picker -->
<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">
<!--dashboard calendar-->
<link href="assets/css/clndr.css" rel="stylesheet">
<!--file upload-->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-fileupload.min.css" />
<!--Morris Chart CSS -->
<link rel="stylesheet" href="assets/js/morris-chart/morris.css">
<!--common-->
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<!--[endif]-->
<!-- UIkit CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css" />
<!-- UIkit JS -->
<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>
<!-- cart -->
<?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/calendar/clndr.js"></script>
<script src="assets/js/calendar/evnt.calendar.init.js"></script>
<script src="assets/js/calendar/moment-2.2.1.js"></script>
-->
<script src="assets/js/underscore-min.js"></script>
<!-- <script src="assets/js/scripts.js"></script> -->
<script src="assets/js/dashboard-chart-init-edi.js"></script>
<!--Dashboard Charts-->
<?php
}
?>
<!-- cart -->
<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>
<!--file upload-->
<script type="text/javascript" src="assets/js/bootstrap-fileupload.min.js"></script>
<!-- <script src="assets/js/edi.js"></script> -->
<script>
jQuery(document).ready(function () {
EditableTable.init();
});
</script>
</body>
</html>
<?php
} else {
header("Location: login.php");
}
?>