BBnepal-Accounts/account/application/views/includes/header.php
2024-09-30 16:09:29 +05:45

392 lines
8.5 KiB
PHP

<!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">
<!-- CSV File create -->
<script>
// document.getElementById('downloadBtn').addEventListener('click', function() {
// const table = document.getElementById('myTable');
// const csvData = [];
// const rowCount = table.rows.length;
// const output = [];
// for (let i = 0; i < rowCount; i++) {
// const row = table.rows[i];
// const rowArray = [];
// let skipCell = 0;
// for (let j = 0; j < row.cells.length; j++) {
// const cell = row.cells[j];
// if (skipCell > 0) {
// skipCell--;
// continue; // Skip this cell due to rowspan
// }
// const cellContent = cell.textContent.trim();
// const colspan = cell.colSpan || 1;
// const rowspan = cell.rowSpan || 1;
// // Fill the rowArray for the colspan
// for (let k = 0; k < colspan; k++) {
// if (k === colspan - 1) {
// rowArray.push(cellContent); // Last cell of colspan gets content
// } else {
// rowArray.push(''); // Fill empty for additional colspan cells
// }
// }
// // Set skipCell to account for rowspan
// skipCell = rowspan - 1;
// // Ensure that the row length matches the maximum number of columns
// while (rowArray.length < output.length) {
// rowArray.push(''); // Fill empty cells
// }
// // Fill the output structure
// output[i] = rowArray;
// }
// }
// // Join rows for CSV format
// output.forEach(row => {
// const filledRow = row.map(cell => cell === undefined ? '' : cell);
// csvData.push(filledRow.join(','));
// });
// const csvContent = csvData.join('\n');
// const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
// const url = URL.createObjectURL(blob);
// const link = document.createElement('a');
// link.setAttribute('href', url);
// link.setAttribute('download', 'table_with_colspan_rowspan.csv');
// document.body.appendChild(link);
// link.click();
// document.body.removeChild(link);
// });
</script>
<!-- csv printing ends -->
<!-- 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">