-
Notifications
You must be signed in to change notification settings - Fork 1
/
CRMheader.php
162 lines (134 loc) · 4.86 KB
/
CRMheader.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
<head>
<meta charset="UTF-8">
<title><?php echo $_SESSION['CompanyAbbr']; ?> ERP | Dashboard</title>
<link rel="icon" href="../mBOOT/plant.png" type="image/png" sizes="10x10">
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- Bootstrap 3.3.4 -->
<link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="../mBOOT/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="../mBOOT/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- jvectormap -->
<link href="../plugins/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="../dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link href="../dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
<link href="../mBOOT/searchstyle.css" rel="stylesheet" type="text/css" />
<!-- DatePicker -->
<link href="../mBOOT/jquery-ui.css" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../bootstrap/js/jquery-1.10.2.min.js"></script>
<!-- Custom scroll Bar -->
<link href="../mBOOT/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../mBOOT/prettify.js"></script>
<script type="text/javascript" src="../mBOOT/jquery.slimscroll.js"></script>
<!--Multiple Select TOKIN -->
<script src="../mBOOT/jquery-3.1.1.min.js"></script>
<link href="../mBOOT/tokenize2.css" rel="stylesheet" type="text/css" />
<script src="../mBOOT/tokenize2.js" type="text/javascript"></script>
<!-- Select 2 -->
<script src="../mBOOT/select2.js"></script>
<link href="../mBOOT/select2.css" rel="stylesheet" type="text/css" />
<!--Gant Chart-->
<!-- jsGanttImproved App -->
<link href="../mBOOT/jsgantt.css" rel="stylesheet" type="text/css"/>
<script src="../mBOOT/jsgantt.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
//loadMsg();
var preLoadTimer;
var interchk = <?php echo $_SESSION['LockDownTime']; ?>;
$(this).mousemove(function(e) {
//clear prior timeout,if any
preLoadTimer = 0;
});
$(this).keypress(function(e) {
//clear prior timeout,if any
preLoadTimer = 0;
});
$(this).scroll(function(e) {
//clear prior timeout,if any
preLoadTimer = 0;
});
$(this).mousedown(function(e) {
//clear prior timeout,if any
preLoadTimer = 0;
});
//checktime
setInterval(function()
{
preLoadTimer++;
if (preLoadTimer > 10)
{
window.location.href="../lockscreen";
}
}, interchk )//30 Secs
//Notification Reload
setInterval(function()
{
//loadMsg();
}, 100000 )//30 Secs
});
function loadMsg()
{
//return false;
//Ajax to Get All Messages now
$.ajax({
type: "POST",
url: "../utility/getMsg",
//data: dataString,
cache: false,
success: function(html)
{
var obj = JSON.parse(html);
$('#msgBoard').html(obj['msg']);
$('#msgNum').html(obj['msgNum']);
$('#notifBoard').html(obj['notif']);
$('#notifNum').html(obj['notifNum']);
$('#taskBoard').html(obj['task']);
$('#taskNum').html(obj['taskNum']);
$('.slimscroll').slimscroll({
height: '140px',
size: '10px'
});
$('.dropdown-menu').on({
"click":function(e){
e.stopPropagation();
}
});
}
});
}
function delMSG(elem)
{
$(elem).hide();
var msgID = $(elem).attr("msgid");
var dataString = 'msgID='+ msgID;
//ajax to remove user from seeing msg
$.ajax({
type: "POST",
url: "../utility/removeMsg",
data: dataString,
cache: false,
success: function(html)
{
}
});
}
function gotoAction(elem)
{
var hlink = $(elem).attr("hlink");
window.location.href=hlink;
}
</script>
</head>