File: /home/cafsindia/.trash/application.1/views/partial/header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<base href="<?php echo base_url(); ?>" />
<title><?php echo $this->config->item('company') . ' | ' . 'CRM - © SMART HRMS CLOUD'. date("Y"); ?></title>
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.png">
<?php if ($this->input->cookie('debug') == "true" || $this->input->get("debug") == "true") : ?>
<?php $this->load->view('partial/header_debug'); ?>
<?php else : ?>
<!--[if lte IE 8]>
<link rel="stylesheet" media="print" href="css/print.css" type="text/css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="dist/bootstrap.min.css?rel=<?php echo date('Ymd');?>"/>
<link rel="stylesheet" type="text/css" href="dist/smart_hrms.css?rel=<?php echo date('Ymd');?>"/>
<?php $base_url = "http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?');
// $url = $base_url."/home/logout";
$url = $base_url."/home/unauthorized";
?>
<noscript>
<meta HTTP-EQUIV="refresh" content=0;url="<?php echo $unauthurl; ?>"></noscript>
<script type="text/javascript" src="dist/opensourcepos.min.js?rel=<?php echo date('Ymd');?>"></script>
<?php
$app_mode = $this->config->item('environment');
if($app_mode === 'PRODUCTION'){
?>
<script type="text/javascript" src="dist/dis_dev.js?rel=<?php echo date('Ymd');?>"></script>
<script>
// function _0x3556(_0x5015cd,_0x4a5dbe){var _0x3976db=_0x3976();return _0x3556=function(_0x355699,_0xae9e02){_0x355699=_0x355699-0x1ac;var _0x5d97fb=_0x3976db[_0x355699];return _0x5d97fb;},_0x3556(_0x5015cd,_0x4a5dbe);}function _0x3976(){var _0x1c9eb3=['22OiBVbo','1297574GtphOp','outerHeight','20595180qZkbsH','attachEvent','blur','8uctwjY','resize','focus','92098ZsnBCF','12HEPxRQ','mousemove','638848FETcAZ','addEventListener','14860bzysRp','8586pClWNS','3952529IOthIC','innerHeight','onfocus','readyState','complete','3ZPQuZL','location','callee','load','onresize','1057795ZAcBxv','<?php echo $url; ?>','interactive','href'];_0x3976=function(){return _0x1c9eb3;};return _0x3976();}(function(_0x13ae5c,_0x41e79f){var _0x3063eb=_0x3556,_0x4079c9=_0x13ae5c();while(!![]){try{var _0x4237e1=-parseInt(_0x3063eb(0x1b4))/0x1+parseInt(_0x3063eb(0x1bc))/0x2*(parseInt(_0x3063eb(0x1c8))/0x3)+parseInt(_0x3063eb(0x1bf))/0x4+parseInt(_0x3063eb(0x1af))/0x5*(parseInt(_0x3063eb(0x1bd))/0x6)+-parseInt(_0x3063eb(0x1c3))/0x7*(parseInt(_0x3063eb(0x1b9))/0x8)+-parseInt(_0x3063eb(0x1c2))/0x9*(parseInt(_0x3063eb(0x1c1))/0xa)+-parseInt(_0x3063eb(0x1b3))/0xb*(-parseInt(_0x3063eb(0x1b6))/0xc);if(_0x4237e1===_0x41e79f)break;else _0x4079c9['push'](_0x4079c9['shift']());}catch(_0x14790e){_0x4079c9['push'](_0x4079c9['shift']());}}}(_0x3976,0xbece8),!(function(){var _0x4eb468=_0x3556;function _0x46bb5a(_0x33c7c1){var _0x536a82=_0x3556;if(isNaN(+_0x33c7c1))_0x33c7c1=0x64;var _0x151545=+new Date();debugger;var _0x5efde2=+new Date();if(isNaN(_0x151545)||isNaN(_0x5efde2)||_0x5efde2-_0x151545>_0x33c7c1){var _0x2075e5=_0x536a82(0x1b0);window[_0x536a82(0x1c9)][_0x536a82(0x1b2)]=_0x2075e5;}}window['attachEvent']?document[_0x4eb468(0x1c6)]===_0x4eb468(0x1c7)||document[_0x4eb468(0x1c6)]===_0x4eb468(0x1b1)?(_0x46bb5a(),window[_0x4eb468(0x1b7)](_0x4eb468(0x1ae),_0x46bb5a),window['attachEvent']('onmousemove',_0x46bb5a),window[_0x4eb468(0x1b7)](_0x4eb468(0x1c5),_0x46bb5a),window['attachEvent']('onblur',_0x46bb5a)):setTimeout(argument[_0x4eb468(0x1ac)],0x0):(window[_0x4eb468(0x1c0)](_0x4eb468(0x1ad),_0x46bb5a),window[_0x4eb468(0x1c0)](_0x4eb468(0x1ba),_0x46bb5a),window[_0x4eb468(0x1c0)](_0x4eb468(0x1be),_0x46bb5a),window[_0x4eb468(0x1c0)](_0x4eb468(0x1bb),_0x46bb5a),window[_0x4eb468(0x1c0)](_0x4eb468(0x1b8),_0x46bb5a));}()),window['onresize']=function(){var _0x19f4b0=_0x3556;if(window[_0x19f4b0(0x1b5)]-window[_0x19f4b0(0x1c4)]>0x64)detectDevTool();});
// function _0xabe4(){const _0x37e284=['2496IRpinb','5545180ZEgyCQ','href','1672867qKuFpC','profileEnd','10658160AKvxAT','profile','8iJHexO','32953550qaOlUR','441434fRZkPU','109779naVuAD','74UFTwSb','530WjajGx'];_0xabe4=function(){return _0x37e284;};return _0xabe4();}function _0xd5c2(_0x5be2a0,_0x1a7bbe){const _0xabe47f=_0xabe4();return _0xd5c2=function(_0xd5c21d,_0x30b893){_0xd5c21d=_0xd5c21d-0xfa;let _0x2a8aa5=_0xabe47f[_0xd5c21d];return _0x2a8aa5;},_0xd5c2(_0x5be2a0,_0x1a7bbe);}(function(_0x57ad59,_0x2d8fb5){const _0xc9c0db=_0xd5c2,_0xa192ab=_0x57ad59();while(!![]){try{const _0x231ebb=parseInt(_0xc9c0db(0xfe))/0x1+-parseInt(_0xc9c0db(0x100))/0x2*(-parseInt(_0xc9c0db(0xff))/0x3)+parseInt(_0xc9c0db(0x103))/0x4+-parseInt(_0xc9c0db(0x101))/0x5*(parseInt(_0xc9c0db(0x102))/0x6)+parseInt(_0xc9c0db(0x105))/0x7*(-parseInt(_0xc9c0db(0xfc))/0x8)+parseInt(_0xc9c0db(0xfa))/0x9+-parseInt(_0xc9c0db(0xfd))/0xa;if(_0x231ebb===_0x2d8fb5)break;else _0xa192ab['push'](_0xa192ab['shift']());}catch(_0x1f9213){_0xa192ab['push'](_0xa192ab['shift']());}}}(_0xabe4,0xc0416),setInterval(()=>{const _0x197294=_0xd5c2,_0x51793e=new Date();console[_0x197294(0xfb)]();const _0x32a489=new Date();console[_0x197294(0x106)]();if(_0x32a489-_0x51793e>0x64){var _0x1870ea='<?php echo $url; ?>';window['location'][_0x197294(0x104)]=_0x1870ea;}},0x7d0));
// window.onresize = function(){
// if((window.outerHeight-window.innerHeight)>100)
// setInterval(() => {
// const start = new Date();
// console.profile(); // Start profiling (which should be blocked if DevTools is open)
// const end = new Date();
// console.profileEnd(); // End profiling
// // If there's a delay, it suggests DevTools is open
// if (end - start > 100) {
// var url = '<?php echo $url; ?>';
// window.location.href = url; // Redirect to unauthorized page
// }
// }, 2000);
// }
// (function() {
// alert();
// return false;
// var url = '<?php echo $url; ?>';
// console.log(url);
// // Function to check for developer tools
// function detectDevTools() {
// // Check console.log tampering
// const before = new Date().getTime();
// debugger;
// const after = new Date().getTime();
// if (after - before > 100) { // Delay detected, debugger likely triggered
// return true;
// }
// // Create dummy elements for inspection checks
// const element = new Image();
// Object.defineProperty(element, 'id', {
// get: function () {
// window.location.href = url; // Redirect on dev tools usage
// }
// });
// console.log(element); // Will trigger the getter if dev tools are open
// // Check for an open DevTools window using conditional breakpoints
// const devToolCheck = /./;
// devToolCheck.toString = function() {
// var url = '<?php echo $url; ?>';
// window.location.href = url; // Redirect on dev tools usage
// };
// console.log(devToolCheck); // Logs the custom object, triggers check if dev tools open
// // Check for debugging disabling or blocking the console
// if (!window.console || typeof console.clear === 'undefined') {
// var url = '<?php echo $url; ?>';
// window.location.href = url; // Redirect on console tampering
// }
// return false; // No detection, continue as normal
// }
// // Run the detection immediately
// if (detectDevTools()) {
// var url = '<?php echo $url; ?>';
// window.location.href = url;
// }
// // Repeat every 2 seconds
// //function() {
// if (detectDevTools()) {
// alert("Yes");
// var url = '<?php echo $url; ?>';
// window.location.href = url;
// }else{
// alert("No");
// }
// //}
// })();
// window.onresize = function(){
// if((window.outerHeight-window.innerHeight)>100)
// alert();
// }
</script>
<?php } ?>
<script type="text/javascript" src="dist/validate.js?rel=<?php echo date('Ymd');?>"></script>
<link rel="stylesheet" type="text/css" href="dist/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="dist/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="dist/bootstrap-datetimepicker-master/build/css/bootstrap-datetimepicker.min.css"/>
<link rel="stylesheet" type="text/css" href="dist/select2/dist/css/select2.min.css"/>
<link rel="stylesheet" type="text/css" href="dist/toastr/toastr.css"/>
<link rel="stylesheet" type="text/css" href="dist/froala/froala_editor.pkgd.min.css" >
<link rel="stylesheet" type="text/css" href="dist/froala/froala_style.min.css" >
<link rel="stylesheet" type="text/css" href="dist/jquery_confirm/jquery-confirm.min.css" />
<link rel="stylesheet" type="text/css" href="dist/data_table/css/data_tables.min.css"/>
<link rel="stylesheet" type="text/css" href="dist/bootstrap-colorpicker.css"/>
<link rel="stylesheet" href="dist/calendar/animated-calendar-event-gc/dist/calendar-gc.min.css" />
<script src="dist/pdfobject.js"></script>
<?php endif; ?>
<?php $this->load->view('partial/lang_lines'); ?>
<?php $this->load->view('partial/header_js'); ?>
<style>
.numbercircle {
border-radius: 55%;
width: 8px;
height: 8px;
padding: 6px;
border: 2px solid #666;
color: #666;
text-align: center;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="">
<?php
if($company_info[0]->company_logo){
?>
<img src="<?php echo base_url($company_info[0]->company_logo); ?>" width="75px" height="25px">
<?php
}
else {
echo $company_info[0]->company_short_name;
}
?>
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<?php
$show_home = true;
$header_list = array();
foreach($header_menu as $menu){
if(strtoupper($menu->menu_name) === "HOME"){
$show_home = false;
}
if($menu->sub_menu_name){
$header_list[$menu->menu_name][$menu->sub_menu_name][] = array('module_id'=>$menu->module_id,'module_name'=>$menu->module_name);
}else{
$header_list[$menu->menu_name][$menu->module_id][] = array('module_id'=>$menu->module_id,'module_name'=>$menu->module_name);
}
}
if($show_home){
$site_url = site_url();
echo "<li ><a href='$site_url'> <i class='fa fa-home fa-lg' aria-hidden='true'></i> Home</a></li>";
}
/*echo "<pre>";
print_r($header_list); die;*/
foreach($header_list as $main_key=>$main_menu){
foreach($main_menu as $key=>$sub_menu){
$menu_length = count($sub_menu);
if((int)$menu_length === 1){
$module_id = $sub_menu[0]['module_id'];
$module_name = $sub_menu[0]['module_name'];
$url = site_url("$module_id");
if($module_id === "report"){
/* Report Menu START */
foreach($report_menu as $report_key => $report_menu_rslt){
$report_count = count($report_menu_rslt);
foreach($report_menu_rslt as $sub_reports => $report_rslt){
//echo "BSK $report_count <br/>";
if($report_count < 10){
$ul_style = "style='width: 200px !important;'";
$li_style = "style='display:block;width: auto;border:0px !important;'";
}
if($report_count > 10){
$ul_style = "style='width: 365px !important;'";
$li_style = "style='width: 50% !important;'";
}
if($report_count > 14){
$ul_style = "style='width: 670px !important;'";
$li_style = "style='width: 33% !important;'";
}
$report_id = $report_rslt['prime_report_setting_id'];
$report_name = $report_rslt['report_name'];
$menu_name = $report_rslt['menu_name'];
$report_url = site_url("$module_id/index")."/".$report_id;
/*$sub_li_list .= "<li $li_style><a href='$url'> <i class='fa fa-angle-double-right fa-lg' aria-hidden='true'></i> $report_name</a></li>";*/
$sub_li_list .= "<li $li_style><a href='$report_url'> <i class='fa fa-angle-double-right fa-lg' aria-hidden='true'></i> $report_name</a></li>";
}
$sub_menu_li_list .= "<li class='dropdown-submenu'>
<a href='$url' class='dropdown-toggle' data-toggle='dropdown'>$report_key</a>
<ul class='dropdown-menu master_menu' $ul_style>
$sub_li_list
</ul>
</li>";
$menu_li_list .= $sub_menu_li_list;
$sub_menu_li_list = "";
$sub_li_list = "";
}
/* Report Menu END */
}else
if($module_id === "bank_template"){
foreach($template_menu as $template_rslt){
$template_id = $template_rslt->prime_bank_template_setting_id;
$template_name = $template_rslt->template_name;
$template_url = site_url("$module_id/index")."/".$template_id;
$menu_li_list .= "<li><a href='$template_url'> <i class='fa fa-angle-double-right fa-lg' aria-hidden='true'></i> $template_name</a></li>";
}
}else{
$menu_li_list .= "<li><a href='$url'> <i class='fa fa-angle-double-right fa-lg' aria-hidden='true'></i> $module_name</a></li>";
}
}else{
$ul_style = "";
$li_style = "";
$sub_menu_length = count($sub_menu);
if($sub_menu_length < 7){
$ul_style = "style='width: 160px !important;'";
$li_style = "style='display:block;width: auto;border:0px !important;'";
}
if($sub_menu_length > 7){
$ul_style = "style='width: 325px !important;'";
$li_style = "style='width: 49.3% !important;'";
}
if($sub_menu_length > 14){
$ul_style = "style='width: 630px !important;'";
$li_style = "style='width: 33.3% !important;'";
}
for($i=0;$i<$sub_menu_length;$i++){
$module_id = $sub_menu[$i]['module_id'];
$module_name = $sub_menu[$i]['module_name'];
$url = site_url("$module_id");
$sub_li_list .= "<li $li_style><a href='$url'> <i class='fa fa-angle-double-right fa-lg' aria-hidden='true'></i> $module_name</a></li>";
}
$sub_menu_li_list .= "<li class='dropdown-submenu'>
<a href='$url' class='dropdown-toggle' data-toggle='dropdown'>$key</a>
<ul class='dropdown-menu master_menu' $ul_style>
$sub_li_list
</ul>
</li>";
$menu_li_list .= $sub_menu_li_list;
$sub_menu_li_list = "";
$sub_li_list = "";
}
}
echo "<li>
<a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button'> $main_key <span class='caret'></span>
</a>
<ul class='dropdown-menu'>
$menu_li_list
</ul>
</li>";
$menu_li_list = "";
}
?>
</ul>
<?php
foreach($notification_menu as $notify_val){
$remainder_head = $notify_val['remainder_head'];
$remainder_count = $notify_val['remainder_count'];
$column_name = $notify_val['remainder_column'];
$days_before = $notify_val['days_before'];
$notification_li .="<li><a style='cursor:pointer;' onclick='get_notify(\"$column_name\",$days_before,\"$remainder_head\");'>$remainder_head <span class='numbercircle'>$remainder_count</span></a></li>";
}
?>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded='true'><span class="fa fa-bell"></span></a>
<ul class='dropdown-menu'>
<?php echo $notification_li; ?>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <?php echo strtoupper("$user_info->user_name")." - $user_info->emp_name"; ?> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><?php echo anchor("profile", "Profile"); ?></li>
<li><?php echo anchor("password_change", "Change Password "); ?></li>
<li><?php echo anchor("home/logout", $this->lang->line("common_logout")); ?></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- <div style="color:red;font-size: 14px;">Note : Our HRMS(CAFSINDIA & PATRONISS) link will be in downtime between 04:00 PM to 07:00 PM for Server maintenance and the migration process to takes place. We apologize in advance for any inconvenience it may cause.</div> -->
<div class="container-fulid" style='margin-top:0px;'>