Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $CI = & get_instance(); $CI->load->model('Web_settings'); $CI->load->model('Repor..
Decoded Output download
<?php
$CI = & get_instance();
$CI->load->model('Web_settings');
$CI->load->model('Reports');
$CI->load->model('Users');
$Web_settings = $CI->Web_settings->retrieve_setting_editdata();
$users = $CI->Users->profile_edit_data();
$out_of_stock = $CI->Reports->out_of_stock_count();
?>
<header class="main-header">
<a href="<?php echo base_url() ?>" class="logo"> <!-- Logo -->
<span class="logo-mini">
<!--<b>A</b>BD-->
<img src="<?php echo base_url() ?>/logo.png" alt="">
</span>
<span class="logo-lg">
<!--<b>Admin</b>BD-->
<img src="<?php echo base_url() ?>/logo.png" alt="">
</span>
</a>
<!-- Header Navbar -->
<nav class="navbar navbar-static-top text-center">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <!-- Sidebar toggle button-->
<span class="sr-only">Toggle navigation</span>
<span class="pe-7s-keypad"></span>
</a>
<?php
$urcolp = '0';
if($this->uri->segment(2) =="gui_pos" ){
$urcolp = "gui_pos";
}
if($this->uri->segment(2) =="pos_invoice" ){
$urcolp = "pos_invoice";
}
if($this->uri->segment(2) != $urcolp ){
if($this->permission1->method('new_invoice','create')->access()){
?>
<?php }?>
<?php if($this->permission1->method('customer_receive','create')->access()){ ?>
<a href="<?php echo base_url('accounts/customer_receive')?>" class="btn btn-success btn-outline"><i class="fa fa-money"></i> <?php echo display('customer_receive')?></a>
<?php } ?>
<?php if($this->permission1->method('add_purchase','create')->access()){ ?>
<!-- <a href="<?php echo base_url('Cpurchase')?>" class="btn btn-success btn-outline"><i class="ti-shopping-cart"></i> <?php echo display('purchase') ?></a> -->
<?php }} ?>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- <li class="dropdown notifications-menu">
<a href="<?php echo base_url('Creport/out_of_stock') ?>" >
<i class="pe-7s-attention" title="<?php echo display('out_of_stock') ?>"></i>
<span class="label label-danger"><?php echo html_escape($out_of_stock) ?></span>
</a>
</li> -->
<!-- settings -->
<li class="dropdown dropdown-user">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="pe-7s-settings"></i></a>
<ul class="dropdown-menu">
<li><a href="<?php echo base_url('Admin_dashboard/edit_profile') ?>"><i class="pe-7s-users"></i><?php echo display('user_profile') ?></a></li>
<li><a href="<?php echo base_url('Admin_dashboard/change_password_form') ?>"><i class="pe-7s-settings"></i><?php echo display('change_password') ?></a></li>
<li><a href="<?php echo base_url('Admin_dashboard/logout') ?>"><i class="pe-7s-key"></i><?php echo display('logout') ?></a></li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<aside class="main-sidebar">
<!-- sidebar -->
<div class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel text-center">
<div class="image">
<img src="<?php echo html_escape($users[0]['logo']) ?>" class="img-circle" alt="User Image">
</div>
<div class="info">
<p><?php echo $this->session->userdata('user_name') ?></p>
<a href="#"><i class="fa fa-circle text-success"></i> <?php echo display('online') ?></a>
</div>
</div>
<!-- sidebar menu -->
<ul class="sidebar-menu">
<li class="<?php
if ($this->uri->segment('1') == ("")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="<?php echo base_url() ?>"><i class="ti-dashboard"></i> <span><?php echo display('dashboard') ?></span>
<span class="pull-right-container">
<span class="label label-success pull-right"></span>
</span>
</a>
</li>
<!-- service menu start -->
<?php if($this->permission1->method('create_service','create')->access() || $this->permission1->method('manage_service','read')->access() || $this->permission1->method('service_invoice','create')->access() || $this->permission1->method('manage_service_invoice','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cservice")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-asl-interpreting"></i><span><?php echo display('service') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('create_service','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cservice") && $this->uri->segment('2') == ("")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice') ?>"><?php echo display('add_service') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_service','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("manage_service")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice/manage_service') ?>"><?php echo display('manage_service') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('service_invoice','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("service_invoice_form")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice/service_invoice_form') ?>"><?php echo display('service_invoice') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_service_invoice','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("manage_service_invoice")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice/manage_service_invoice') ?>"><?php echo display('manage_service_invoice') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- Invoice menu start -->
<?php if($this->permission1->method('new_invoice','create')->access() || $this->permission1->method('manage_invoice','read')->access() || $this->permission1->method('pos_invoice','create')->access() || $this->permission1->method('gui_pos','create')->access()){
} ?>
<!-- Invoice menu end -->
<!-- Customer menu start -->
<?php if($this->permission1->method('add_customer','create')->access() || $this->permission1->method('manage_customer','read')->access() || $this->permission1->method('credit_customer','read')->access() || $this->permission1->method('paid_customer','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Ccustomer")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-handshake-o"></i><span><?php echo display('customer') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_customer','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Ccustomer") && $this->uri->segment('2') == ("")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer') ?>"><?php echo display('add_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_customer','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("manage_customer")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/manage_customer') ?>"><?php echo display('manage_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('customer_ledger','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("customer_ledger_report")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/customer_ledger_report') ?>"><?php echo display('customer_ledger') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('credit_customer','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("credit_customer")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/credit_customer') ?>"><?php echo display('credit_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('paid_customer','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("paid_customer")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/paid_customer') ?>"><?php echo display('paid_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('customer_advance','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("customer_advance")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/customer_advance') ?>"><?php echo display('customer_advance') ?></a></li>
<?php } ?>
</ul>
</li>
<?php }?>
<!-- Customer menu end -->
<!-- Product menu start -->
<?php if($this->permission1->method('create_product','create')->access() || $this->permission1->method('add_product_csv','create')->access() || $this->permission1->method('manage_product','read')->access() || $this->permission1->method('create_category','create')->access() || $this->permission1->method('manage_category','read')->access() || $this->permission1->method('add_unit','create')->access() || $this->permission1->method('manage_unit','read')->access()){
}?>
<!-- Product menu end -->
<!-- --- supplier menu start -->
<?php if($this->permission1->method('add_supplier','create')->access() || $this->permission1->method('manage_supplier','read')->access() || $this->permission1->method('supplier_ledger_report','read')->access() || $this->permission1->method('supplier_sales_details_all','read')->access()){
} ?>
<!-- Supplier menu end -->
<!-- Purchase menu start -->
<?php if($this->permission1->method('add_purchase','create')->access() || $this->permission1->method('manage_purchase','read')->access()){
} ?>
<!-- Purchase menu end -->
<!-- Quotation Menu Start -->
<?php if($this->permission1->method('add_quotation','create')->access() || $this->permission1->method('manage_quotation','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cquotation")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-book"></i><span><?php echo display('quotation') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_quotation','create')->access()){ ?>
<li><a href="<?php echo base_url('Cquotation') ?>"><?php echo display('add_quotation') ?></a></li>
<?php }?>
<?php if($this->permission1->method('manage_quotation','read')->access()){ ?>
<li><a href="<?php echo base_url('Cquotation/manage_quotation') ?>"><?php echo display('manage_quotation') ?></a></li>
<?php } ?>
</ul>
</li>
<?php }?>
<!-- quotation Menu end -->
<!-- Stock menu start -->
<?php if($this->permission1->method('stock_report','read')->access() || $this->permission1->method('stock_report_sp_wise','read')->access() || $this->permission1->method('stock_report_pro_wise','read')->access()){
}?>
<!-- Stock menu end -->
<?php if($this->permission1->method('add_return','create')->access() || $this->permission1->method('return_list','read')->access() || $this->permission1->method('supplier_return_list','read')->access() || $this->permission1->method('wastage_return_list','read')->access()){
} ?>
<!-- Report menu start -->
<?php if($this->permission1->method('add_closing','create')->access() || $this->permission1->method('closing_report','read')->access() || $this->permission1->method('all_report','read')->access() || $this->permission1->method('todays_customer_receipt','read')->access() || $this->permission1->method('todays_sales_report','read')->access() || $this->permission1->method('retrieve_dateWise_DueReports','read')->access() || $this->permission1->method('todays_purchase_report','read')->access() || $this->permission1->method('purchase_report_category_wise','read')->access() || $this->permission1->method('product_sales_reports_date_wise','read')->access() || $this->permission1->method('sales_report_category_wise','read')->access() || $this->permission1->method('shipping_cost_report','read')->access()){
}?>
<!-- Report menu end -->
<!--New Account start-->
<?php if($this->permission1->method('show_tree','read')->access() || $this->permission1->method('supplier_payment','create')->access()|| $this->permission1->method('customer_receive','create')->access() || $this->permission1->method('debit_voucher','create')->access() || $this->permission1->method('credit_voucher','create')->access() || $this->permission1->method('aprove_v','read')->access() || $this->permission1->method('contra_voucher','create')->access() || $this->permission1->method('journal_voucher','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("accounts")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-money"></i><span><?php echo display('accounts') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('customer_receive','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("customer_receive")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('accounts/customer_receive') ?>"><?php echo display('customer_receive'); ?></a></li>
<?php }?>
<?php if($this->permission1->method('cash_adjustment','create')->access()){
}?>
<?php if($this->permission1->method('ac_report','create')->access()){
} ?>
</ul>
</li>
<?php } ?>
<!-- New Account End -->
<!-- Bank menu start -->
<?php if($this->permission1->method('add_bank','create')->access() || $this->permission1->method('bank_transaction','create')->access() || $this->permission1->method('bank_list','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("index") || $this->uri->segment('2') == ("bank_list") || $this->uri->segment('2') == ("bank_ledger") || $this->uri->segment('2') == ("bank_transaction")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-briefcase"></i><span><?php echo display('bank') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_bank','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Csettings") && $this->uri->segment('2') == ("index")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/index') ?>"><?php echo display('add_new_bank') ?></a></li>
<?php }?>
<?php if($this->permission1->method('bank_list','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("bank_list")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/bank_list') ?>"><?php echo display('manage_bank') ?></a></li>
<?php }?>
<?php if($this->permission1->method('bank_transaction','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("bank_transaction")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/bank_transaction') ?>"><?php echo display('bank_transaction') ?></a></li>
<?php }?>
<?php if($this->permission1->method('bank_ledger','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("bank_ledger")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/bank_ledger') ?>"><?php echo display('bank_ledger') ?></a></li>
<?php }?>
</ul>
</li>
<?php } ?>
<!-- Bank menu end -->
<!-- Tax menu start -->
<?php if($this->permission1->method('add_incometax','create')->access() || $this->permission1->method('manage_income_tax','read')->access()|| $this->permission1->method('tax_settings','create')->access() || $this->permission1->method('tax_report','read')->access() || $this->permission1->method('invoice_wise_tax_report','read')->access() || $this->permission1->method('tax_settings','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Caccounts") || $this->uri->segment('1') == ("Account_Controller") || $this->uri->segment('1') == ("Cpayment")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-money"></i><span><?php echo display('tax') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('tax_settings','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("tax_settings")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/tax_settings') ?>"><?php echo display('tax_settings') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('add_incometax','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_incometax")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/add_incometax') ?>"><?php echo display('add_incometax') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_income_tax','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_income_tax")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/manage_income_tax') ?>"><?php echo display('manage_income_tax') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('tax_report','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("tax_report")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/tax_report') ?>"><?php echo display('tax_report') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('invoice_wise_tax_report','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("invoice_wise_tax_report")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/invoice_wise_tax_report') ?>"><?php echo display('invoice_wise_tax_report') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- human resource management menu start -->
<?php if($this->permission1->method('add_designation','create')->access() || $this->permission1->method('manage_designation','read')->access() || $this->permission1->method('add_employee','create')->access() || $this->permission1->method('manage_employee','read')->access() ||$this->permission1->method('add_person','create')->access() || $this->permission1->method('add_loan','create')->access() || $this->permission1->method('add_payment','create')->access() || $this->permission1->method('manage_person','read')->access()||$this->permission1->method('add_attendance','create')->access() || $this->permission1->method('manage_attendance','read')->access() || $this->permission1->method('attendance_report','read')->access() || $this->permission1->method('add_benefits','create')->access() || $this->permission1->method('manage_benefits','read')->access() || $this->permission1->method('add_salary_setup','create')->access() || $this->permission1->method('manage_salary_setup','read')->access() || $this->permission1->method('salary_generate','create')->access() || $this->permission1->method('manage_salary_generate','read')->access() || $this->permission1->method('salary_payment','create')->access() || $this->permission1->method('add_expense_item','create')->access() || $this->permission1->method('manage_expense_item','read')->access() || $this->permission1->method('add_expense','create')->access() || $this->permission1->method('manage_expense','read')->access() || $this->permission1->method('add_ofloan_person','create')->access() || $this->permission1->method('add_office_loan','create')->access() || $this->permission1->method('add_loan_payment','create')->access() || $this->permission1->method('manage_ofln_person','read')->access()){?>
<!-- Supplier menu start -->
<li class="treeview <?php
if ($this->uri->segment('1') == ("Chrm") || $this->uri->segment('1') == ("Cattendance") || $this->uri->segment('1') == ("Cpayroll") || $this->uri->segment('1') == ("Cexpense") || $this->uri->segment('1') == ("Cloan") || $this->uri->segment('2') == ("add_person") || $this->uri->segment('2') == ("add_loan") || $this->uri->segment('2') == ("add_payment") || $this->uri->segment('2') == ("manage_person") || $this->uri->segment('2') == ("person_loan_edit")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-users"></i><span><?php echo display('hrm_management') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_designation','create')->access() || $this->permission1->method('manage_designation','read')->access() || $this->permission1->method('add_employee','create')->access() || $this->permission1->method('manage_employee','read')->access()){?>
<!-- Supplier menu start -->
<li class="treeview <?php
if ($this->uri->segment('1') == ("Chrm")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-users"></i><span><?php echo display('hrm') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_designation','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_designation")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/add_designation') ?>"><?php echo display('add_designation') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_designation','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_designation")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/manage_designation') ?>"><?php echo display('manage_designation') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('add_employee','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_employee")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/add_employee') ?>"><?php echo display('add_employee') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_employee','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_employee")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/manage_employee') ?>"><?php echo display('manage_employee') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- ================== Attendance menu start ================= -->
<?php if($this->permission1->method('add_attendance','create')->access() || $this->permission1->method('manage_attendance','read')->access() || $this->permission1->method('attendance_report','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cattendance")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-clock-o"></i><span><?php echo display('attendance') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_attendance','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_attendance")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cattendance/add_attendance') ?>"><?php echo display('add_attendance') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_attendance','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_attendance")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cattendance/manage_attendance') ?>"><?php echo display('manage_attendance') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('attendance_report','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("attendance_report")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cattendance/attendance_report') ?>"><?php echo display('attendance_report') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- ====================== Attendance menu end ================== -->
<!-- ========================== Payroll menu start =================== -->
<?php if($this->permission1->method('add_benefits','create')->access() || $this->permission1->method('manage_benefits','read')->access() || $this->permission1->method('add_salary_setup','create')->access() || $this->permission1->method('manage_salary_setup','read')->access() || $this->permission1->method('salary_generate','create')->access() || $this->permission1->method('manage_salary_generate','read')->access() || $this->permission1->method('salary_payment','create')->access()){
} ?>
<!-- =============================== Payroll menu end =================== -->
<!-- ======================= Expense menu start ========================= -->
<?php if($this->permission1->method('add_expense_item','create')->access() || $this->permission1->method('manage_expense_item','read')->access() || $this->permission1->method('add_expense','create')->access() || $this->permission1->method('manage_expense','read')->access()){
}?>
<!-- ========================== Expense menu end ========================== -->
<!-- Office loan start -->
<?php if($this->permission1->method('add_ofloan_person','create')->access() || $this->permission1->method('add_office_loan','create')->access() || $this->permission1->method('add_loan_payment','create')->access() || $this->permission1->method('manage_ofln_person','read')->access()){
}?>
<!-- Office loan end -->
<!-- Personal loan start -->
<?php if($this->permission1->method('add_person','create')->access() || $this->permission1->method('add_loan','create')->access() || $this->permission1->method('add_payment','create')->access() || $this->permission1->method('manage_person','read')->access()){
}?>
<!-- loan end -->
</ul>
</li>
<?php } ?>
<!-- Human resource management menu end -->
<!-- Comission start -->
<?php if($this->permission1->method('commission','create')->access() || $this->permission1->method('commission','read')->access()){
} ?>
<!-- Comission end -->
<!-- Software Settings menu start -->
<?php if($this->permission1->method('manage_company','read')->access() ||$this->permission1->method('manage_company','create')->access() || $this->permission1->method('add_user','create')->access() || $this->permission1->method('manage_user','read')->access() || $this->permission1->method('add_language','create')->access() || $this->permission1->method('add_currency','create')->access() || $this->permission1->method('soft_setting','create')->access() || $this->permission1->method('add_role','create')->access() ||$this->permission1->method('role_list','read')->access() || $this->permission1->method('user_assign','create')->access() || $this->permission1->method('sms_configure','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Company_setup") || $this->uri->segment('1') == ("User") || $this->uri->segment('1') == ("Cweb_setting") || $this->uri->segment('1') == ("Language") || $this->uri->segment('1') == ("Currency") || $this->uri->segment('1') == ("Permission")|| $this->uri->segment('1') == ("Csms") || $this->uri->segment('1') == ("Backup_restore")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-settings"></i><span><?php echo display('settings') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<!-- Software Settings menu start -->
<?php if($this->permission1->method('manage_company','read')->access() ||$this->permission1->method('manage_company','create')->access() || $this->permission1->method('add_user','create')->access() || $this->permission1->method('manage_user','read')->access() || $this->permission1->method('add_language','create')->access() || $this->permission1->method('add_currency','create')->access() || $this->permission1->method('soft_setting','create')->access() || $this->permission1->method('back_up','create')->access() || $this->permission1->method('back_up','read')->access() || $this->permission1->method('restore','create')->access() || $this->permission1->method('sql_import','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Company_setup") || $this->uri->segment('1') == ("User") || $this->uri->segment('1') == ("Cweb_setting") || $this->uri->segment('1') == ("Language") || $this->uri->segment('1') == ("Currency")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-settings"></i> <span><?php echo display('web_settings') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('manage_company','read')->access() || $this->permission1->method('manage_company','update')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_company")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Company_setup/manage_company') ?>"><?php echo display('manage_company') ?></a></li>
<?php }?>
<?php if($this->permission1->method('add_user','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("User") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('User') ?>"><?php echo display('add_user') ?></a></li>
<?php }?>
<?php if($this->permission1->method('manage_user','read')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_user")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('User/manage_user') ?>"><?php echo display('manage_users') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('add_language','create')->access() || $this->permission1->method('add_language','update')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Language") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Language') ?>"><?php echo display('language') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('add_currency','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Currency") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Currency') ?>"><?php echo display('currency') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('soft_setting','create')->access() || $this->permission1->method('soft_setting','update')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Cweb_setting") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cweb_setting') ?>"><?php echo display('setting') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('mail_setting','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Cweb_setting") && $this->uri->segment('2') == ("mail_setting")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cweb_setting/mail_setting') ?>"><?php echo display('mail_setting') ?> </a></li>
<?php }?>
<li class="treeview <?php if ($this->uri->segment('1') == "Cweb_setting" && $this->uri->segment('2') == "app_setting"){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cweb_setting/app_setting') ?>"><?php echo display('app_setting') ?> </a></li>
</ul>
</li>
<?php }?>
<!-- Role permission start -->
<?php if($this->permission1->method('add_role','create')->access() ||$this->permission1->method('role_list','read')->access() || $this->permission1->method('user_assign','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Permission")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-key"></i> <span><?php echo display('role_permission') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_role','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_role")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Permission/add_role')?>"><?php echo display('add_role') ?></a></li>
<?php }?>
<?php if($this->permission1->method('role_list','read')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("role_list")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Permission/role_list')?>"><?php echo display('role_list') ?></a></li>
<?php }?>
<?php if($this->permission1->method('user_assign','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("user_assign")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Permission/user_assign')?>"><?php echo display('user_assign_role')?></a></li>
<?php }?>
</ul>
</li>
<?php }?>
<!-- Role permission End -->
<?php if($this->permission1->method('sms_configure','create')->access()){
}?>
<!-- sms menu end -->
<!-- Synchronizer setting start -->
<?php if($this->permission1->method('back_up','create')->access() || $this->permission1->method('back_up','read')->access() || $this->permission1->method('restore','create')->access() || $this->permission1->method('sql_import','create')->access()){
}?>
<!-- Synchronizer setting end -->
</ul>
</li>
<?php }?>
<!-- Software Settings menu end -->
</ul>
</div> <!-- /.sidebar -->
</aside>
Did this file decode correctly?
Original Code
<?php
$CI = & get_instance();
$CI->load->model('Web_settings');
$CI->load->model('Reports');
$CI->load->model('Users');
$Web_settings = $CI->Web_settings->retrieve_setting_editdata();
$users = $CI->Users->profile_edit_data();
$out_of_stock = $CI->Reports->out_of_stock_count();
?>
<header class="main-header">
<a href="<?php echo base_url() ?>" class="logo"> <!-- Logo -->
<span class="logo-mini">
<!--<b>A</b>BD-->
<img src="<?php echo base_url() ?>/logo.png" alt="">
</span>
<span class="logo-lg">
<!--<b>Admin</b>BD-->
<img src="<?php echo base_url() ?>/logo.png" alt="">
</span>
</a>
<!-- Header Navbar -->
<nav class="navbar navbar-static-top text-center">
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <!-- Sidebar toggle button-->
<span class="sr-only">Toggle navigation</span>
<span class="pe-7s-keypad"></span>
</a>
<?php
$urcolp = '0';
if($this->uri->segment(2) =="gui_pos" ){
$urcolp = "gui_pos";
}
if($this->uri->segment(2) =="pos_invoice" ){
$urcolp = "pos_invoice";
}
if($this->uri->segment(2) != $urcolp ){
if($this->permission1->method('new_invoice','create')->access()){
?>
<?php }?>
<?php if($this->permission1->method('customer_receive','create')->access()){ ?>
<a href="<?php echo base_url('accounts/customer_receive')?>" class="btn btn-success btn-outline"><i class="fa fa-money"></i> <?php echo display('customer_receive')?></a>
<?php } ?>
<?php if($this->permission1->method('add_purchase','create')->access()){ ?>
<!-- <a href="<?php echo base_url('Cpurchase')?>" class="btn btn-success btn-outline"><i class="ti-shopping-cart"></i> <?php echo display('purchase') ?></a> -->
<?php }} ?>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- <li class="dropdown notifications-menu">
<a href="<?php echo base_url('Creport/out_of_stock') ?>" >
<i class="pe-7s-attention" title="<?php echo display('out_of_stock') ?>"></i>
<span class="label label-danger"><?php echo html_escape($out_of_stock) ?></span>
</a>
</li> -->
<!-- settings -->
<li class="dropdown dropdown-user">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="pe-7s-settings"></i></a>
<ul class="dropdown-menu">
<li><a href="<?php echo base_url('Admin_dashboard/edit_profile') ?>"><i class="pe-7s-users"></i><?php echo display('user_profile') ?></a></li>
<li><a href="<?php echo base_url('Admin_dashboard/change_password_form') ?>"><i class="pe-7s-settings"></i><?php echo display('change_password') ?></a></li>
<li><a href="<?php echo base_url('Admin_dashboard/logout') ?>"><i class="pe-7s-key"></i><?php echo display('logout') ?></a></li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<aside class="main-sidebar">
<!-- sidebar -->
<div class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel text-center">
<div class="image">
<img src="<?php echo html_escape($users[0]['logo']) ?>" class="img-circle" alt="User Image">
</div>
<div class="info">
<p><?php echo $this->session->userdata('user_name') ?></p>
<a href="#"><i class="fa fa-circle text-success"></i> <?php echo display('online') ?></a>
</div>
</div>
<!-- sidebar menu -->
<ul class="sidebar-menu">
<li class="<?php
if ($this->uri->segment('1') == ("")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="<?php echo base_url() ?>"><i class="ti-dashboard"></i> <span><?php echo display('dashboard') ?></span>
<span class="pull-right-container">
<span class="label label-success pull-right"></span>
</span>
</a>
</li>
<!-- service menu start -->
<?php if($this->permission1->method('create_service','create')->access() || $this->permission1->method('manage_service','read')->access() || $this->permission1->method('service_invoice','create')->access() || $this->permission1->method('manage_service_invoice','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cservice")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-asl-interpreting"></i><span><?php echo display('service') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('create_service','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cservice") && $this->uri->segment('2') == ("")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice') ?>"><?php echo display('add_service') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_service','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("manage_service")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice/manage_service') ?>"><?php echo display('manage_service') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('service_invoice','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("service_invoice_form")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice/service_invoice_form') ?>"><?php echo display('service_invoice') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_service_invoice','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("manage_service_invoice")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Cservice/manage_service_invoice') ?>"><?php echo display('manage_service_invoice') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- Invoice menu start -->
<?php if($this->permission1->method('new_invoice','create')->access() || $this->permission1->method('manage_invoice','read')->access() || $this->permission1->method('pos_invoice','create')->access() || $this->permission1->method('gui_pos','create')->access()){
} ?>
<!-- Invoice menu end -->
<!-- Customer menu start -->
<?php if($this->permission1->method('add_customer','create')->access() || $this->permission1->method('manage_customer','read')->access() || $this->permission1->method('credit_customer','read')->access() || $this->permission1->method('paid_customer','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Ccustomer")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-handshake-o"></i><span><?php echo display('customer') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_customer','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Ccustomer") && $this->uri->segment('2') == ("")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer') ?>"><?php echo display('add_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_customer','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("manage_customer")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/manage_customer') ?>"><?php echo display('manage_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('customer_ledger','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("customer_ledger_report")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/customer_ledger_report') ?>"><?php echo display('customer_ledger') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('credit_customer','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("credit_customer")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/credit_customer') ?>"><?php echo display('credit_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('paid_customer','read')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("paid_customer")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/paid_customer') ?>"><?php echo display('paid_customer') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('customer_advance','create')->access()){ ?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("customer_advance")) {
echo "active";
} else {
echo " ";
}
?>"><a href="<?php echo base_url('Ccustomer/customer_advance') ?>"><?php echo display('customer_advance') ?></a></li>
<?php } ?>
</ul>
</li>
<?php }?>
<!-- Customer menu end -->
<!-- Product menu start -->
<?php if($this->permission1->method('create_product','create')->access() || $this->permission1->method('add_product_csv','create')->access() || $this->permission1->method('manage_product','read')->access() || $this->permission1->method('create_category','create')->access() || $this->permission1->method('manage_category','read')->access() || $this->permission1->method('add_unit','create')->access() || $this->permission1->method('manage_unit','read')->access()){
}?>
<!-- Product menu end -->
<!-- --- supplier menu start -->
<?php if($this->permission1->method('add_supplier','create')->access() || $this->permission1->method('manage_supplier','read')->access() || $this->permission1->method('supplier_ledger_report','read')->access() || $this->permission1->method('supplier_sales_details_all','read')->access()){
} ?>
<!-- Supplier menu end -->
<!-- Purchase menu start -->
<?php if($this->permission1->method('add_purchase','create')->access() || $this->permission1->method('manage_purchase','read')->access()){
} ?>
<!-- Purchase menu end -->
<!-- Quotation Menu Start -->
<?php if($this->permission1->method('add_quotation','create')->access() || $this->permission1->method('manage_quotation','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cquotation")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-book"></i><span><?php echo display('quotation') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_quotation','create')->access()){ ?>
<li><a href="<?php echo base_url('Cquotation') ?>"><?php echo display('add_quotation') ?></a></li>
<?php }?>
<?php if($this->permission1->method('manage_quotation','read')->access()){ ?>
<li><a href="<?php echo base_url('Cquotation/manage_quotation') ?>"><?php echo display('manage_quotation') ?></a></li>
<?php } ?>
</ul>
</li>
<?php }?>
<!-- quotation Menu end -->
<!-- Stock menu start -->
<?php if($this->permission1->method('stock_report','read')->access() || $this->permission1->method('stock_report_sp_wise','read')->access() || $this->permission1->method('stock_report_pro_wise','read')->access()){
}?>
<!-- Stock menu end -->
<?php if($this->permission1->method('add_return','create')->access() || $this->permission1->method('return_list','read')->access() || $this->permission1->method('supplier_return_list','read')->access() || $this->permission1->method('wastage_return_list','read')->access()){
} ?>
<!-- Report menu start -->
<?php if($this->permission1->method('add_closing','create')->access() || $this->permission1->method('closing_report','read')->access() || $this->permission1->method('all_report','read')->access() || $this->permission1->method('todays_customer_receipt','read')->access() || $this->permission1->method('todays_sales_report','read')->access() || $this->permission1->method('retrieve_dateWise_DueReports','read')->access() || $this->permission1->method('todays_purchase_report','read')->access() || $this->permission1->method('purchase_report_category_wise','read')->access() || $this->permission1->method('product_sales_reports_date_wise','read')->access() || $this->permission1->method('sales_report_category_wise','read')->access() || $this->permission1->method('shipping_cost_report','read')->access()){
}?>
<!-- Report menu end -->
<!--New Account start-->
<?php if($this->permission1->method('show_tree','read')->access() || $this->permission1->method('supplier_payment','create')->access()|| $this->permission1->method('customer_receive','create')->access() || $this->permission1->method('debit_voucher','create')->access() || $this->permission1->method('credit_voucher','create')->access() || $this->permission1->method('aprove_v','read')->access() || $this->permission1->method('contra_voucher','create')->access() || $this->permission1->method('journal_voucher','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("accounts")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-money"></i><span><?php echo display('accounts') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('customer_receive','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("customer_receive")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('accounts/customer_receive') ?>"><?php echo display('customer_receive'); ?></a></li>
<?php }?>
<?php if($this->permission1->method('cash_adjustment','create')->access()){
}?>
<?php if($this->permission1->method('ac_report','create')->access()){
} ?>
</ul>
</li>
<?php } ?>
<!-- New Account End -->
<!-- Bank menu start -->
<?php if($this->permission1->method('add_bank','create')->access() || $this->permission1->method('bank_transaction','create')->access() || $this->permission1->method('bank_list','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('2') == ("index") || $this->uri->segment('2') == ("bank_list") || $this->uri->segment('2') == ("bank_ledger") || $this->uri->segment('2') == ("bank_transaction")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-briefcase"></i><span><?php echo display('bank') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_bank','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Csettings") && $this->uri->segment('2') == ("index")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/index') ?>"><?php echo display('add_new_bank') ?></a></li>
<?php }?>
<?php if($this->permission1->method('bank_list','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("bank_list")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/bank_list') ?>"><?php echo display('manage_bank') ?></a></li>
<?php }?>
<?php if($this->permission1->method('bank_transaction','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("bank_transaction")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/bank_transaction') ?>"><?php echo display('bank_transaction') ?></a></li>
<?php }?>
<?php if($this->permission1->method('bank_ledger','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("bank_ledger")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Csettings/bank_ledger') ?>"><?php echo display('bank_ledger') ?></a></li>
<?php }?>
</ul>
</li>
<?php } ?>
<!-- Bank menu end -->
<!-- Tax menu start -->
<?php if($this->permission1->method('add_incometax','create')->access() || $this->permission1->method('manage_income_tax','read')->access()|| $this->permission1->method('tax_settings','create')->access() || $this->permission1->method('tax_report','read')->access() || $this->permission1->method('invoice_wise_tax_report','read')->access() || $this->permission1->method('tax_settings','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Caccounts") || $this->uri->segment('1') == ("Account_Controller") || $this->uri->segment('1') == ("Cpayment")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-money"></i><span><?php echo display('tax') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('tax_settings','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("tax_settings")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/tax_settings') ?>"><?php echo display('tax_settings') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('add_incometax','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_incometax")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/add_incometax') ?>"><?php echo display('add_incometax') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_income_tax','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_income_tax")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/manage_income_tax') ?>"><?php echo display('manage_income_tax') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('tax_report','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("tax_report")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/tax_report') ?>"><?php echo display('tax_report') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('invoice_wise_tax_report','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("invoice_wise_tax_report")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Caccounts/invoice_wise_tax_report') ?>"><?php echo display('invoice_wise_tax_report') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- human resource management menu start -->
<?php if($this->permission1->method('add_designation','create')->access() || $this->permission1->method('manage_designation','read')->access() || $this->permission1->method('add_employee','create')->access() || $this->permission1->method('manage_employee','read')->access() ||$this->permission1->method('add_person','create')->access() || $this->permission1->method('add_loan','create')->access() || $this->permission1->method('add_payment','create')->access() || $this->permission1->method('manage_person','read')->access()||$this->permission1->method('add_attendance','create')->access() || $this->permission1->method('manage_attendance','read')->access() || $this->permission1->method('attendance_report','read')->access() || $this->permission1->method('add_benefits','create')->access() || $this->permission1->method('manage_benefits','read')->access() || $this->permission1->method('add_salary_setup','create')->access() || $this->permission1->method('manage_salary_setup','read')->access() || $this->permission1->method('salary_generate','create')->access() || $this->permission1->method('manage_salary_generate','read')->access() || $this->permission1->method('salary_payment','create')->access() || $this->permission1->method('add_expense_item','create')->access() || $this->permission1->method('manage_expense_item','read')->access() || $this->permission1->method('add_expense','create')->access() || $this->permission1->method('manage_expense','read')->access() || $this->permission1->method('add_ofloan_person','create')->access() || $this->permission1->method('add_office_loan','create')->access() || $this->permission1->method('add_loan_payment','create')->access() || $this->permission1->method('manage_ofln_person','read')->access()){?>
<!-- Supplier menu start -->
<li class="treeview <?php
if ($this->uri->segment('1') == ("Chrm") || $this->uri->segment('1') == ("Cattendance") || $this->uri->segment('1') == ("Cpayroll") || $this->uri->segment('1') == ("Cexpense") || $this->uri->segment('1') == ("Cloan") || $this->uri->segment('2') == ("add_person") || $this->uri->segment('2') == ("add_loan") || $this->uri->segment('2') == ("add_payment") || $this->uri->segment('2') == ("manage_person") || $this->uri->segment('2') == ("person_loan_edit")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-users"></i><span><?php echo display('hrm_management') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_designation','create')->access() || $this->permission1->method('manage_designation','read')->access() || $this->permission1->method('add_employee','create')->access() || $this->permission1->method('manage_employee','read')->access()){?>
<!-- Supplier menu start -->
<li class="treeview <?php
if ($this->uri->segment('1') == ("Chrm")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-users"></i><span><?php echo display('hrm') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_designation','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_designation")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/add_designation') ?>"><?php echo display('add_designation') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_designation','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_designation")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/manage_designation') ?>"><?php echo display('manage_designation') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('add_employee','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_employee")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/add_employee') ?>"><?php echo display('add_employee') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_employee','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_employee")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Chrm/manage_employee') ?>"><?php echo display('manage_employee') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- ================== Attendance menu start ================= -->
<?php if($this->permission1->method('add_attendance','create')->access() || $this->permission1->method('manage_attendance','read')->access() || $this->permission1->method('attendance_report','read')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Cattendance")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="fa fa-clock-o"></i><span><?php echo display('attendance') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_attendance','create')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_attendance")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cattendance/add_attendance') ?>"><?php echo display('add_attendance') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('manage_attendance','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_attendance")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cattendance/manage_attendance') ?>"><?php echo display('manage_attendance') ?></a></li>
<?php } ?>
<?php if($this->permission1->method('attendance_report','read')->access()){ ?>
<li class="treeview <?php if ($this->uri->segment('2') == ("attendance_report")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cattendance/attendance_report') ?>"><?php echo display('attendance_report') ?></a></li>
<?php } ?>
</ul>
</li>
<?php } ?>
<!-- ====================== Attendance menu end ================== -->
<!-- ========================== Payroll menu start =================== -->
<?php if($this->permission1->method('add_benefits','create')->access() || $this->permission1->method('manage_benefits','read')->access() || $this->permission1->method('add_salary_setup','create')->access() || $this->permission1->method('manage_salary_setup','read')->access() || $this->permission1->method('salary_generate','create')->access() || $this->permission1->method('manage_salary_generate','read')->access() || $this->permission1->method('salary_payment','create')->access()){
} ?>
<!-- =============================== Payroll menu end =================== -->
<!-- ======================= Expense menu start ========================= -->
<?php if($this->permission1->method('add_expense_item','create')->access() || $this->permission1->method('manage_expense_item','read')->access() || $this->permission1->method('add_expense','create')->access() || $this->permission1->method('manage_expense','read')->access()){
}?>
<!-- ========================== Expense menu end ========================== -->
<!-- Office loan start -->
<?php if($this->permission1->method('add_ofloan_person','create')->access() || $this->permission1->method('add_office_loan','create')->access() || $this->permission1->method('add_loan_payment','create')->access() || $this->permission1->method('manage_ofln_person','read')->access()){
}?>
<!-- Office loan end -->
<!-- Personal loan start -->
<?php if($this->permission1->method('add_person','create')->access() || $this->permission1->method('add_loan','create')->access() || $this->permission1->method('add_payment','create')->access() || $this->permission1->method('manage_person','read')->access()){
}?>
<!-- loan end -->
</ul>
</li>
<?php } ?>
<!-- Human resource management menu end -->
<!-- Comission start -->
<?php if($this->permission1->method('commission','create')->access() || $this->permission1->method('commission','read')->access()){
} ?>
<!-- Comission end -->
<!-- Software Settings menu start -->
<?php if($this->permission1->method('manage_company','read')->access() ||$this->permission1->method('manage_company','create')->access() || $this->permission1->method('add_user','create')->access() || $this->permission1->method('manage_user','read')->access() || $this->permission1->method('add_language','create')->access() || $this->permission1->method('add_currency','create')->access() || $this->permission1->method('soft_setting','create')->access() || $this->permission1->method('add_role','create')->access() ||$this->permission1->method('role_list','read')->access() || $this->permission1->method('user_assign','create')->access() || $this->permission1->method('sms_configure','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Company_setup") || $this->uri->segment('1') == ("User") || $this->uri->segment('1') == ("Cweb_setting") || $this->uri->segment('1') == ("Language") || $this->uri->segment('1') == ("Currency") || $this->uri->segment('1') == ("Permission")|| $this->uri->segment('1') == ("Csms") || $this->uri->segment('1') == ("Backup_restore")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-settings"></i><span><?php echo display('settings') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<!-- Software Settings menu start -->
<?php if($this->permission1->method('manage_company','read')->access() ||$this->permission1->method('manage_company','create')->access() || $this->permission1->method('add_user','create')->access() || $this->permission1->method('manage_user','read')->access() || $this->permission1->method('add_language','create')->access() || $this->permission1->method('add_currency','create')->access() || $this->permission1->method('soft_setting','create')->access() || $this->permission1->method('back_up','create')->access() || $this->permission1->method('back_up','read')->access() || $this->permission1->method('restore','create')->access() || $this->permission1->method('sql_import','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Company_setup") || $this->uri->segment('1') == ("User") || $this->uri->segment('1') == ("Cweb_setting") || $this->uri->segment('1') == ("Language") || $this->uri->segment('1') == ("Currency")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-settings"></i> <span><?php echo display('web_settings') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('manage_company','read')->access() || $this->permission1->method('manage_company','update')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_company")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Company_setup/manage_company') ?>"><?php echo display('manage_company') ?></a></li>
<?php }?>
<?php if($this->permission1->method('add_user','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("User") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('User') ?>"><?php echo display('add_user') ?></a></li>
<?php }?>
<?php if($this->permission1->method('manage_user','read')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("manage_user")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('User/manage_user') ?>"><?php echo display('manage_users') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('add_language','create')->access() || $this->permission1->method('add_language','update')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Language") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Language') ?>"><?php echo display('language') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('add_currency','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Currency") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Currency') ?>"><?php echo display('currency') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('soft_setting','create')->access() || $this->permission1->method('soft_setting','update')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Cweb_setting") && $this->uri->segment('2') == ("")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cweb_setting') ?>"><?php echo display('setting') ?> </a></li>
<?php }?>
<?php if($this->permission1->method('mail_setting','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('1') == ("Cweb_setting") && $this->uri->segment('2') == ("mail_setting")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cweb_setting/mail_setting') ?>"><?php echo display('mail_setting') ?> </a></li>
<?php }?>
<li class="treeview <?php if ($this->uri->segment('1') == "Cweb_setting" && $this->uri->segment('2') == "app_setting"){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Cweb_setting/app_setting') ?>"><?php echo display('app_setting') ?> </a></li>
</ul>
</li>
<?php }?>
<!-- Role permission start -->
<?php if($this->permission1->method('add_role','create')->access() ||$this->permission1->method('role_list','read')->access() || $this->permission1->method('user_assign','create')->access()){?>
<li class="treeview <?php
if ($this->uri->segment('1') == ("Permission")) {
echo "active";
} else {
echo " ";
}
?>">
<a href="#">
<i class="ti-key"></i> <span><?php echo display('role_permission') ?></span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if($this->permission1->method('add_role','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("add_role")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Permission/add_role')?>"><?php echo display('add_role') ?></a></li>
<?php }?>
<?php if($this->permission1->method('role_list','read')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("role_list")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Permission/role_list')?>"><?php echo display('role_list') ?></a></li>
<?php }?>
<?php if($this->permission1->method('user_assign','create')->access()){?>
<li class="treeview <?php if ($this->uri->segment('2') == ("user_assign")){
echo "active";
} else {
echo " ";
}?>"><a href="<?php echo base_url('Permission/user_assign')?>"><?php echo display('user_assign_role')?></a></li>
<?php }?>
</ul>
</li>
<?php }?>
<!-- Role permission End -->
<?php if($this->permission1->method('sms_configure','create')->access()){
}?>
<!-- sms menu end -->
<!-- Synchronizer setting start -->
<?php if($this->permission1->method('back_up','create')->access() || $this->permission1->method('back_up','read')->access() || $this->permission1->method('restore','create')->access() || $this->permission1->method('sql_import','create')->access()){
}?>
<!-- Synchronizer setting end -->
</ul>
</li>
<?php }?>
<!-- Software Settings menu end -->
</ul>
</div> <!-- /.sidebar -->
</aside>
Function Calls
get_instance | 1 |
Stats
MD5 | 7cc6bb1d5ac346c038cbc37f5e35ad9e |
Eval Count | 0 |
Decode Time | 175 ms |