ok
Direktori : /proc/thread-self/root/home2/selectio/www/lilyexpresslive/expense-invoice/ |
Current File : //proc/thread-self/root/home2/selectio/www/lilyexpresslive/expense-invoice/header.php |
<?php ob_start(); session_start(); $base_url=""; $assets="assets/";$error=0;$warning=0;$message=0;$site_name="Lily Express Services"; $current_page=basename($_SERVER['PHP_SELF']); include"config/config.php"; if(!isset($_SESSION['lily'])) { header('location: login.php'); exit; } $allPermissions=$_SESSION['permission']; //print_r($allPermissions); ?> <html> <head> <meta charset="UTF-8"> <?php if(isset($_GET['inv_no'])){ echo "<title>".$_GET['inv_no']."</title>";}else{ echo "<title>Dashboard |".$site_name."</title>";}?> <link rel="shortcut icon" href="img/sls-logo.png"/> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link href="<?= $assets ?>dist/css/styles.css" rel="stylesheet" type="text/css" /> <script src="<?= $assets ?>plugins/jQuery/jQuery-2.1.4.min.js"></script> </head> <body class="skin-blue fixed sidebar-mini" style="font-family: system-ui;"> <div class="wrapper rtl rtl-inv"> <header class="main-header"> <a href="<?=$base_url?>" class="logo"> <span class="logo-mini">LES</span> <span class="logo-lg"><?=$site_name?></span> </a> <nav class="navbar navbar-static-top" role="navigation"> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li class="hidden-xs hidden-sm"><a href="#" class="clock"></a></li> <li class="hidden-xs"> <a href="<?=$base_url?>" data-toggle="tooltip" data-placement="bottom" title="Dashboard"><i class="fa fa-dashboard"></i></a> </li> <li class="dropdown user user-menu" style="padding-right:5px;"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src="img/sls-logo.png" class="user-image" alt="Avatar" /> <span class="hidden-xs"><?=$_SESSION['lily']['name']?></span> </a> <ul class="dropdown-menu" style="padding-right:3px;"> <li class="user-header"> <img src="img/sls-logo.png" class="img-circle" alt="Avatar" /> <p> <?=$_SESSION['lily']['name']?> <small><?=$_SESSION['role_name']?></small> </p> </li> <li class="user-footer"> <div class="pull-left"> <a href="" class="btn btn-default btn-flat">Profile</a> </div> <div class="pull-right"> <a href="logout.php" class="btn btn-default btn-flat sign_out">Sign Out</a> </div> </li> </ul> </li> </ul> </div> </nav> </header> <aside class="main-sidebar"> <section class="sidebar"> <ul class="sidebar-menu"> <!-- <li class="header">Main Navigation</li> --> <li class="mm_welcome <?php if($current_page=="index.php"){echo "active";}?>"><a href="index.php"><i class="fa fa-dashboard"></i> <span>Dashboard</span></a></li> <?php if($allPermissions['user']['read']=="1"){ ?> <li class="mm_users <?php if($current_page=="users.php" || $current_page=="users-edit.php"){echo "active";}?>"><a href="users.php"><i class="fa fa-th"></i> <span>Users</span></a></li> <?php } ?> <?php if($allPermissions['role']['read']=="1"){ ?> <li class="mm_roles <?php if($current_page=="roles.php"){echo "active";}?>"><a href="roles.php"><i class="fa fa-th"></i> <span>Roles</span></a></li> <?php } ?> <?php if($allPermissions['expense']['read']=="1" || $allPermissions['cash']['read']=="1" || $allPermissions['employee']['read']=="1" || $allPermissions['location']['read']=="1" || $allPermissions['category']['read']=="1"){ ?> <li class="treeview mm_categories <?php if($current_page=="expense.php" || $current_page=="expense-edit.php" || $current_page=="expense-add.php" || $current_page=="cash.php" || $current_page=="cash-edit.php" || $current_page=="cash-add.php" || $current_page=="employee.php" || $current_page=="employee-edit.php" || $current_page=="employee-add.php" || $current_page=="location.php" || $current_page=="location-edit.php" || $current_page=="location-add.php" || $current_page=="category.php" || $current_page=="category-edit.php" || $current_page=="category-add.php" || $current_page=="expense-view.php" ){echo "active";}?>"> <a href="#"> <i class="fa fa-folder"></i> <span>Expense System</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <?php if($allPermissions['expense']['read']=="1"){ ?><li class="mm_expenses <?php if($current_page=="expense.php" || $current_page=="expense-view.php" || $current_page=="expense-edit.php" || $current_page=="expense-add.php"){echo "active";}?>" ><a href="expense.php"><i class="fa fa-th"></i> <span>Expenses</span></a></li><?php } ?> <?php if($allPermissions['cash']['read']=="1"){ ?><li class="mm_manage_cash <?php if($current_page=="cash.php" || $current_page=="cash-edit.php" || $current_page=="cash-add.php"){echo "active";}?>"><a href="cash.php"><i class="fa fa-th"></i> <span>Manage Cash</span></a></li><?php } ?> <?php if($allPermissions['employee']['read']=="1"){ ?><li class="mm_employees <?php if($current_page=="employee.php" || $current_page=="employee-edit.php" || $current_page=="employee-add.php"){echo "active";}?>"><a href="employee.php"><i class="fa fa-th"></i> <span>Employees</span></a></li><?php } ?> <?php if($allPermissions['location']['read']=="1"){ ?><li class="mm_locations <?php if($current_page=="location.php" || $current_page=="location-edit.php" || $current_page=="location-add.php"){echo "active";}?>"><a href="location.php"><i class="fa fa-th"></i> <span>Locations</span></a></li><?php } ?> <?php if($allPermissions['category']['read']=="1"){ ?> <li class="mm_expense_categories <?php if($current_page=="category.php" || $current_page=="category-edit.php" || $current_page=="category-add.php"){echo "active";}?>"><a href="category.php"><i class="fa fa-th"></i> <span>Expense Categories</span></a></li><?php } ?> </ul> </li> <?php } ?> <?php if($allPermissions['client']['read']=="1" || $allPermissions['invoice']['read']=="1"){ ?> <li class="treeview mm_categories <?php if($current_page=="client.php" || $current_page=="client-edit.php" || $current_page=="client-add.php" || $current_page=="invoice.php" || $current_page=="invoice-edit.php" || $current_page=="invoice-add.php" || $current_page=="invoice-view.php" || $current_page=="invoice-view-header.php" || $current_page=="invoice-payment.php" || $current_page=="invoice-payment-add.php" || $current_page=="invoice-payment-edit.php"){echo "active";}?>"> <a href="#"> <i class="fa fa-folder"></i> <span>Invoice System</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <?php if($allPermissions['client']['read']=="1"){ ?> <li class="mm_expenses <?php if($current_page=="client.php" || $current_page=="client-edit.php" || $current_page=="client-add.php" ){echo "active";}?>" ><a href="client.php"><i class="fa fa-th"></i> <span>Clients</span></a></li><?php } ?> <?php if($allPermissions['invoice']['read']=="1"){ ?> <li class="mm_manage_cash <?php if($current_page=="invoice.php" || $current_page=="invoice-edit.php" || $current_page=="invoice-add.php" || $current_page=="invoice-view.php" || $current_page=="invoice-view-header.php" || $current_page=="invoice-payment.php" || $current_page=="invoice-payment-add.php" || $current_page=="invoice-payment-edit.php"){echo "active";}?>"><a href="invoice.php"><i class="fa fa-th"></i> <span>Invoice</span></a></li><?php } ?> </ul> </li> <?php } ?> <!-- <?php if($allPermissions['vendor_client']['read']=="1" || $allPermissions['vendor_invoice']['read']=="1"){ ?> <li class="treeview mm_categories <?php if($current_page=="vendor-client.php" || $current_page=="vendor-client-edit.php" || $current_page=="vendor-client-add.php" || $current_page=="vendor-invoice.php" || $current_page=="vendor-invoice-edit.php" || $current_page=="vendor-invoice-add.php" || $current_page=="vendor-invoice-view.php" || $current_page=="vendor-invoice-view-header.php" || $current_page=="vendor-invoice-payment.php" || $current_page=="vendor-invoice-payment-add.php" || $current_page=="vendor-invoice-payment-edit.php"){echo "active";}?>" > <a href="#"> <i class="fa fa-folder"></i> <span>Vendor Invoice System</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <?php if($allPermissions['vendor_client']['read']=="1"){ ?> <li class="mm_expenses <?php if($current_page=="vendor-client.php" || $current_page=="vendor-client-edit.php" || $current_page=="vendor-client-add.php" ){echo "active";}?>" ><a href="vendor-client.php"><i class="fa fa-th"></i> <span>Vendor Clients</span></a></li><?php } ?> <?php if($allPermissions['vendor_invoice']['read']=="1"){ ?> <li class="mm_manage_cash <?php if($current_page=="vendor-invoice.php" || $current_page=="vendor-invoice-edit.php" || $current_page=="vendor-invoice-add.php" || $current_page=="vendor-invoice-view.php" || $current_page=="vendor-invoice-view-header.php" || $current_page=="vendor-invoice-payment.php" || $current_page=="vendor-invoice-payment-add.php" || $current_page=="vendor-invoice-payment-edit.php"){echo "active";}?>"><a href="vendor-invoice.php"><i class="fa fa-th"></i> <span>Vendor-Invoice</span></a></li><?php } ?> </ul> </li> <?php } ?>--> </ul> </section> </aside>