-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
70 lines (58 loc) · 2.26 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
<?php session_start();
ini_set('session.gc_maxlifetime', 86400);
session_set_cookie_params(86400);
include('main.php');
$part = explode('/', $_SERVER['REQUEST_URI']);
include('header.php');
//include('menu_horizontal.php');
/*if(isset($_SESSION['username'])){
$_SESSION['user_type_id']=1;
//session_destroy();
}*/
?>
<div class="main-container container-plus bgc-white">
<?php
include('menu_left.php');
?>
<div role="main" class="main-content">
<?php
/*echo $_SERVER['REQUEST_URI'];
print_r($part);*/
if (array_key_exists($part[1], $view)) {
include($view[$part[1]]['appFile']);
}
include('footer_page.php');
//include('web_control.php');
?>
</div>
</div>
<!-- include common vendor scripts used in demo pages -->
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/popper.js/dist/umd/popper.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.js"></script>
<script src="includes/function.js"></script>
<script src="ckeditor/ckeditor.js"></script>
<script src="ckfinder/ckfinder.js"></script>
<script src="node_modules/select2/dist/js/select2.js"></script>
<script src="node_modules/summernote/dist/summernote-lite.js"></script>
<!-- include vendor scripts used in "Dashboard" page. see "/views//pages/partials/dashboard/@vendor-scripts.hbs" -->
<script src="node_modules/jquery-validation/dist/jquery.validate.js"></script>
<script src="node_modules/bootbox/bootbox.all.js"></script>
<script src="node_modules/fullcalendar/main.js"></script>
<script src="jquery-ui/jquery-ui.min.js"></script>
<script src="node_modules/bootstrap-duallistbox/dist/jquery.bootstrap-duallistbox.js"></script>
<!-- include ace.js -->
<script src="dist/js/ace.js"></script>
<!-- "Calendar" page script to enable its demo functionality -->
<script>
var folder = "<?php echo $view[$part[1]]['appFolder']; ?>";
//ฟังก์ชั่นตั้งค่าเพื่อให้คำสั่ง $.post รับค่าจาก new FormData(document.getel) โดยเอา
$.ajaxSetup({
cache: false,
contentType: false,
processData: false
});
</script>
<script src="<?php echo $view[$part[1]]['appFolder']; ?>function.js"></script>
</body>
</html>