commitall
This commit is contained in:
239
account/application/views/includes/footer.php
Normal file
239
account/application/views/includes/footer.php
Normal file
@ -0,0 +1,239 @@
|
||||
<!-- Control Sidebar -->
|
||||
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
|
||||
<!-- Control sidebar content goes here -->
|
||||
|
||||
<div class="p-3">
|
||||
|
||||
<h5>Title</h5>
|
||||
|
||||
<p>Sidebar content</p>
|
||||
|
||||
</div>
|
||||
|
||||
</aside>
|
||||
|
||||
<!-- /.control-sidebar -->
|
||||
|
||||
|
||||
|
||||
<!-- Main Footer -->
|
||||
|
||||
<footer class="main-footer">
|
||||
|
||||
<!-- To the right -->
|
||||
|
||||
<div class="float-right d-none d-sm-inline">
|
||||
|
||||
AD: <?php echo date("Y-m-d"); ?> / BS: <?php echo NepaliDate(); ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Default to the left -->
|
||||
|
||||
<strong>Copyright © <?php echo date("Y"); ?> <a href="https://bibhutisolutions.com.au">Bibhuti Solutions</a>.</strong> All rights reserved.
|
||||
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- ./wrapper -->
|
||||
|
||||
|
||||
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- AdminLTE App -->
|
||||
|
||||
<script src="<?php echo base_url(); ?>plugins/summernote/summernote-bs4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/codemirror/codemirror.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>dist/js/adminlte.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/select2/js/select2.full.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/simplebar/5.3.2/simplebar.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/dropzone/min/dropzone.min.js"></script>
|
||||
<!--script src="https://unpkg.com/nepali-date-picker@2.0.1/dist/jquery.nepaliDatePicker.min.js" crossorigin="anonymous"></script-->
|
||||
<!--link rel="stylesheet" href="https://unpkg.com/nepali-date-picker@2.0.1/dist/nepaliDatePicker.min.css" crossorigin="anonymous" /-->
|
||||
|
||||
<script src="<?php echo base_url(); ?>plugins/nepalidatepicker/nepaliDatePicker.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/printElement/jquery.printElement.js"></script>
|
||||
<script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script>
|
||||
|
||||
<script src="https://adminlte.io/themes/v3/plugins/daterangepicker/daterangepicker.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>plugins/bstreeview/js/bstreeview.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>dist/js/jspdf.min.js"></script>
|
||||
|
||||
|
||||
<script>
|
||||
function printDiv(divName) {
|
||||
//Dcoumentation Link for jsPDF >> https://rawgit.com/MrRio/jsPDF/master/docs/index.html
|
||||
|
||||
// alert(divName);
|
||||
|
||||
// console.log();
|
||||
// $("#" + divName).printElement({
|
||||
// printMode: 'popup',
|
||||
// leaveOpen: true,
|
||||
// });
|
||||
|
||||
// $("#showBillModal").modal('hide');
|
||||
var printContents = document.getElementById(divName).innerHTML;
|
||||
var originalContents = document.body.innerHTML;
|
||||
|
||||
document.body.innerHTML = printContents;
|
||||
|
||||
window.print();
|
||||
|
||||
|
||||
location.reload();
|
||||
|
||||
// var doc = new jsPDF();
|
||||
// var htmlContent = document.getElementById('contentToPrint');
|
||||
// var options = {
|
||||
// margin: {
|
||||
// top: 10,
|
||||
// bottom: 10,
|
||||
// left: 10,
|
||||
// right: 10
|
||||
// }
|
||||
// };
|
||||
// doc.html(htmlContent, options);
|
||||
// var pdfDataUri = doc.output('datauristring');
|
||||
// // Open the PDF in a new tab
|
||||
// var newTab = window.open();
|
||||
// newTab.document.write('<iframe src="' + pdfDataUri + '" style="width:100%;height:100%;" frameborder="0"></iframe>');
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
$('.dataTable').DataTable({
|
||||
"pageLength": 20,
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": false,
|
||||
"sortable": true,
|
||||
"info": true,
|
||||
"autoWidth": true,
|
||||
"responsive": true,
|
||||
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
}).buttons().container().appendTo('#dataTable_commands');
|
||||
$('.longdataTable').DataTable({
|
||||
"pageLength": 10000,
|
||||
"paging": false,
|
||||
"sortable": false,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"stateSave": false,
|
||||
"ordering": true,
|
||||
"info": true,
|
||||
"autoWidth": true,
|
||||
"responsive": true,
|
||||
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
}).buttons().container().appendTo('#dataTable_commands');
|
||||
$('.datetimepicker').datetimepicker({
|
||||
format: 'YYYY-MM-DD'
|
||||
});
|
||||
$('.dataTable_scrollBody').css('height', '700px');
|
||||
$(".select2").select2();
|
||||
$(".example3").DataTable({
|
||||
"responsive": true,
|
||||
"lengthChange": false,
|
||||
"autoWidth": false,
|
||||
"buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"]
|
||||
}).buttons().container().appendTo('#example3_wrapper .col:eq(1)');
|
||||
|
||||
});
|
||||
$(".nepaliDatePicker").nepaliDatePicker({
|
||||
dateFormat: "%y-%m-%d",
|
||||
closeOnDateSelect: true
|
||||
});
|
||||
|
||||
function swapdate(nepDate, engDate) {
|
||||
var nepalidatefield = document.getElementById(nepDate);
|
||||
var englishdatefield = document.getElementById(endDate);
|
||||
|
||||
}
|
||||
// Initialize Simplebar
|
||||
const scrollableContent = document.querySelector('.scrollable-content');
|
||||
new SimpleBar(scrollableContent);
|
||||
</script>
|
||||
<script>
|
||||
$(function() {
|
||||
// Summernote
|
||||
$('.summernote').summernote();
|
||||
var textareas = document.querySelectorAll(".codemirror");
|
||||
for (var i = 0; i < textareas.length; i++) {
|
||||
CodeMirror.fromTextArea(textareas[i], {
|
||||
lineWrapping: true,
|
||||
mode: "html",
|
||||
theme: "neat",
|
||||
lineNumbers: true
|
||||
});
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<script>
|
||||
$('#reservation').daterangepicker()
|
||||
</script>
|
||||
|
||||
|
||||
<?php
|
||||
if (function_exists("footerfunctions")) {
|
||||
footerfunctions();
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#database-select').change(function() {
|
||||
var selectedDatabase = $(this).val();
|
||||
$.ajax({
|
||||
url: 'update_env.php',
|
||||
method: 'POST',
|
||||
data: {
|
||||
database: selectedDatabase
|
||||
},
|
||||
success: function(response) {
|
||||
window.location = "<?php echo site_url("logout"); ?>";
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error(error);
|
||||
// Handle the error if needed
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
.nepali-date-picker .drop-down-content {
|
||||
|
||||
width: 140%;
|
||||
}
|
||||
.nepali-date-picker .drop-down-content .option-wrapper {
|
||||
|
||||
min-width: 58px;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
318
account/application/views/includes/header.php
Normal file
318
account/application/views/includes/header.php
Normal file
@ -0,0 +1,318 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<title><?php echo myLang($this->config->item("ProjectTitle")); ?> >> <?php echo isset($pageTitle)?$pageTitle:" | Dashboard"; ?></title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- Google Font: Source Sans Pro -->
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
|
||||
|
||||
<!-- Font Awesome Icons -->
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/fontawesome-free/css/all.min.css">
|
||||
|
||||
|
||||
|
||||
<script src="<?php echo base_url(); ?>plugins/jquery/jquery.min.js"></script>
|
||||
<!-- Bootstrap 4 -->
|
||||
|
||||
<script src="<?php echo base_url(); ?>plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>plugins/bootstrap/js/moment.js"></script>
|
||||
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
||||
<!-- Theme style -->
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>dist/css/adminlte.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/nepalidatepicker/nepaliDatePicker.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/select2/css/select2.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>plugins/bstreeview/css/bstreeview.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>dist/css/bbnepalcustom.css">
|
||||
<!-- Override Defaults By Prajwal -->
|
||||
<style>
|
||||
body {
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: Roboto;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.select2-container .select2-selection--single {
|
||||
|
||||
height: 38px;
|
||||
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
||||
|
||||
margin-top: 3px;
|
||||
}
|
||||
|
||||
.select2-container {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bold-text {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.table td,
|
||||
.table th {
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #ced4da;
|
||||
-moz-border-radius: 8px;
|
||||
-webkit-border-radius: 8px;
|
||||
border-radius: 5px;
|
||||
padding: 0px 15px 10px;
|
||||
}
|
||||
|
||||
legend {
|
||||
width: auto;
|
||||
margin: 0px;
|
||||
padding: 0px 10px;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.currency {
|
||||
width: 100%;
|
||||
display: block;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
span.underline-text {
|
||||
width: 100%;
|
||||
display: block;
|
||||
border-bottom: 1px solid;
|
||||
}
|
||||
|
||||
span.node-counts {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.lp-30 {
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.lp-60 {
|
||||
padding-left: 60px;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
span.table-cell {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.table-group-heading {
|
||||
/* background-color: #cdcdcd !important; */
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.table-group-total {
|
||||
/* background-color: #cdcdcd !important; */
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.table-category-heading {
|
||||
/* background-color: #dfdfdf !important; */
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.table-category-total {
|
||||
/* background-color: #dfdfdf !important; */
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
.mb-20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.mt-30 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.mt-100 {
|
||||
margin-top: 100px;
|
||||
}
|
||||
|
||||
@media screen {
|
||||
div.divFooter {
|
||||
display: none;
|
||||
}
|
||||
|
||||
td.col-1 {
|
||||
width: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
div.divFooter {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.col-print-1 {
|
||||
width: 8%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-2 {
|
||||
width: 16%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-3 {
|
||||
width: 25%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-4 {
|
||||
width: 33%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-5 {
|
||||
width: 42%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-6 {
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-7 {
|
||||
width: 58%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-8 {
|
||||
width: 66%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-9 {
|
||||
width: 75%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-10 {
|
||||
width: 83%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-11 {
|
||||
width: 92%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-print-12 {
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-1 {
|
||||
width: 8%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-2 {
|
||||
width: 16%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-3 {
|
||||
width: 25%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-4 {
|
||||
width: 33%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-5 {
|
||||
width: 42%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-6 {
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-7 {
|
||||
width: 58%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-8 {
|
||||
width: 66%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-9 {
|
||||
width: 75%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-10 {
|
||||
width: 83%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-11 {
|
||||
width: 92%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-12 {
|
||||
width: 100%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
}
|
||||
.narration_display
|
||||
{
|
||||
font-style: italic;
|
||||
}
|
||||
.text-bold .currency
|
||||
{
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
</style>
|
||||
<!-- End Override Defaults By Prajwal -->
|
||||
</head>
|
||||
|
||||
<body class="hold-transition sidebar-mini layout-footer-fixed">
|
||||
|
||||
<div class="wrapper">
|
63
account/application/views/includes/nav.php
Normal file
63
account/application/views/includes/nav.php
Normal file
@ -0,0 +1,63 @@
|
||||
|
||||
<!-- Navbar -->
|
||||
|
||||
<nav class="main-header navbar navbar-expand navbar-white navbar-light ">
|
||||
|
||||
<!-- Left navbar links -->
|
||||
|
||||
<ul class="navbar-nav">
|
||||
|
||||
<li class="nav-item">
|
||||
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
|
||||
<a href="<?php echo base_url();?>" class="nav-link"><?php echo strtoupper(DB_DATABASE); ?></a>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<!-- Right navbar links -->
|
||||
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
||||
<!-- Navbar Search -->
|
||||
<!-- Notifications Dropdown Menu -->
|
||||
|
||||
|
||||
|
||||
<li class="nav-item">
|
||||
|
||||
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
|
||||
|
||||
<i class="fas fa-expand-arrows-alt"></i>
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
|
||||
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
|
||||
|
||||
<i class="fas fa-th-large"></i>
|
||||
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
<!-- /.navbar -->
|
||||
|
||||
|
||||
|
||||
|
267
account/application/views/includes/sidebar.php
Normal file
267
account/application/views/includes/sidebar.php
Normal file
@ -0,0 +1,267 @@
|
||||
<?php
|
||||
$command = $this->uri->segment(1);
|
||||
$param = $this->uri->segment(2);
|
||||
$subparam = $this->uri->segment(3);
|
||||
$subparam2 = $this->uri->segment(4);
|
||||
?>
|
||||
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar main-sidebar-custom sidebar-dark-primary elevation-4">
|
||||
<!-- Brand Logo --> <a href="<?php echo base_url(); ?>" class="brand-link"> <img src="<?php echo base_url(); ?>dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"> <span class="brand-text font-weight-light">
|
||||
<?php echo APP_NAME; ?>
|
||||
</span>
|
||||
</a> <!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<!-- Sidebar user panel (optional) -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image"> <img src="<?php echo base_url(); ?>dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image"> </div>
|
||||
<div class="info"> <a href="#" class="d-block"><?php echo $this->session->userdata("CompanyName"); ?> (<?php echo ($this->session->userdata("FiscalYear")->fiscalyear_year); ?>)</a></div>
|
||||
|
||||
</div> <!-- SidebarSearch Form -->
|
||||
<div class="form-inline pb-2">
|
||||
<div class="input-group" data-widget="sidebar-search">
|
||||
<select class="form-control form-control-sidebar" name="database-select" id="database-select">
|
||||
<?php foreach (explode(",", DATABASE_OPTIONS) as $db) : ?>
|
||||
<option <?php if ($db == DB_DATABASE) : ?>SELECTED<?php endif; ?>><?php echo $db; ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<!-- <div class="input-group-append"> <button class="btn btn-sidebar"> <i class="fas fa-save"></i> </button> </div> -->
|
||||
</div>
|
||||
</div> <!-- Sidebar Menu -->
|
||||
<div class="form-inline">
|
||||
<div class="input-group" data-widget="sidebar-search"> <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
|
||||
<div class="input-group-append"> <button class="btn btn-sidebar"> <i class="fas fa-search fa-fw"></i> </button> </div>
|
||||
</div>
|
||||
</div> <!-- Sidebar Menu -->
|
||||
<?php $LoggedUser = $this->session->userdata('loggedInUser'); ?>
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="true">
|
||||
<?php /* Accounting Part */ ?>
|
||||
<?php
|
||||
$commandsContained = array("accounts", "master");
|
||||
$paramsContained = array("setup", "fiscalyear", "branches", "acgroups", "accategories", "translations", "accountheads");
|
||||
$subparamsContained = array("listsingleentryvouchers", "fiscalyear", "list", "parent", "childs", "ratio_analysis", "add", "edit", "editvouchertype");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && (isset($subparam) ? in_array($subparam, $subparamsContained) : 1)) ? "menu-open" : ""; ?>"><a href="#" class="nav-link active"><i class="nav-icon fa fa-wrench"></i>
|
||||
<p>Accounting Setup<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item"><a href="<?php echo site_url("master/fiscalyear"); ?>" class="nav-link <?php echo ($param == "fiscalyear") ? "active" : ""; ?>">
|
||||
<p>Fiscal Year</p>
|
||||
</a></li>
|
||||
<!-- <li class="nav-item"><a href="<?php echo site_url("master/acgroups"); ?>" class="nav-link <?php echo ($param == "acgroups") ? "active" : ""; ?>">
|
||||
<p>Account Types</p>
|
||||
</a></li> -->
|
||||
<li class="nav-item"><a href="<?php echo site_url("master/accategories/parent");
|
||||
?>" class="nav-link <?php echo (($param == "accategories" && $subparam == "parent") ||
|
||||
($param == "accategories" && $subparam == "edit_parent") ||
|
||||
($param == "accategories" && $subparam == "add_parent")
|
||||
) ? "active" : "";
|
||||
?>">
|
||||
<p>Account Categories</p>
|
||||
</a></li>
|
||||
<li class="nav-item"><a href="<?php echo site_url("master/accategories/childs"); ?>" class="nav-link <?php echo (($param == "accategories" && $subparam == "childs") ||
|
||||
($param == "accategories" && $subparam == "add_child") ||
|
||||
($param == "accategories" && $subparam == "edit_child")
|
||||
) ? "active" : ""; ?>">
|
||||
<p>Account Groups</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?php echo site_url("accounts/setup/listsingleentryvouchers"); ?>" class="nav-link <?php echo ($subparam == "listsingleentryvouchers") ? "active" : ""; ?>">
|
||||
Voucher Types
|
||||
</a></li>
|
||||
<?php if ($LoggedUser == "admin") : ?>
|
||||
<?php //showMenu("Create New Ledger", "accounts/accountheads/add");
|
||||
?>
|
||||
<?php showMenu("List of Ledgers", "accounts/accountheads/list"); ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
$commandsContained = array("inventory");
|
||||
$paramsContained = array("paymentmodes", "items", "units", "stocklocations", "itemcategories");
|
||||
$subparamsContained = array("list", "add", "edit");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>"><a href="#" class="nav-link active"><i class="nav-icon fa fa-wrench"></i>
|
||||
<p>Inventory Setup<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php
|
||||
// showMenu("Stock Locations", "inventory/stocklocations/list");
|
||||
showMenu("Inventory Units", "inventory/units/list");
|
||||
// showMenu("Payment Modes", "inventory/paymentmodes/list");
|
||||
showMenu("Inventory Groups", "inventory/itemcategories/list");
|
||||
// showMenu("Categories", "inventory/itemcategories/list");
|
||||
// showMenu("Create Inventory Item", "inventory/items/add");
|
||||
showMenu("Inventory Items", "inventory/items/list");
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
$subparamsContained = array();
|
||||
$VoucherTypes = $this->db->query("select * from tbl_vouchertypes where status=1")->result();
|
||||
foreach ($VoucherTypes as $VoucherType) : $subparamsContained[] = $VoucherType->voucher_alias;
|
||||
endforeach;
|
||||
$commandsContained = array("accounts", "inventory");
|
||||
$paramsContained = array("vouchers", "sales", "purchases");
|
||||
$subparamsContained[] = "create";
|
||||
$subparamsContained[] = "add";
|
||||
// $subparamsContained[] = "create";
|
||||
// , "add","contra");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>"><a href="#" class="nav-link active">
|
||||
<i class="nav-icon fas fa-copy"></i>
|
||||
<p>Vouchers<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php if ($LoggedUser == "admin") : ?>
|
||||
<?php foreach ($VoucherTypes as $VoucherType) : if ($VoucherType->voucher_alias != "sales" && $VoucherType->voucher_alias != "purchase") : ?>
|
||||
<li class="nav-item"><a href="<?php echo site_url("accounts/vouchers/" . $VoucherType->voucher_alias . "/create"); ?>" class="nav-link <?php echo ($subparam == $VoucherType->voucher_alias && $subparam2 == "create") ? "active" : ""; ?>">
|
||||
<p><?php echo $VoucherType->voucher_name; ?> Voucher</p>
|
||||
</a></li>
|
||||
<?php endif;
|
||||
endforeach; ?>
|
||||
<?php endif; ?>
|
||||
<?php showMenu("Sales Voucher", "inventory/sales/create"); ?>
|
||||
<?php showMenu("Purchase Voucher", "inventory/purchases/add"); ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
$commandsContained = array("inventory");
|
||||
$paramsContained = array("purchases", "sales", "reports", "stocks");
|
||||
$subparamsContained = array("edit", 'details', 'summary', 'purchase_vs_sales','purchase_register','sales_register');
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>">
|
||||
<a href="#" class="nav-link active"><i class="nav-icon fas fa-file"></i>
|
||||
<p>Inventory Report<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php if ($LoggedUser == "admin") :
|
||||
// showMenu("Inventory Stock", "inventory/stocks/list");
|
||||
showMenu("Stock Report", "inventory/stocks/summary");
|
||||
|
||||
showMenu("Sales Register", "inventory/sales/sales_register");
|
||||
showMenu("Purchase Register", "inventory/purchases/purchase_register");
|
||||
showMenu("Purchase Vs Sales", "inventory/reports/purchase_vs_sales");
|
||||
// showMenu("Balance Sheet (Vertical)", "accounts/reports/balance_sheet_vertical");
|
||||
endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
$commandsContained = array("accounts");
|
||||
$paramsContained = array("reports", "ledger");
|
||||
$subparamsContained = array("trialbalance", "pl", "balance_sheet_vertical", "cash_flow", "receipt_and_payment", "ratio_analysis", "balance_sheet");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>">
|
||||
<a href="#" class="nav-link active"><i class="nav-icon fas fa-file"></i>
|
||||
<p>Final Accounts<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php if ($LoggedUser == "admin") :
|
||||
showMenu("Trial Balance", "accounts/reports/trialbalance");
|
||||
showMenu("Profit and Loss Statement", "accounts/reports/pl");
|
||||
showMenu("Balance Sheet", "accounts/reports/balance_sheet");
|
||||
// showMenu("Balance Sheet (Vertical)", "accounts/reports/balance_sheet_vertical");
|
||||
showMenu("Receipt And Payments", "accounts/reports/receipt_and_payment");
|
||||
// showMenu("Income And Expenses", "accounts/reports/incomes_and_expenses");
|
||||
showMenu("Cash Flow", "accounts/reports/cash_flow");
|
||||
showMenu("Ratio Analysis", "accounts/reports/ratio_analysis");
|
||||
endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
$commandsContained = array("accounts","inventory");
|
||||
$paramsContained = array("reports", "ledger","purchases","sales");
|
||||
$subparamsContained = array("full", "cash_book", "bank_book", "partyledger", "day_book", "list", "receiveables", "payables");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>">
|
||||
<a href="#" class="nav-link active"><i class="nav-icon fas fa-file"></i>
|
||||
<p>Account Books<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php if ($LoggedUser == "admin") :
|
||||
showMenu("Cash Book", "accounts/ledger/cash_book");
|
||||
showMenu("Bank Book", "accounts/ledger/bank_book");
|
||||
showMenu("Day Book", "accounts/ledger/day_book");
|
||||
showMenu("Full Ledger", "accounts/ledger/full");
|
||||
showMenu("Individual Ledger", "accounts/ledger/partyledger");
|
||||
// showMenu("Group Summary", "accounts/ledger/partyledger");
|
||||
showMenu("Group Summary", "accounts/reports/balance_by_group");
|
||||
// showMenu("Balance by Category", "accounts/reports/balance_by_category");
|
||||
|
||||
showMenu("Accounts Receivables", "accounts/ledger/receiveables");
|
||||
showMenu("Accounts Payables", "accounts/ledger/payables");
|
||||
showMenu("Purchase Summary", "inventory/purchases/list");
|
||||
showMenu("Sales Summary", "inventory/sales/list");
|
||||
endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
$commandsContained = array("accounts");
|
||||
$paramsContained = array("vouchers", "ledger");
|
||||
$subparamsContained = array("listvouchers", "navigate", "show_voucher");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>">
|
||||
<a href="#" class="nav-link active"><i class="nav-icon fas fa-file"></i>
|
||||
<p>Statements of Accounts<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php
|
||||
showMenu("List of Vouchers", "accounts/vouchers/listvouchers/list");
|
||||
showMenu("List of Ledger", "accounts/ledger/navigate");
|
||||
showMenu("List of Groups", "accounts/reports/balance_by_category");
|
||||
if ($this->session->userdata('Branch')->vat)
|
||||
showMenu("VAT Register", "accounts/ledger/navigate");
|
||||
?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php /*
|
||||
<?php
|
||||
$commandsContained = array("accounts");
|
||||
$paramsContained = array("vouchers", "ledger", "reports");
|
||||
$subparamsContained = array("balance_by_type", "trialbalance_table", "balance_by_category", "balance_by_group");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>">
|
||||
<a href="#" class="nav-link active"><i class="nav-icon fas fa-file"></i>
|
||||
<p>Reports<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php if ($LoggedUser == "admin") :
|
||||
showMenu("Trial - Tabular", "accounts/reports/trialbalance_table");
|
||||
showMenu("Balance by Type", "accounts/reports/balance_by_type");
|
||||
showMenu("Balance by Category", "accounts/reports/balance_by_category");
|
||||
showMenu("Balance by Groups", "accounts/reports/balance_by_group");
|
||||
showMenu("Balance Sheet", "accounts/reports/balance_sheet");
|
||||
endif; ?>
|
||||
</ul>
|
||||
</li>
|
||||
*/ ?>
|
||||
<?php /* End Accounting Part */ ?>
|
||||
<?php
|
||||
// pre($_SESSION);die;
|
||||
$commandsContained = array("master");
|
||||
$paramsContained = array("translations");
|
||||
$subparamsContained = array("list", "add", "edit");
|
||||
?>
|
||||
<li class="nav-item <?php echo (in_array($command, $commandsContained) && in_array($param, $paramsContained) && in_array($subparam, $subparamsContained)) ? "menu-open" : ""; ?>"><a href="#" class="nav-link active"><i class="nav-icon fa fa-wrench"></i>
|
||||
<p>Configuration<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<?php if ($LoggedUser == "admin") :
|
||||
showMenu("Setup Translation", "master/translations/");
|
||||
// showMenu("Company", "master/branches/list/");
|
||||
showMenu("Switch to " . (($this->session->userdata("language") == "np") ? "English" : "Nepali"), "togglelanguage");
|
||||
// showMenu("Fiscal Year", "master/fiscalyear");
|
||||
?>
|
||||
<?php
|
||||
endif; ?>
|
||||
<li class="nav-item"><a href="<?php echo site_url("logout"); ?>" class="nav-link active"><i class="fas fa-sign-in-alt"></i>
|
||||
<p>Logout</p>
|
||||
</a> </li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav> <!-- /.sidebar-menu -->
|
||||
</div> <!-- /.sidebar -->
|
||||
</aside><i class="fa-thin fa-arrow-right-from-bracket"></i>
|
Reference in New Issue
Block a user