ok
Direktori : /proc/thread-self/root/home2/selectio/public_html/lilyexpresslive/software/admin/ |
Current File : //proc/thread-self/root/home2/selectio/public_html/lilyexpresslive/software/admin/header.php |
<?php ob_start(); session_start(); include("inc/config.php"); include("inc/functions.php"); include("inc/CSRF_Protect.php"); $csrf = new CSRF_Protect(); $error_message = ''; $success_message = ''; $error_message1 = ''; $success_message1 = ''; $new_dates='2023-04-28'; // Check if the user is logged in or not if(!isset($_SESSION['lily_express_software_live'])) { header('location: login.php'); exit; } $clientId=$_SESSION['lily_express_software_live']['id']; $allPermissions = $_SESSION['permission']; $tbl_branch=""; if($_SESSION['lily_express_software_live']['id']!=1){ $tbl_branch=" and id in (".$_SESSION['lily_express_software_live']['role_branches'].")"; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Admin Panel</title> <link rel="icon" href="../assets/uploads/lily-logo.png" sizes="16x16" type="image/png"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/ionicons.min.css"> <link rel="stylesheet" href="css/datepicker3.css"> <link rel="stylesheet" href="css/all.css"> <link rel="stylesheet" href="css/select2.min.css"> <link rel="stylesheet" href="css/dataTables.bootstrap.css"> <link rel="stylesheet" href="css/jquery.fancybox.css"> <link rel="stylesheet" href="css/AdminLTE.min.css"> <link rel="stylesheet" href="css/_all-skins.min.css"> <link rel="stylesheet" href="css/on-off-switch.css"/> <link rel="stylesheet" href="css/summernote.css"> <link rel="stylesheet" type="text/css" href="style.css"> <style> /* The container */ .checkbox { display: block; padding-left: 35px; margin-bottom: 12px; cursor: pointer; font-size: 15px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Hide the browser's default checkbox */ .checkbox input { opacity: 0; cursor: pointer; height: 0; width: 0; } /* Create a custom checkbox */ .checkbox { height: 25px; width: 25px; background-color: #eee; } /* On mouse-over, add a grey background color */ .checkbox:hover input ~ .checkmark { background-color: #ccc; } /* When the checkbox is checked, add a blue background */ .checkbox input:checked ~ .checkmark { background-color: #f39c12; } /* Create the checkmark/indicator (hidden when not checked) */ .checkbox:after { content: ""; display: none; } /* Show the checkmark when checked */ .checkbox input:checked ~ .checkmark:after { display: block; } /* Style the checkmark/indicator */ .checkbox .checkbox:after { left: 9px; top: 5px; width: 5px; height: 10px; border: solid white; border-width: 0 3px 3px 0; -webkit-transform: rotate(45deg); -ms-transform: rotate(45deg); transform: rotate(45deg); } .required{ color:red; } .skin-yellow .main-header .navbar{ background-color: #261570; } </style> </head> <body class="hold-transition fixed skin-yellow sidebar-mini" style="background-color: white;"> <div class="wrapper"> <header class="main-header"> <a href="index.php" class="logo"> <span class="logo-lg">LILY EXPRESS SERVICES</span> </a> <nav class="navbar navbar-static-top"> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <span style="float:left;line-height:50px;color:#fff;padding-left:15px;font-size:18px;">Admin Panel</span> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li class="dropdown notifications-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-bell-o"></i> <span class="label label-warning" id="error_log_count"></span> </a> <ul class="dropdown-menu"> <li class="header">Recent Api Error Log</li> <li> <div class="slimScrollDiv" id="error_log_msg" style="position: relative; overflow: hidden; width: auto; height: 200px;"> </li> <li class="footer"><a >View All</a></li> </ul> </li> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src="../assets/uploads/<?php echo $_SESSION['lily_express_software_live']['photo']; ?>" class="user-image" alt="User Image"> <span class="hidden-xs"><?php echo $_SESSION['lily_express_software_live']['full_name']; ?></span> </a> <ul class="dropdown-menu"> <li class="user-footer"> <div> <a href="profile-edit.php" class="btn btn-default btn-flat">Edit Profile</a> </div> <div> <a href="logout.php" class="btn btn-default btn-flat">Log out</a> </div> </li> </ul> </li> </ul> </div> </nav> </header> <?php $cur_page = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); ?> <aside class="main-sidebar"> <section class="sidebar"> <ul class="sidebar-menu"> <li class="treeview <?php if($cur_page == 'index.php') {echo 'active';} ?>"> <a href="index.php"> <i class="fa fa-hand-o-right"></i> <span>Dashboard</span> </a> </li> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['branch']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'branch.php') ) {echo 'active';} ?>"> <a href="branch.php"> <i class="fa fa-university"></i> <span>Branch</span> </a> </li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['role']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'role.php') ) {echo 'active';} ?>"> <a href="role.php"> <i class="fa fa-user-times"></i> <span>Roles</span> </a> </li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['client']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'user.php') ) {echo 'active';} ?>"> <a href="user.php"> <i class="fa fa-user-times"></i> <span>Clients</span> </a> </li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['system_user']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'system-users.php') ) {echo 'active';} ?>"> <a href="system-users.php"> <i class="fa fa-user-times"></i> <span>System User</span> </a> </li> <?php } ?> <li class="treeview <?php if( ($cur_page == 'awb-count-details.php') || ($cur_page == 'awb-details.php') || $cur_page == 'logistics.php' || $cur_page == 'logistic-edit.php' || $cur_page == 'logistic-add.php' || ($cur_page == 'awb-list.php')) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-certificate"></i> <span>AWB & Pincode Details <?php if(date("Y-m-d")<=$new_dates){?><img src="img/new.gif" style="width: 15%;"><?php } ?></span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li class="treeview <?php if($cur_page == 'awb-count-details.php') {echo 'active';} ?>"> <a href="awb-count-details.php"> <i class="fa fa-hand-o-right"></i> <span>AWB Count Details</span> </a> </li> <?php // if($clientType=="Admin" || $_SESSION['user']['role_type']==2){ ?> <li class="treeview <?php if( ($cur_page == 'awb-details.php') ) {echo 'active';} ?>"> <a href="awb-details.php"> <i class="fa fa-hand-o-right"></i> <span>Awb Date Details<?php if(date("Y-m-d")<=$new_dates){?><img src="img/new.gif" style="width: 15%;"><?php } ?></span> </a> </li> <li class="treeview <?php if( ($cur_page == 'awb-list.php') ) {echo 'active';} ?>"> <a href="awb-list.php"> <i class="fa fa-hand-o-right"></i> <span>Awb List</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'logistics.php' || $cur_page == 'logistic-edit.php' || $cur_page == 'logistic-add.php') ) {echo 'active';} ?>"> <a href="logistics.php"> <i class="fa fa-hand-o-right"></i> <span>Logistics</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'print-cargo-empty-number.php') ) {echo 'active';} ?>"> <a href="print-cargo-empty-number.php"> <i class="fa fa-hand-o-right"></i> <span>Print Cargo Invoice</span> </a> </li> <?php // } ?> <?php // if($clientType=="Admin" || $_SESSION['user']['role_type']==2){ ?> <li class="treeview <?php if( ($cur_page == 'pincode.php') ) {echo 'active';} ?>"> <a href="pincode.php"> <i class="fa fa-hand-o-right"></i> <span>Pincode</span> </a> </li> <?php // } ?> </ul> </li> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['customer']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'customer.php') ) {echo 'active';} ?>"> <a href="customer.php"> <i class="fa fa-certificate"></i> <span>Customer</span> </a> </li> <?php } ?> <!--Pod Start--> <li><a href="list_pod.php"><i class="fa fa-circle-o"></i> List POD</a></li> <!--Pod End--> <!--Pickup Entry Start--> <li class="treeview <?php if(($cur_page == 'otc-cargo-pickup-entry-add.php') || $cur_page == 'reverse-cargo-pickup-entry-add.php' || ($cur_page == 'cargo-pickup-entry-add.php')|| ($cur_page == 'cargo-pickup-entry-list.php')|| ($cur_page == 'cargo-pickup-entry-pending-list.php')|| ($cur_page == 'cargo-entry-bulk-upload.php')|| ($cur_page == 'cargo-entry-easy-edit.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Cargo Pickup Entry <?php if(date("Y-m-d")<=$new_dates){?><img src="img/new.gif" style="width: 15%;"><?php } ?></span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['one_time_customer']['read']=="1"|| $allPermissions['one_time_customer']['update']=="1"|| $allPermissions['one_time_customer']['create']=="1" ){ ?> <li><a href="otc-cargo-pickup-entry-add.php"><i class="fa fa-circle-o"></i>One Time Customer</a></li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['add_pickup_entry']['create']=="1" ){ ?> <li><a href="cargo-pickup-entry-add.php"><i class="fa fa-circle-o"></i>Add Pickup Entry</a></li> <li><a href="reverse-cargo-pickup-entry-add.php"><i class="fa fa-circle-o"></i>Add Reversed Pickup Entry</a></li> <li><a href="cargo-pickup-entry-list.php"><i class="fa fa-circle-o"></i>List Pickup Entry</a></li> <li><a href="cargo-pickup-entry-pending-list.php"><i class="fa fa-circle-o"></i>Pending List Cargo Entry</a></li> <li><a href="cargo-entry-bulk-upload.php"><i class="fa fa-circle-o"></i>Pickup Entry Bulk Upload <?php if(date("Y-m-d")<=$new_dates){?><img src="img/new.gif" style="width: 15%;"><?php } ?></a></li> <li><a href="cargo-entry-easy-edit.php"><i class="fa fa-circle-o"></i>Easy Edit</a></li> <?php } ?> </ul> </li> <!--Pickup Entry End--> <!--*****************************************************************--> <!--Ganesan Extra Code For Pickup Entry End--> <?php // if($clientType=="Admin" || $clientType=="Cargo"){ ?> <?php // } ?> <li class="treeview <?php if( ($cur_page == 'shipment_tracking.php') || ($cur_page == 'delivery.php')) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-certificate"></i> <span>Tracking & Status </span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['manifest']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'manifest.php') ) {echo 'active';} ?>"> <a href="manifest.php"> <i class="fa fa-hand-o-right"></i> <span>Manifest</span> </a> </li> <?php }?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['tracking']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'shipment_tracking.php') ) {echo 'active';} ?>"> <a href="shipment_tracking.php"> <i class="fa fa-hand-o-right"></i> <span>Shipment Tracking</span> </a> </li> <?php } ?> <?php // if($clientType=="Admin" || $_SESSION['user']['role_type']==2){ ?> <li class="treeview <?php if( ($cur_page == 'delivery.php') ) {echo 'active';} ?>"> <a href="delivery.php"> <i class="fa fa-hand-o-right"></i> <span>Delivery</span> </a> </li> <?php // }?> </ul> </li> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['reports']['read']=="1" ){ ?> <li class="treeview <?php if( ($cur_page == 'mis-report.php') || ($cur_page == 'all-report.php')) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-certificate"></i> <span>Reports <?php if(date("Y-m-d")<=$new_dates){?><img src="img/new.gif" style="width: 15%;"><?php } ?></span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li class="treeview <?php if( ($cur_page == 'mis-report.php') ) {echo 'active';} ?>"> <a href="mis-report.php"> <i class="fa fa-hand-o-right"></i> <span>Mis Report <?php if(date("Y-m-d")<=$new_dates){?><img src="img/new.gif" style="width: 15%;"><?php } ?></span> </a> </li> <li class="treeview <?php if( ($cur_page == 'all-report.php') ) {echo 'active';} ?>"> <a href="all-report.php"> <i class="fa fa-hand-o-right"></i> <span>All Report</span> </a> </li> </ul> </li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['transports']['read']=="1" || $allPermissions['contents']['read']=="1" || $allPermissions['backups']['read']=="1"){ ?> <li class="treeview <?php if( ($cur_page == 'shipment_tracking.php') || ($cur_page == '')) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-certificate"></i> <span>Setting </span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['transports']['read']=="1"){ ?> <li class="treeview <?php if( ($cur_page == 'transport.php')|| ($cur_page == 'transport-add.php')|| ($cur_page == 'transport-edit.php')|| ($cur_page == 'driver-add.php')|| ($cur_page == 'driver-edit.php')|| ($cur_page == 'driver.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Transport</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="transport.php"><i class="fa fa-circle-o"></i>Transport List</a></li> <li><a href="driver.php"><i class="fa fa-circle-o"></i>Driver List</a></li> </ul> </li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['contents']['read']=="1"){ ?> <li class="treeview <?php if( ($cur_page == 'content_desc.php') ) {echo 'active';} ?>"> <a href="#"> <i class="fa fa-hand-o-right"></i> <span>Contents</span> <span class="pull-right-container"> <i class="fa fa-angle-left pull-right"></i> </span> </a> <ul class="treeview-menu"> <li><a href="content_desc.php"><i class="fa fa-circle-o"></i> Material Content</a></li> </ul> </li> <?php } ?> <?php if($_SESSION['lily_express_software_live']['id']==1 || $allPermissions['backups']['read']=="1"){ ?> <li class="treeview <?php if( ($cur_page == 'api-error_log.php') ) {echo 'active';} ?>"> <a href="api-error_log.php"> <i class="fa fa-hand-o-right"></i> <span>Api Error Log</span> </a> </li> <li class="treeview <?php if( ($cur_page == 'admin-backup.php') ) {echo 'active';} ?>"> <a href="admin-backup.php"> <i class="fa fa-hand-o-right"></i> <span>Administrartor Backup</span> </a> </li> <?php } ?> </ul> </li> <?php } ?> </ul> </section> </aside> <?php // ********************** Common variable Declaration **************************** $awb_variable="AWB-"; ?> <script> setInterval(function(){ $.ajax({ url: 'api-error-log-list.php', type: 'post', data: {type:'error_log'}, dataType: 'json', success:function(response){ $('#error_log_msg').empty(); // alert(response[0]['status']); // console.log(response); if(response[0]['count']!=0){ $('#error_log_count').text(response[0]['count']);} var con='<ul class="menu" style="overflow: hidden; width: 100%; height: auto;"><li>' for(var n=0;n<response[0]['count'];n++){ var msg=response[0]['status'][n]['text']; // console.log(msg); con+='<a href="api-error_log.php" class="load_suspended">'+response[0]['status'][n]['created_at']+' '+response[0]['status'][n]['type']+'<br><strong>'+response[0]['status'][n]['text']+'</strong></a>'; } con+='</li></ul>'; $('#error_log_msg').append(con); } }); }, 500); </script> <div class="content-wrapper" style="background-color: white;">