ok
Direktori : /proc/self/root/home2/selectio/www/mm-tailor-billing/themes/default/views/ |
Current File : //proc/self/root/home2/selectio/www/mm-tailor-billing/themes/default/views/header.php |
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); ?> <!DOCTYPE html> <style> body{ /*font-size: 18px !important;*/ } </style> <html> <head> <meta charset="UTF-8"> <title><?= $page_title.' | '.$Settings->site_name; ?></title> <link rel="shortcut icon" href="<?= $assets ?>images/icon.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" /> <?= $Settings->rtl ? '<link href="'.$assets.'dist/css/rtl.css" rel="stylesheet" />' : ''; ?> <script src="<?= $assets ?>plugins/jQuery/jQuery-2.1.4.min.js"></script> </head> <?php $curr_page = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1); $cur_page = $_SERVER['PHP_SELF']; error_log($cur_page); error_log($curr_page);?> <!--(Default)fixed sidebar-mini--> <?php //error_log($cur_page);if($cur_page=='sales'){ echo "sidebar-collapse sidebar-mini pos";}else{"fixed sidebar-mini";}?> <body class="skin-<?=$Settings->theme_style;?> sidebar-collapse sidebar-mini pos"> <div class="wrapper rtl rtl-inv"> <header class="main-header"> <a href="<?= site_url(); ?>" class="logo"> <?php if ($store) { ?> <span class="logo-mini"><b>MM</b><?//= $store->code; ?></span> <span class="logo-lg"><b><?= $store->name == 'SimplePOS' ? 'Simple<b>POS</b>' : $store->name; ?></b></span> <?php } else { ?> <span class="logo-mini"><b>MM</b></span> <span class="logo-lg"><b><?= $Settings->site_name == 'SimplePOS' ? 'Simple<b>POS</b>' : $Settings->site_name; ?></b></span> <?php } ?> </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> <ul class="nav navbar-nav pull-left"> <!--<li class="dropdown hidden-xs" hidden> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="<?= $assets; ?>images/<?= $Settings->selected_language; ?>.png" alt="<?= $Settings->selected_language; ?>"></a> <ul class="dropdown-menu"> <?php $scanned_lang_dir = array_map(function ($path) { return basename($path); }, glob(APPPATH . 'language/*', GLOB_ONLYDIR)); foreach ($scanned_lang_dir as $entry) { ?> <li><a href="<?= site_url('pos/language/' . $entry); ?>"><img src="<?= $assets; ?>images/<?= $entry; ?>.png" class="language-img"> <?= ucwords($entry); ?></a></li> <?php } ?> </ul> </li>--> <!-- Quick Links Starts Here --> <div class="box-body"> <?php if ($this->session->userdata('store_id')) { ?> <a class="btn btn-quick" href="<?= site_url('pos'); ?>" title="<?= lang('pos'); ?>"> <i class="fa fa-th"></i> </a> <?php } ?> <a class="btn btn-quick" href="<?= site_url('customers'); ?>" title="<?= lang('customers'); ?>"> <i class="fa fa-users"></i> </a> <a class="btn btn-quick" href="<?= site_url('sales'); ?>" title="<?= lang('sales'); ?>"> <i class="fa fa-shopping-cart"></i> </a> <a class="btn btn-quick" href="<?= site_url('incomes'); ?>" title="<?= lang('incomes'); ?>"> <i class="fa fa-inr"></i> <b>Inc</b> </a> <a class="btn btn-quick" href="<?= site_url('expenses'); ?>" title="<?= lang('expenses'); ?>"> <i class="fa fa-inr"></i> <b>Exp</b> </a> <a class="btn btn-quick" href="<?= site_url('material_usage'); ?>" title="<?= lang('material_usage'); ?>"> <i class="fa fa-scissors"></i> </a> <!--<a class="btn btn-quick" href="<?= site_url('products'); ?>" title="<?= lang('products'); ?>"> <i class="fa fa-barcode"></i> </a> <a class="btn btn-quick" href="<?= site_url('categories'); ?>" title="<?= lang('categories'); ?>"> <i class="fa fa-folder-open"></i> </a>--> <?php if ($Admin) { ?> <a class="btn btn-quick" href="<?= site_url('reports'); ?>" title="<?= lang('reports'); ?>"> <i class="fa fa-bar-chart-o"></i> </a> <?php } ?> </div> <style> .btn-quick { position: relative; padding: 4px 0px; margin: 0px 0 0px 6px; min-width: 50px; height: 30px; text-align: center; color: #666; border: 1px solid #ddd; background-color: #f4f4f4; font-size: 15px; } </style> <!-- Quick Links Ends Here --> <?php if ($Settings->multi_store && !$this->session->userdata('has_store_id') && $this->session->userdata('store_id')) { ?> <li> <a href="<?= site_url('stores/deselect_store'); ?>" data-toggle="tooltip" data-placement="right" title="<?= lang('deselect_store'); ?>"><i class="fa fa-square"></i></a> </li> <?php } ?> </ul> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <!--<form action="https://mm-tailor.firstmatrix.in.net/sales/?cus=" method="GET">--> <li style="margin-top: 8px;width: 250px;"> <input name="search_cus_details" class="form-control" placeholder="Search Customer Details" style="width:100%;" id="search_cus_details" /> </li> <li style="margin-top: 8px;"> <button type="submit" id="cus_submit" class="btn btn-info"><i class="fa fa-search"></i></button> </li> <!--</form>--> <!--<li class="hidden-xs hidden-sm"><a href="#" class="clock"></a></li>--> <li class="hidden-xs"><a href="<?= site_url(); ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang('dashboard'); ?>"><i class="fa fa-dashboard"></i></a></li> <?php if ($Admin) { ?> <li class="hidden-xs"><a href="<?= site_url('settings'); ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang('settings'); ?>"><i class="fa fa-cogs"></i></a></li> <?php } ?> <?php if ($this->db->dbdriver != 'sqlite3') { ?> <li><a href="<?= site_url('pos/view_bill'); ?>" target="_blank" data-toggle="tooltip" data-placement="bottom" title="<?= lang('view_bill'); ?>"><i class="fa fa-desktop"></i></a></li> <?php } ?> <li><a href="<?= site_url('pos'); ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang('pos'); ?>"><i class="fa fa-th"></i></a></li> <?php if ($Admin && $qty_alert_num && $this->session->userdata('store_id')) { ?> <li> <a href="<?= site_url('reports/alerts'); ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang('alerts'); ?>"> <i class="fa fa-bullhorn"></i> <span class="label label-warning"><?= $qty_alert_num; ?></span> </a> </li> <?php } ?> <?php if ($suspended_sales && $this->session->userdata('store_id')) { ?> <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"><?=sizeof($suspended_sales);?></span> </a> <ul class="dropdown-menu"> <li class="header"><?=lang('recent_suspended_sales');?></li> <li> <ul class="menu"> <li> <?php foreach ($suspended_sales as $ss) { echo '<a href="'.site_url('pos/?hold='.$ss->id).'" class="load_suspended">'.$this->tec->hrld($ss->date).' ('.$ss->customer_name.')<br><strong>'.$ss->hold_ref.'</strong></a>'; } ?> </li> </ul> </li> <li class="footer"><a href="<?= site_url('sales/opened'); ?>"><?= lang('view_all'); ?></a></li> </ul> </li> <?php } ?> <li class="dropdown user user-menu" style="padding-right:5px;"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src="<?= base_url('uploads/avatars/thumbs/'.($this->session->userdata('avatar') ? $this->session->userdata('avatar') : $this->session->userdata('gender').'.png')) ?>" class="user-image" alt="Avatar" /> <span class="hidden-xs"><?= $this->session->userdata('first_name').' '.$this->session->userdata('last_name'); ?></span> </a> <ul class="dropdown-menu" style="padding-right:3px;"> <li class="user-header"> <img src="<?= base_url('uploads/avatars/'.($this->session->userdata('avatar') ? $this->session->userdata('avatar') : $this->session->userdata('gender').'.png')) ?>" class="img-circle" alt="Avatar" /> <p> <?= $this->session->userdata('email'); ?> <small><?= lang('member_since').' '.$this->session->userdata('created_on'); ?></small> </p> </li> <li class="user-footer"> <div class="pull-left"> <a href="<?= site_url('users/profile/'.$this->session->userdata('user_id')); ?>" class="btn btn-default btn-flat"><?= lang('profile'); ?></a> </div> <div class="pull-right"> <a href="<?= site_url('logout'); ?>" class="btn btn-default btn-flat<?= $this->session->userdata('register_id') ? ' sign_out' : ''; ?>"><?= lang('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"><?= lang('mian_navigation'); ?></li> --> <!-- ******************* Left Sidebar Section Starts Here ************************* --> <li class="mm_welcome"><a href="<?= site_url(); ?>"><i class="fa fa-dashboard"></i> <span><?= lang('dashboard'); ?></span></a></li> <?php if ($Settings->multi_store && !$this->session->userdata('store_id')) { ?> <li class="mm_stores"><a href="<?= site_url('stores'); ?>"><i class="fa fa-building-o"></i> <span><?= lang('stores'); ?></span></a></li> <?php } ?> <li class="mm_pos"><a href="<?= site_url('pos'); ?>"><i class="fa fa-th"></i> <span><?= lang('pos'); ?></span></a></li> <?php if ($Admin) { ?> <li class="mm_customers"><a href="<?= site_url('customers'); ?>"><i class="fa fa-users"></i> <span><?= lang('customers'); ?></span></a></li> <li class="mm_sales"><a href="<?= site_url('sales'); ?>"><i class="fa fa-shopping-cart"></i> <span><?= lang('sales'); ?></span></a></li> <li class="treeview mm_expenses mm_incomes"> <a href="#"> <i class="fa fa-inr"></i> <span>Incomes & Expenses</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="incomes_index"><a href="<?= site_url('incomes'); ?>"><i class="fa fa-circle-o"></i> <?= lang('incomes'); ?></a></li> <li class="divider"></li> <li id="expenses_index"><a href="<?= site_url('expenses'); ?>"><i class="fa fa-circle-o"></i> <?= lang('expenses'); ?></a></li> </ul> </li> <!-- Material Usage Starts Here --> <li class="treeview mm_material_usage"> <a href="#"> <i class="fa fa-exchange"></i> <span><?= lang('material_usage'); ?></span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="material_usage_index"><a href="<?= site_url('material_usage'); ?>"><i class="fa fa-circle-o"></i> <?= lang('material_usage'); ?></a></li> <li id="material_usage_units"><a href="<?= site_url('material_usage/units'); ?>"><i class="fa fa-circle-o"></i> <?= lang('units'); ?></a></li> </ul> </li> <!-- Material Usage Ends Here --> <li class="treeview mm_products mm_purchases mm_suppliers mm_categories"> <a href="#"> <i class="fa fa-folder-open"></i> <span>Product Management</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="products_index"><a href="<?= site_url('products'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_products'); ?></a></li> <li id="purchases_index"><a href="<?= site_url('purchases'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_purchases'); ?></a></li> <li id="suppliers_index"><a href="<?= site_url('suppliers'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_suppliers'); ?></a></li> <li id="categories_index"><a href="<?= site_url('categories'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_sectors'); ?></a></li> </ul> </li> <li class="treeview mm_mmcategories mm_extra_option"> <a href="#"> <i class="fa fa-bars"></i> <span>Item Management</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="mmcategories_index"><a href="<?= site_url('mmcategories'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_mmcategories'); ?></a></li> <li id="mmcategories_sub_list"><a href="<?= site_url('mmcategories/sub_list'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_mmsubcategories'); ?></a></li> <li id="extra_option_index"><a href="<?= site_url('extra_option'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_extra_option'); ?></a></li> </ul> </li> <li class="treeview mm_auth"> <a href="#"> <i class="fa fa-users"></i> <span><?= lang('users'); ?></span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="auth_users"><a href="<?= site_url('users'); ?>"><i class="fa fa-circle-o"></i> <?= lang('list_users'); ?></a></li> <li id="auth_add"><a href="<?= site_url('users/add'); ?>"><i class="fa fa-circle-o"></i> <?= lang('add_user'); ?></a></li> </ul> </li> <!--<li class="treeview mm_settings"> <a href="#"> <i class="fa fa-cogs"></i> <span><?= lang('settings'); ?></span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="settings_index"><a href="<?= site_url('settings'); ?>"><i class="fa fa-circle-o"></i> <?= lang('settings'); ?></a></li> <li class="divider"></li> <li id="settings_stores"><a href="<?= site_url('settings/stores'); ?>"><i class="fa fa-circle-o"></i> <?= lang('stores'); ?></a></li> <?php if ($Settings->multi_store) { ?> <li id="settings_add_store"><a href="<?= site_url('settings/add_store'); ?>"><i class="fa fa-circle-o"></i> <?= lang('add_store'); ?></a></li> <li class="divider"></li> <?php } ?> <li id="settings_printers"><a href="<?= site_url('settings/printers'); ?>"><i class="fa fa-circle-o"></i> <?= lang('printers'); ?></a></li> <li id="settings_add_printer"><a href="<?= site_url('settings/add_printer'); ?>"><i class="fa fa-circle-o"></i> <?= lang('add_printer'); ?></a></li> <li class="divider"></li> <?php if ($this->db->dbdriver != 'sqlite3') { ?> <li id="settings_backups"><a href="<?= site_url('settings/backups'); ?>"><i class="fa fa-circle-o"></i> <?= lang('backups'); ?></a></li> <?php } ?> <li id="settings_updates"><a href="<?= site_url('settings/updates'); ?>"><i class="fa fa-circle-o"></i> <?= lang('updates'); ?></a></li> </ul> </li>--> <!--<li id="reports_index"><a href="<?= site_url('reports'); ?>"><i class="fa fa-bar-chart-o"></i> <?= lang('reports'); ?></a></li>--> <li class="treeview mm_reports"> <a href="#"> <i class="fa fa-bar-chart-o"></i> <span><?= lang('reports'); ?></span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="reports_index"><a href="<?= site_url('reports'); ?>"><i class="fa fa-circle-o"></i> <?= lang('sales_report'); ?></a></li> <li id="reports_sale_items_report"><a href="<?= site_url('reports/sale_items_report'); ?>"><i class="fa fa-circle-o"></i> <?= lang('sale_items_report'); ?></a></li> <li id="reports_customers"><a href="<?= site_url('reports/customers'); ?>"><i class="fa fa-circle-o"></i> Customer Balance<?//= lang('customers_report'); ?></a></li> <li id="reports_products"><a href="<?= site_url('reports/products'); ?>"><i class="fa fa-circle-o"></i> <?= lang('products_report'); ?></a></li> <li id="reports_expenses"><a href="<?= site_url('reports/expenses'); ?>"><i class="fa fa-circle-o"></i> <?= lang('expenses_report'); ?></a></li> <li id="reports_material_usage_report"><a href="<?= site_url('404'); ?>"><i class="fa fa-circle-o"></i> <?= lang('material_usage'); ?></a></li> <li id="reports_inc_exp_report"><a href="<?= site_url('404'); ?>"><i class="fa fa-circle-o"></i> <?= lang('inc_exp_report'); ?></a></li> <li id="reports_dc_income_report"><a href="<?= site_url('reports/dc_income_report'); ?>"><i class="fa fa-circle-o"></i> <?= lang('dc_income_report'); ?></a></li> <li id="reports_balance_report"><a href="<?= site_url('404'); ?>"><i class="fa fa-circle-o"></i> <?= lang('balance_report'); ?></a></li> <li id="reports_staff_report"><a href="<?= site_url('reports/staff_report'); ?>"><i class="fa fa-circle-o"></i> <?= lang('staff_report'); ?></a></li> <!--<li id="reports_payments"><a href="<?= site_url('reports/payments'); ?>"><i class="fa fa-circle-o"></i> <?= lang('payments_report'); ?></a></li>--> <!--<li id="expenses_index"><a href="<?= site_url('expenses'); ?>"><i class="fa fa-circle-o"></i> <?= lang('expenses_report'); ?></a></li> <li id="material_usage_index"><a href="<?= site_url('material_usage'); ?>"><i class="fa fa-circle-o"></i> <?= lang('material_usage_report'); ?></a></li> <li id="purchases_index"><a href="<?= site_url('purchases'); ?>"><i class="fa fa-circle-o"></i> <?= lang('purchases_report'); ?></a></li> <li id="products_index"><a href="<?= site_url('products'); ?>"><i class="fa fa-circle-o"></i> <?= lang('balance_stock_report'); ?></a></li>--> </ul> </li> <li class="mm_pos"><a href="hrm/index.php"><i class="fa fa-calendar"></i> <span>HRMS</span></a></li> <!--<li class="treeview mm_reports"> <a href="#"> <i class="fa fa-bar-chart-o"></i> <span>Advanced Reports</span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="reports_daily_sales"><a href="<?= site_url('reports/daily_sales'); ?>"><i class="fa fa-circle-o"></i> <?= lang('daily_sales'); ?></a></li> <li id="reports_payments"><a href="<?= site_url('reports/payments'); ?>"><i class="fa fa-circle-o"></i> <?= lang('payments_report'); ?></a></li> <li id="reports_monthly_sales"><a href="<?= site_url('reports/monthly_sales'); ?>"><i class="fa fa-circle-o"></i> <?= lang('monthly_sales'); ?></a></li> <li id="reports_top_products"><a href="<?= site_url('reports/top_products'); ?>"><i class="fa fa-circle-o"></i> <?= lang('top_products'); ?></a></li> </ul> </li>--> <!--<li class="treeview mm_reports"> <a href="#"> <i class="fa fa-bar-chart-o"></i> <span><?= lang('reports'); ?></span> <i class="fa fa-angle-left pull-right"></i> </a> <ul class="treeview-menu"> <li id="reports_daily_sales"><a href="<?= site_url('reports/daily_sales'); ?>"><i class="fa fa-circle-o"></i> <?= lang('daily_sales'); ?></a></li> <li id="reports_monthly_sales"><a href="<?= site_url('reports/monthly_sales'); ?>"><i class="fa fa-circle-o"></i> <?= lang('monthly_sales'); ?></a></li> <li id="reports_index"><a href="<?= site_url('reports'); ?>"><i class="fa fa-circle-o"></i> <?= lang('sales_report'); ?></a></li> <li class="divider"></li> <li id="reports_payments"><a href="<?= site_url('reports/payments'); ?>"><i class="fa fa-circle-o"></i> <?= lang('payments_report'); ?></a></li> <li class="divider"></li> <li id="reports_registers"><a href="<?= site_url('reports/registers'); ?>"><i class="fa fa-circle-o"></i> <?= lang('registers_report'); ?></a></li> <li class="divider"></li> <li id="reports_top_products"><a href="<?= site_url('reports/top_products'); ?>"><i class="fa fa-circle-o"></i> <?= lang('top_products'); ?></a></li> <li id="reports_products"><a href="<?= site_url('reports/products'); ?>"><i class="fa fa-circle-o"></i> <?= lang('products_report'); ?></a></li> </ul> </li>--> <!-- ******************* Left Sidebar Section Ends Here ************************* --> <?php if ($this->session->userdata('store_id')) { ?> <?php } ?> <?php } else { ?> <?php if ($this->session->userdata('store_id')) { ?> <?php } ?> <?php } ?> </ul> </section> </aside> <div class="content-wrapper"> <section class="content-header"> <h1><?= $page_title; ?></h1> <ol class="breadcrumb"> <li><a href="<?= site_url(); ?>"><i class="fa fa-dashboard"></i> <?= lang('home'); ?></a></li> <?php foreach ($bc as $b) { if ($b['link'] === '#') { echo '<li class="active">' . $b['page'] . '</li>'; } else { echo '<li><a href="' . $b['link'] . '">' . $b['page'] . '</a></li>'; } } ?> </ol> </section> <div class="col-lg-12 alerts"> <div id="custom-alerts" style="display:none;"> <div class="alert alert-dismissable"> <div class="custom-msg"></div> </div> </div> <?php if ($error) { ?> <div class="alert alert-danger alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4><i class="icon fa fa-ban"></i> <?= lang('error'); ?></h4> <?= $error; ?> </div> <?php } if ($warning) { ?> <div class="alert alert-warning alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4><i class="icon fa fa-warning"></i> <?= lang('warning'); ?></h4> <?= $warning; ?> </div> <?php } if ($message) { ?> <div class="alert alert-success alert-dismissable"> <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button> <h4> <i class="icon fa fa-check"></i> <?= lang('Success'); ?></h4> <?= $message; ?> </div> <?php } ?> </div> <div class="clearfix"></div> <script> function isNumberKey(txt, evt) { var charCode = (evt.which) ? evt.which : evt.keyCode; if (charCode == 46) { //Check if the text already contains the . character if (txt.value.indexOf('.') === -1) { return true; } else { return false; } } else { if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; } return true; } </script> <script> $(document).ready(function () { $("#cus_submit").on("click", function(){ var customer = $("#search_cus_details").val(); //window.location.href = "sales/?cus="+customer; window.location.href = "<?= site_url('customers/?cus='); ?>"+customer; /*https://mm-tailor.firstmatrix.in.net/sales/?cus=*/ }); $('#search_cus_details').keypress(function (e) { var key = e.which; if(key == 13) // the enter key code { var customer = $("#search_cus_details").val(); window.location.href = "<?= site_url('customers/?cus='); ?>"+customer; } }); }); </script> <script> $(document).on('click', 'table.table tbody tr', function () { $('table tr').css('background','#ffffff'); $(this).css('background','#abe2eb'); }); </script>