1 | <?php |
||||
2 | session_start(); |
||||
3 | if (empty($_SESSION['userid']) and empty($_SESSION['password'])) { |
||||
4 | echo "<script>window.alert('Login first.'); window.location=('index.php')</script>"; |
||||
5 | } else { |
||||
6 | date_default_timezone_set('Asia/Jakarta'); |
||||
7 | include 'config/koneksi.php'; |
||||
8 | //include "config/koneksi_odbc.php"; |
||||
9 | include 'config/fungsi_indobulan.php'; |
||||
10 | include 'config/browser_detection.php'; |
||||
11 | |||||
12 | $userid = $_SESSION['userid']; |
||||
13 | $username = $_SESSION['iusername']; |
||||
14 | $role = $_SESSION['role']; |
||||
15 | $groups = $_SESSION['groups']; |
||||
16 | $outlet = $_SESSION['outlet']; |
||||
17 | $df_outlet = $_SESSION['outlet']; |
||||
18 | |||||
19 | $tipe_sales = $_SESSION['tipe_sales']; |
||||
20 | |||||
21 | $r_input = $_SESSION['r_input']; |
||||
22 | $r_edit = $_SESSION['r_edit']; |
||||
23 | $r_delete = $_SESSION['r_delete']; |
||||
24 | $r_admin = $_SESSION['r_admin']; |
||||
25 | $r_department = $_SESSION['r_department']; |
||||
26 | |||||
27 | $gsql = mysql_query("SELECT a.main_page,b.id_modul FROM groups a inner join modul b |
||||
0 ignored issues
–
show
|
|||||
28 | on a.main_page = b.link |
||||
29 | WHERE id_groups ='$groups'"); |
||||
30 | |||||
31 | $g = mysql_fetch_array($gsql); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
32 | |||||
33 | if ($g['main_page']) { |
||||
34 | $lmodule = $g['main_page'].'&id_module='.$g['id_modul']; |
||||
35 | } else { |
||||
36 | $lmodule = 'main.php?module=home&id_module=11'; |
||||
37 | } |
||||
38 | |||||
39 | $SQL = "SELECT * FROM informasi_perusahaan WHERE id_informasi_perusahaan = '1'"; |
||||
40 | |||||
41 | $tampil = mysql_query($SQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
42 | |||||
43 | $r = mysql_fetch_array($tampil); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
44 | |||||
45 | $company = $r[company]; |
||||
0 ignored issues
–
show
|
|||||
46 | |||||
47 | $logo_hotel = $r[pict]; |
||||
0 ignored issues
–
show
|
|||||
48 | $module = trim($_GET[module]); |
||||
0 ignored issues
–
show
|
|||||
49 | |||||
50 | $uSQL = "SELECT pict FROM user where id_user = '$userid' "; |
||||
51 | |||||
52 | $utampil = mysql_query($uSQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
53 | |||||
54 | $u = mysql_fetch_array($utampil); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
55 | |||||
56 | $pict = $u['pict']; |
||||
57 | |||||
58 | $id_module = $_GET['id_module']; |
||||
59 | |||||
60 | $sql = mysql_query("select * from modul where id_modul = '$_GET[id_module]'"); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
61 | $r = mysql_fetch_array($sql); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
62 | |||||
63 | $imodule = $_GET['module']; |
||||
64 | $nmmodule = ucwords($r['nama_modul']); |
||||
65 | $id = $r['id_modul']; |
||||
66 | |||||
67 | $fa_icon = $r['ficon']; |
||||
68 | |||||
69 | $psql = mysql_query("select * from modul where id_modul = '$r[parentid]'"); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
70 | $p = mysql_fetch_array($psql); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
71 | |||||
72 | $p_imodule = $p['nama_modul']; |
||||
73 | $p_id = $p['id_modul']; |
||||
74 | $p_fa_icon = $p['fa_icon']; |
||||
75 | |||||
76 | $kode = $_GET['kode']; |
||||
77 | |||||
78 | if ($_GET['fdate']) { |
||||
79 | $fdate = $_GET['fdate']; |
||||
80 | $ifdate = $_GET['fdate']; |
||||
81 | } else { |
||||
82 | $hour = time() - (1 * 1 * 60 * 60); |
||||
83 | $fdate = date('Y-m-d', $hour); |
||||
84 | $ifdate = date('Y-m-d', $hour); |
||||
85 | } |
||||
86 | |||||
87 | if ($_GET['ldate']) { |
||||
88 | $ldate = $_GET['ldate']; |
||||
89 | $ildate = $_GET['ldate']; |
||||
90 | } else { |
||||
91 | $hour = time() - (1 * 1 * 60 * 60) + (168 * 1 * 60 * 60); |
||||
92 | $ldate = date('Y-m-d', $hour); |
||||
93 | $ildate = date('Y-m-d', $hour); |
||||
94 | } ?> |
||||
95 | |||||
96 | <?php |
||||
97 | $SQL = "SELECT* FROM versi WHERE status = 'A' "; |
||||
98 | $tampil = mysql_query($SQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
99 | $p = mysql_fetch_array($tampil); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
100 | |||||
101 | $app = $p['aplikasi']; |
||||
102 | |||||
103 | $versi = $p['versi']; ?> |
||||
104 | |||||
105 | <!DOCTYPE html> |
||||
106 | <html lang="en"> |
||||
107 | |||||
108 | <head> |
||||
109 | <!-- Meta, title, CSS, favicons, etc. --> |
||||
110 | <meta charset="utf-8"> |
||||
111 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
||||
112 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
113 | |||||
114 | <title><?=$app; ?></title> |
||||
115 | |||||
116 | |||||
117 | <!-- Bootstrap core CSS --> |
||||
118 | |||||
119 | |||||
120 | <link href="config/css/thickbox.css" rel="stylesheet" type="text/css" /> |
||||
121 | <link href="config/css/tiny_table.css" rel="stylesheet" type="text/css" /> |
||||
122 | |||||
123 | <script language="javascript" src="config/js/jquery.js"></script> |
||||
124 | <script language="javascript" src="config/js/thickbox.js"></script> |
||||
125 | |||||
126 | <link href="css/bootstrap.min.css" rel="stylesheet"> |
||||
127 | |||||
128 | <link href="fonts/css/font-awesome.min.css" rel="stylesheet"> |
||||
129 | <link href="css/animate.min.css" rel="stylesheet"> |
||||
130 | |||||
131 | <!-- Custom styling plus plugins --> |
||||
132 | <link href="css/custom.css" rel="stylesheet"> |
||||
133 | <link href="css/icheck/flat/green.css" rel="stylesheet"> |
||||
134 | <link href="css/datatables/tools/css/dataTables.tableTools.css" rel="stylesheet"> |
||||
135 | |||||
136 | |||||
137 | <!--[if lt IE 9]> |
||||
138 | <script src="../assets/js/ie8-responsive-file-warning.js"></script> |
||||
139 | <![endif]--> |
||||
140 | |||||
141 | <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
||||
142 | <!--[if lt IE 9]> |
||||
143 | <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
||||
144 | <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
||||
145 | <![endif]--> |
||||
146 | |||||
147 | <!-- <script> |
||||
148 | $(document).ready(function(){ |
||||
149 | setInterval(function(){ |
||||
150 | $("#screen").load('<?php echo $imod?>') |
||||
151 | }, 2000); |
||||
152 | }); |
||||
153 | </script> --> |
||||
154 | |||||
155 | <script type="text/javascript"> |
||||
156 | |||||
157 | function number_format(number,num_decimal_places,dec_separator,thousand_separator) |
||||
158 | { |
||||
159 | var decimal = '00000'; |
||||
160 | var negatif = (number.substring(0,1) == '-' ? '-' : ''); |
||||
161 | number = Math.abs(parseFloat(number)).toString().split('.'); |
||||
162 | if (number.length == 2) |
||||
163 | number[1] = (number[1] + decimal).substring(0,num_decimal_places); |
||||
164 | else |
||||
165 | number[1] = decimal.substring(0,num_decimal_places); |
||||
166 | number[0] = stringreverse(number[0]); |
||||
167 | var strdigit = ''; |
||||
168 | for (i=0;i<number[0].length;i++) |
||||
169 | { |
||||
170 | if (i % 3 == 0 && i !=0) strdigit += thousand_separator; |
||||
171 | strdigit += number[0].charAt(i); |
||||
172 | } |
||||
173 | return negatif + stringreverse(strdigit) + (num_decimal_places > 0 ? dec_separator + number[1] : ''); |
||||
174 | } |
||||
175 | |||||
176 | function stringreverse(str) |
||||
177 | { |
||||
178 | var strlen = str.length; |
||||
179 | var strrev = ''; |
||||
180 | for (i=strlen-1;i>=0;i--) |
||||
181 | { |
||||
182 | strrev += str.charAt(i); |
||||
183 | } |
||||
184 | return strrev; |
||||
185 | } |
||||
186 | |||||
187 | //alert("Format 175500.235 ==>" + number_format('175500.23', 2,'.',',') ); |
||||
188 | </script> |
||||
189 | |||||
190 | |||||
191 | |||||
192 | <?php |
||||
193 | $mod = '?module='.$_GET['module']; |
||||
194 | $tampil = mysql_query("SELECT orientation FROM modul WHERE link='".$mod."'"); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
195 | $r = mysql_fetch_array($tampil); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
196 | |||||
197 | if ($r[orientation] == 'P') { |
||||
0 ignored issues
–
show
|
|||||
198 | ?> |
||||
199 | |||||
200 | <SCRIPT TYPE="text/javascript"> |
||||
201 | <!-- |
||||
202 | function popup<?php echo $module?>(myform, windowname) |
||||
203 | { |
||||
204 | if (! window.focus)return true; |
||||
205 | window.open('', 'print_<?php echo $module?>.php', 'height=650,width=700,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no'); |
||||
206 | myform.target='print_<?php echo $module?>.php'; |
||||
207 | return true; |
||||
208 | } |
||||
209 | //--> |
||||
210 | </SCRIPT> |
||||
211 | |||||
212 | <?php |
||||
213 | } elseif ($r[orientation] == 'A') { |
||||
214 | ?> |
||||
215 | |||||
216 | <SCRIPT TYPE="text/javascript"> |
||||
217 | <!-- |
||||
218 | function popup<?php echo $module?>(myform, windowname) |
||||
219 | { |
||||
220 | if (! window.focus)return true; |
||||
221 | window.open('', 'print_<?php echo $module?>.php', 'height=750,width=1020,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no'); |
||||
222 | myform.target='print_<?php echo $module?>.php'; |
||||
223 | return true; |
||||
224 | } |
||||
225 | //--> |
||||
226 | </SCRIPT> |
||||
227 | |||||
228 | <?php |
||||
229 | } else { |
||||
230 | ?> |
||||
231 | |||||
232 | <SCRIPT TYPE="text/javascript"> |
||||
233 | <!-- |
||||
234 | function popup<?php echo $module?>(myform, windowname) |
||||
235 | { |
||||
236 | if (! window.focus)return true; |
||||
237 | window.open('', 'print_<?php echo $module?>.php', 'height=650,width=1100,resizable=1,scrollbars=1,addressbars=0,directories=no,location=no'); |
||||
238 | myform.target='print_<?php echo $module?>.php'; |
||||
239 | return true; |
||||
240 | } |
||||
241 | //--> |
||||
242 | </SCRIPT> |
||||
243 | |||||
244 | |||||
245 | <?php |
||||
246 | } ?> |
||||
247 | |||||
248 | |||||
249 | </head> |
||||
250 | |||||
251 | |||||
252 | <body class="nav-md"> |
||||
253 | |||||
254 | <?php |
||||
255 | |||||
256 | $SQL = "SELECT* FROM versi WHERE status = 'A' "; |
||||
257 | $tampil = mysql_query($SQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
258 | $p = mysql_fetch_array($tampil); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
259 | |||||
260 | $app = $p['aplikasi']; |
||||
261 | |||||
262 | $versi = $p['versi']; ?> |
||||
263 | |||||
264 | <div id="dhtmltooltip"></div> |
||||
265 | <script language="javascript" src="js/dhtml.tooltips.js"></script> |
||||
266 | |||||
267 | |||||
268 | <div class="container body"> |
||||
269 | |||||
270 | |||||
271 | <div class="main_container "> |
||||
272 | |||||
273 | <div class="col-md-3 left_col "> |
||||
274 | <div class="left_col scroll-view "> |
||||
275 | |||||
276 | <div class="navbar nav_title" style="border: 0;text-align:center;"> |
||||
277 | <!-- <a href="#" class="site_title"> |
||||
278 | <span style='font-size:14px' class="btn btn-success"><?php echo $app; ?></span> |
||||
279 | </a> --> |
||||
280 | |||||
281 | </div> |
||||
282 | <div class="clearfix"></div> |
||||
283 | <!-- menu prile quick info --> |
||||
284 | |||||
285 | <div class="profile"> |
||||
286 | <div class="profile_pic"> |
||||
287 | <img src="images/profile/<?php echo $pict; ?>" alt="..." class="img-circle profile_img"> |
||||
288 | </div> |
||||
289 | <div class="profile_info"> |
||||
290 | <span>Hallo,</span> |
||||
291 | <h2><?php echo $username; ?></h2> |
||||
292 | </div> |
||||
293 | </div> |
||||
294 | <!-- /menu prile quick info --> |
||||
295 | |||||
296 | <br /> |
||||
297 | |||||
298 | |||||
299 | <!-- sidebar menu --> |
||||
300 | <div id="sidebar-menu" class="main_menu_side hidden-print main_menu "> |
||||
301 | |||||
302 | |||||
303 | <div class="menu_section"> |
||||
304 | <h3>  </h3> |
||||
305 | <ul class="nav side-menu"> |
||||
306 | |||||
307 | <?php include 'menu.php'; ?> |
||||
308 | |||||
309 | </ul> |
||||
310 | </div> |
||||
311 | </div> |
||||
312 | <!-- /sidebar menu --> |
||||
313 | |||||
314 | <!-- /menu footer buttons --> |
||||
315 | </div> |
||||
316 | </div> |
||||
317 | --> |
||||
318 | <!-- top navigation --> |
||||
319 | <div class="top_nav"> |
||||
320 | |||||
321 | <div class="nav_menu"> |
||||
322 | <nav class="" role="navigation"> |
||||
323 | <div class="nav toggle"> |
||||
324 | <a id="menu_toggle"><i class="fa fa-bars"></i></a> |
||||
325 | </div> |
||||
326 | |||||
327 | <div class="nav navbar-nav navbar-left" style="padding-top:18px;font-size:14px;width:92%;"> |
||||
328 | <i class="fa fa-home"></i> |
||||
329 | <a href="<?php echo $lmodule?>">Home</a> |
||||
330 |   |
||||
331 | <i class="fa fa-angle-right"></i> |
||||
332 |   |
||||
333 | Halaman Utama |
||||
334 | |||||
335 | <span class='pull-right'> |
||||
336 | <a href="logout.php" onclick="return confirm('keluar dari aplikasi ?')"><i class="fa fa-sign-out "></i> Keluar</a> |
||||
337 | </span> |
||||
338 | |||||
339 | |||||
340 | </div> |
||||
341 | |||||
342 | |||||
343 | |||||
344 | |||||
345 | <!-- <ul class="nav navbar-nav navbar-right"> |
||||
346 | <li class=""> |
||||
347 | <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> |
||||
348 | <img src="images/profile/<?php echo $pict; ?>" alt=""><?php echo $userid; ?> |
||||
349 | <span class=" fa fa-angle-down"></span> |
||||
350 | </a> |
||||
351 | <ul class="dropdown-menu dropdown-usermenu animated fadeInDown pull-right"> |
||||
352 | <li><a href="javascript:;"> <i class="fa fa-user pull-right"></i> Profile</a></li> |
||||
353 | |||||
354 | <li><a href="logout.php" onclick="return confirm('Do you want to logout ?')"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li> |
||||
355 | </ul> |
||||
356 | </li> |
||||
357 | </ul> --> |
||||
358 | </div> |
||||
359 | </div> |
||||
360 | |||||
361 | <!-- /top navigation --> |
||||
362 | |||||
363 | |||||
364 | <!-- page content --> |
||||
365 | <div class="right_col" role="main"> |
||||
366 | |||||
367 | <?php include 'content.php'; ?> |
||||
368 | |||||
369 | <!-- footer content --> |
||||
370 | |||||
371 | |||||
372 | <footer> |
||||
373 | <div class=""> |
||||
374 | |||||
375 | <div class="col-md-9 col-sm-12 col-xs-12 form-group"></div> |
||||
376 | |||||
377 | <?php |
||||
378 | $SQL = "SELECT* FROM versi WHERE status = 'A' "; |
||||
379 | $tampil = mysql_query($SQL); |
||||
0 ignored issues
–
show
The function
mysql_query() has been deprecated: 5.5 Send a MySQL query
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
380 | $p = mysql_fetch_array($tampil); |
||||
0 ignored issues
–
show
The function
mysql_fetch_array() has been deprecated: 5.5 Fetch a result row as an associative array, a numeric array, or both
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
381 | |||||
382 | $app = $p['aplikasi']; |
||||
383 | |||||
384 | $versi = $p['versi']; ?> |
||||
385 | |||||
386 | <div class="col-md-3 col-sm-12 col-xs-12 form-group" > |
||||
387 | </div> |
||||
388 | </div> |
||||
389 | <div class="clearfix"></div> |
||||
390 | </footer> |
||||
391 | <!-- /footer content --> |
||||
392 | </div> |
||||
393 | <!-- /page content --> |
||||
394 | |||||
395 | </div> |
||||
396 | |||||
397 | </div> |
||||
398 | |||||
399 | <div id="custom_notifications" class="custom-notifications dsp_none"> |
||||
400 | <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group"> |
||||
401 | </ul> |
||||
402 | <div class="clearfix"></div> |
||||
403 | <div id="notif-group" class="tabbed_notifications"></div> |
||||
404 | </div> |
||||
405 | |||||
406 | |||||
407 | |||||
408 | <script src="js/bootstrap.min.js"></script> |
||||
409 | |||||
410 | |||||
411 | <!-- chart js --> |
||||
412 | <script src="js/chartjs/chart.min.js"></script> |
||||
413 | <!-- bootstrap progress js --> |
||||
414 | <script src="js/progressbar/bootstrap-progressbar.min.js"></script> |
||||
415 | <script src="js/nicescroll/jquery.nicescroll.min.js"></script> |
||||
416 | <!-- icheck --> |
||||
417 | <script src="js/icheck/icheck.min.js"></script> |
||||
418 | |||||
419 | <script src="js/custom.js"></script> |
||||
420 | |||||
421 | <!-- daterangepicker --> |
||||
422 | <script type="text/javascript" src="js/moment.min2.js"></script> |
||||
423 | <script type="text/javascript" src="js/datepicker/daterangepicker.js"></script> |
||||
424 | |||||
425 | <!-- datepicker --> |
||||
426 | <script type="text/javascript"> |
||||
427 | $(document).ready(function () { |
||||
428 | |||||
429 | var cb = function (start, end, label) { |
||||
430 | console.log(start.toISOString(), end.toISOString(), label); |
||||
431 | $('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); |
||||
432 | //alert("Callback has fired: [" + start.format('MMMM D, YYYY') + " to " + end.format('MMMM D, YYYY') + ", label = " + label + "]"); |
||||
433 | } |
||||
434 | |||||
435 | var optionSet1 = { |
||||
436 | startDate: moment().subtract(29, 'days'), |
||||
437 | endDate: moment(), |
||||
438 | minDate: '01/01/2012', |
||||
439 | maxDate: '12/31/2015', |
||||
440 | dateLimit: { |
||||
441 | days: 60 |
||||
442 | }, |
||||
443 | showDropdowns: true, |
||||
444 | showWeekNumbers: true, |
||||
445 | timePicker: false, |
||||
446 | timePickerIncrement: 1, |
||||
447 | timePicker12Hour: true, |
||||
448 | ranges: { |
||||
449 | 'Today': [moment(), moment()], |
||||
450 | 'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], |
||||
451 | 'Last 7 Days': [moment().subtract(6, 'days'), moment()], |
||||
452 | 'Last 30 Days': [moment().subtract(29, 'days'), moment()], |
||||
453 | 'This Month': [moment().startOf('month'), moment().endOf('month')], |
||||
454 | 'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] |
||||
455 | }, |
||||
456 | opens: 'left', |
||||
457 | buttonClasses: ['btn btn-default'], |
||||
458 | applyClass: 'btn-small btn-primary', |
||||
459 | cancelClass: 'btn-small', |
||||
460 | format: 'MM/DD/YYYY', |
||||
461 | separator: ' to ', |
||||
462 | locale: { |
||||
463 | applyLabel: 'Submit', |
||||
464 | cancelLabel: 'Clear', |
||||
465 | fromLabel: 'From', |
||||
466 | toLabel: 'To', |
||||
467 | customRangeLabel: 'Custom', |
||||
468 | daysOfWeek: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], |
||||
469 | monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], |
||||
470 | firstDay: 1 |
||||
471 | } |
||||
472 | }; |
||||
473 | $('#reportrange span').html(moment().subtract(29, 'days').format('MMMM D, YYYY') + ' - ' + moment().format('MMMM D, YYYY')); |
||||
474 | $('#reportrange').daterangepicker(optionSet1, cb); |
||||
475 | $('#reportrange').on('show.daterangepicker', function () { |
||||
476 | console.log("show event fired"); |
||||
477 | }); |
||||
478 | $('#reportrange').on('hide.daterangepicker', function () { |
||||
479 | console.log("hide event fired"); |
||||
480 | }); |
||||
481 | $('#reportrange').on('apply.daterangepicker', function (ev, picker) { |
||||
482 | console.log("apply event fired, start/end dates are " + picker.startDate.format('MMMM D, YYYY') + " to " + picker.endDate.format('MMMM D, YYYY')); |
||||
483 | }); |
||||
484 | $('#reportrange').on('cancel.daterangepicker', function (ev, picker) { |
||||
485 | console.log("cancel event fired"); |
||||
486 | }); |
||||
487 | $('#options1').click(function () { |
||||
488 | $('#reportrange').data('daterangepicker').setOptions(optionSet1, cb); |
||||
489 | }); |
||||
490 | $('#options2').click(function () { |
||||
491 | $('#reportrange').data('daterangepicker').setOptions(optionSet2, cb); |
||||
492 | }); |
||||
493 | $('#destroy').click(function () { |
||||
494 | $('#reportrange').data('daterangepicker').remove(); |
||||
495 | }); |
||||
496 | }); |
||||
497 | </script> |
||||
498 | <!-- /datepicker --> |
||||
499 | |||||
500 | |||||
501 | |||||
502 | |||||
503 | |||||
504 | <script type="text/javascript" src="config/js/script.js"></script> |
||||
505 | <script type="text/javascript"> |
||||
506 | var sorter = new TINY.table.sorter('sorter','table',{ |
||||
507 | headclass:'head', |
||||
508 | ascclass:'asc', |
||||
509 | descclass:'desc', |
||||
510 | evenclass:'evenrow', |
||||
511 | oddclass:'oddrow', |
||||
512 | evenselclass:'evenselected', |
||||
513 | oddselclass:'oddselected', |
||||
514 | paginate:true, |
||||
515 | size:10, |
||||
516 | colddid:'columns', |
||||
517 | currentid:'currentpage', |
||||
518 | totalid:'totalpages', |
||||
519 | startingrecid:'startrecord', |
||||
520 | endingrecid:'endrecord', |
||||
521 | totalrecid:'totalrecords', |
||||
522 | hoverid:'selectedrow', |
||||
523 | pageddid:'pagedropdown', |
||||
524 | navid:'tablenav', |
||||
525 | <!--sortcolumn:1,--> |
||||
526 | sortdir:1, |
||||
527 | /*sum:[8], |
||||
528 | avg:[6,7,8,9], |
||||
529 | columns:[{index:7, format:'%', decimals:1},{index:8, format:'$', decimals:0}],*/ |
||||
530 | init:true |
||||
531 | }); |
||||
532 | </script> |
||||
533 | |||||
534 | </body> |
||||
535 | |||||
536 | </html> |
||||
537 | <?php |
||||
538 | } |
||||
539 | ?> |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.