-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathHelpDesk.php
148 lines (137 loc) · 3.88 KB
/
HelpDesk.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
<!DOCTYPE html>
<!--
Project: Bitcraft Service Desk (An Open Source ITSM Web App)
Lead Devs: Joshua Nasiatka, Allen Perry, Eugene Duffy
For: Software Engineering
Dev Date: Spring 2016
Status: Staging; Idea Testing; Development
-->
<?php
include("modules/mainhead.php");
if ($myACL->hasPermission('hd_portal') != true) {
header("location: /");
exit;
}
?>
<html>
<?php
include_once 'modules/head.php'; ?>
<?php echo "<body class='hold-transition skin-$skin sidebar-mini'>"; ?>
<div class="wrapper">
<?php
// build the user interface
include_once 'modules/header.php';
include_once 'modules/left_sidebar.php';
include_once 'modules/page_handling.php';
include_once 'modules/footer.php';
include_once 'modules/control_sidebar.php';?>
</div>
<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery -->
<script src="bower/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="bower/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="bower/AdminLTE/dist/js/app.min.js"></script>
<!-- DataTables -->
<script src="bower/AdminLTE/plugins/datatables/jquery.dataTables.js"></script>
<script src="bower/AdminLTE/plugins/datatables/dataTables.bootstrap.js"></script>
<!-- SlimScroll -->
<script src="bower/AdminLTE/plugins/slimScroll/jquery.slimscroll.js"></script>
<!-- FastClick -->
<script src="bower/AdminLTE/plugins/fastclick/fastclick.min.js"></script>
<!-- InputMask -->
<script src="bower/AdminLTE/plugins/input-mask/jquery.inputmask.js"></script>
<script src="bower/AdminLTE/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="bower/AdminLTE/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<!-- page script -->
<script>
$(function () {
$('#active_staff').DataTable({
"paging": false,
"lengthChange": true,
"searching": false,
"ordering": false,
"info": true,
"autoWidth": false
});
});
$(function () {
$('#recent_activity').DataTable({
"paging": false,
"lengthChange": false,
"searching": false,
"ordering": false,
"info": true,
"autoWidth": false
});
});
$(function () {
$('#adm_acl').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
$(function () {
$('#downloads').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
$(function () {
$('#kb_list').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
$(function () {
$('#downloads2').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": false
});
});
jQuery(document).ready(function($) {
$("#sdesk li").hover(function () {
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});
$("#ddesk li").hover(function () {
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});
$(".clickableRow").on("click",function() {
if (this.parentNode.parentNode.getAttribute("id") === "downloads") {
window.open($(this).attr("data-href"),"_blank");
} else {
document.location = $(this).attr("data-href");
}
});
});
$('#sdesk ul').toggle(200);$('#sdesk').addClass("active");
</script>
<!-- Optionally, you can add Slimscroll and FastClick plugins.
Both of these plugins are recommended to enhance the
user experience. Slimscroll is required when using the
fixed layout. -->
<?php
include_once 'modules/modals.php'; ?>
</body>
</html>