FIX_Client UI fix_31 files As Per PT Suggest_Sno
This commit is contained in:
parent
e864a5cd0f
commit
e8a241f183
@ -266,7 +266,7 @@ for ($i = 0; $i < $batch_col_count; $i++) {
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><?php echo $file['batch_code'] ?></td>
|
||||
<td class="reload batch-file-cell" data-toggle="tooltip" data-placement="top" title="<?php echo htmlspecialchars($file['file_name'] ?? '', ENT_QUOTES, 'UTF-8') ?>">
|
||||
<?php echo $file['file_name']?>
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><b><?php echo ($key + 1) ?></b></td>
|
||||
<td style="overflow: hidden;" class="reload truncate" data-toggle="tooltip" data-placement="top" title="<?php echo $file['file_name'] ?>">
|
||||
<?php echo $file['file_name'] ?>
|
||||
</td>
|
||||
|
||||
@ -202,7 +202,7 @@
|
||||
<?php if (isset($business_list)) { ?>
|
||||
<?php foreach($business_list as $index => $row){ ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1 ?></td>
|
||||
<td><?= $index + 1 ?></td>
|
||||
<td><?php echo $row['client_name']; ?></td>
|
||||
<td><?php echo $row['insurer_name']; ?></td>
|
||||
<td><?php echo $row['policy_type']; ?></td>
|
||||
|
||||
@ -46,15 +46,15 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
|
||||
<style>
|
||||
<?php for ($i = 0; $i < $cdm_col_count; $i++) : ?>
|
||||
#scroll-horizontal-datatable_wrapper .dataTables_scrollHead table thead th:nth-child(<?= $i + 1 ?>),
|
||||
#scroll-horizontal-datatable thead th:nth-child(<?= $i + 1 ?>) {
|
||||
#cd-master-list-table_wrapper .dataTables_scrollHead table thead th:nth-child(<?= $i + 1 ?>),
|
||||
#cd-master-list-table thead th:nth-child(<?= $i + 1 ?>) {
|
||||
min-width: <?= (int) $cdm_col_width_px[$i] ?>px;
|
||||
width: <?= (int) $cdm_col_width_px[$i] ?>px;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
overflow: visible !important;
|
||||
}
|
||||
#scroll-horizontal-datatable tbody td:nth-child(<?= $i + 1 ?>) {
|
||||
#cd-master-list-table tbody td:nth-child(<?= $i + 1 ?>) {
|
||||
width: <?= (int) $cdm_col_width_px[$i] ?>px;
|
||||
max-width: <?= (int) $cdm_col_width_px[$i] ?>px;
|
||||
min-width: <?= (int) $cdm_col_width_px[$i] ?>px;
|
||||
@ -62,20 +62,20 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
vertical-align: middle;
|
||||
}
|
||||
<?php endfor; ?>
|
||||
#scroll-horizontal-datatable tbody td:not(:last-child) {
|
||||
#cd-master-list-table tbody td:not(:last-child) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
#scroll-horizontal-datatable tbody td:last-child {
|
||||
#cd-master-list-table tbody td:last-child {
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
}
|
||||
#scroll-horizontal-datatable tbody td {
|
||||
#cd-master-list-table tbody td {
|
||||
padding: 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
#scroll-horizontal-datatable thead th {
|
||||
#cd-master-list-table thead th {
|
||||
padding: 5px 2.35rem 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
@ -97,7 +97,7 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<table data-custom-table-css="table" data-nhance-list-dt="1" id="scroll-horizontal-datatable" class="table mb-0 nowrap" cellspacing="0">
|
||||
<table data-custom-table-css="table" data-nhance-list-dt="1" id="cd-master-list-table" class="table mb-0 nowrap" cellspacing="0">
|
||||
<thead class="bg-light">
|
||||
<tr>
|
||||
<th class="font-weight-medium">S.No </th>
|
||||
@ -114,7 +114,7 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
<tbody>
|
||||
<?php foreach($CD_Master_Data as $index => $row){ ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1; ?></td>
|
||||
<td><?= $index + 1; ?></td>
|
||||
<td><?php echo $row['client_name']; ?>( <?= $row['short_name'] ?> )</td>
|
||||
<td><?php echo $row['insurer_name']; ?></td>
|
||||
<td><?php echo $row['insurer_branch_name']; ?></td>
|
||||
@ -150,7 +150,7 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
$(document).ready(function() {
|
||||
|
||||
nhanceListDataTableBeforeInit();
|
||||
var table = $('#scroll-horizontal-datatable').DataTable(nhanceMergeListDataTableOptions({
|
||||
var table = $('#cd-master-list-table').DataTable(nhanceMergeListDataTableOptions({
|
||||
// dom: "<'row'<'col-sm-6'f><'col-sm-6 text-right'B>>" +
|
||||
// "<'row'<'col-sm-12'tr>>" +
|
||||
// "<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||
@ -250,8 +250,8 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
function applyBottomRowDropup() {
|
||||
if (!table) return;
|
||||
const currentRows = table.rows({ page: 'current' }).nodes().toArray();
|
||||
$('#scroll-horizontal-datatable tbody tr').removeClass('nh-force-dropup');
|
||||
$('#scroll-horizontal-datatable tbody tr td.table-action-cell .btn-group.dropdown').removeClass('dropup');
|
||||
$('#cd-master-list-table tbody tr').removeClass('nh-force-dropup');
|
||||
$('#cd-master-list-table tbody tr td.table-action-cell .btn-group.dropdown').removeClass('dropup');
|
||||
|
||||
const targetCount = Math.min(2, currentRows.length);
|
||||
for (let i = 0; i < targetCount; i++) {
|
||||
@ -262,7 +262,7 @@ $cdm_col_width_px = nhance_dt_column_widths_px($cdm_header_labels, $cdm_col_max_
|
||||
}
|
||||
}
|
||||
applyBottomRowDropup();
|
||||
$('#scroll-horizontal-datatable').on('draw.dt', applyBottomRowDropup);
|
||||
$('#cd-master-list-table').on('draw.dt', applyBottomRowDropup);
|
||||
})
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
@ -155,7 +155,7 @@
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><?php echo $file['client_name'] ?></td>
|
||||
<td><?php echo $file['policy_no'] ?></td>
|
||||
<td style="overflow: hidden;" class="reload truncate" data-toggle="tooltip" data-placement="top" title="<?php echo $file['file_name'] ?>">
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><b><?php echo ($key + 1) ?></b></td>
|
||||
<td class="text-center"><?php echo $file['file_name'] ?></td>
|
||||
<td><?php echo change_date_format($file['created_at'],'Y-m-d H:i:s', 'd M Y h:i a') . ' by <strong>' . $file['user_name'] . '</strong>' ?>
|
||||
<td>
|
||||
|
||||
@ -173,7 +173,7 @@
|
||||
<?php if (isset($commission_file_list)) : ?>
|
||||
<?php foreach ($commission_file_list as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index+1 ?></td>
|
||||
<td><?= $index+1 ?></td>
|
||||
<td style="overflow: hidden;" class="reload truncate" data-toggle="tooltip" data-placement="top" title="<?php echo $row['file_name'] ?>">
|
||||
<?php echo $row['file_name'] ?>
|
||||
</td>
|
||||
|
||||
@ -144,7 +144,7 @@
|
||||
<?php if (isset($files)) { ?>
|
||||
<?php foreach($files as $index => $row){ ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1 ?></td>
|
||||
<td><?= $index + 1 ?></td>
|
||||
<td><?php echo $row['doc_name']; ?></td>
|
||||
<td><?php echo $row['file_name']; ?></td>
|
||||
<td>
|
||||
|
||||
@ -256,7 +256,7 @@ $gst_total = 0;
|
||||
$gst_total = 0;
|
||||
foreach ($employees as $key => $employee) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1); ?></b></td>
|
||||
<td><b><?php echo ($key + 1); ?></b></td>
|
||||
|
||||
<?php if (isset($getData)) {
|
||||
if ($getData['client_id'] == '0' && $getData['policy_id'] == '0' && $getData['branch_id'] == '0' && ($getData['emp_code'] != "" || $getData['emp_name'] != "" || $getData['status'] != "")) { ?>
|
||||
|
||||
@ -215,7 +215,7 @@ $end_col_width_px = nhance_dt_column_widths_px($end_header_labels, $end_col_max_
|
||||
foreach ($employees as $key => $employee) { ?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><?php echo $employee['name'] ?>( <?php echo $employee['emp_code'] ?> )</td>
|
||||
<!-- <td><?php echo isset($employee['policy_name']) ? $employee['policy_name'] : '' ?> - <?php echo isset($employee['policy_no']) ? $employee['policy_no'] : '' ?> - <?php echo isset($employee['policy_type']) ? $employee['policy_type'] : '' ?></td> -->
|
||||
<td><?php echo isset($employee['policy_type']) ? $employee['policy_type'] : '' ?> - <?php echo isset($employee['policy_no']) ? $employee['policy_no'] : '' ?></td>
|
||||
|
||||
@ -232,7 +232,7 @@ $ex_col_width_px = nhance_dt_column_widths_px($ex_header_labels, $ex_col_max_len
|
||||
<?php if (! empty($expenses)) : ?>
|
||||
<?php foreach ($expenses as $index => $row) : ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1; ?></td>
|
||||
<td><?= $index + 1; ?></td>
|
||||
<td>
|
||||
<?= esc($row['client_name'] ?? ''); ?>
|
||||
<?= ! empty($row['short_name']) ? ' (' . esc($row['short_name']) . ')' : ''; ?>
|
||||
|
||||
@ -124,7 +124,7 @@ $faq_col_width_px = nhance_dt_column_widths_px($faq_header_labels, $faq_col_max_
|
||||
$slno = 1; ?>
|
||||
<?php foreach($faq_list as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $slno++; ?></td>
|
||||
<td><?php $category = $row['category'] ? $row['category'] : 'N/A';
|
||||
echo (strlen($category) > 50)
|
||||
? htmlspecialchars(substr($category, 0, 50)) . "..."
|
||||
|
||||
@ -1,3 +1,44 @@
|
||||
<?php
|
||||
helper('datatable_view');
|
||||
$fl_header_labels = [
|
||||
'S.No', 'File name', 'Client', 'Client Branch', 'Policy',
|
||||
'Event', 'User/Time', 'Status', 'Action',
|
||||
];
|
||||
$fl_col_count = count($fl_header_labels);
|
||||
$fl_col_max_len = array_fill(0, $fl_col_count, 0);
|
||||
for ($i = 0; $i < $fl_col_count; $i++) {
|
||||
$fl_col_max_len[$i] = mb_strlen($fl_header_labels[$i]);
|
||||
}
|
||||
$fileList = $fileList ?? [];
|
||||
if (!empty($fileList) && is_array($fileList)) {
|
||||
foreach ($fileList as $key => $file) {
|
||||
$fl_col_max_len[0] = max($fl_col_max_len[0], mb_strlen((string) ($key + 1)));
|
||||
$fl_col_max_len[1] = max($fl_col_max_len[1], mb_strlen((string) ($file['file_name'] ?? '')));
|
||||
$fl_col_max_len[2] = max($fl_col_max_len[2], mb_strlen((string) ($file['short_name'] ?? '')));
|
||||
$fl_col_max_len[3] = max($fl_col_max_len[3], mb_strlen((string) ($file['branch_name'] ?? '')));
|
||||
$policy_display = trim(
|
||||
(isset($file['policy_type']) ? $file['policy_type'] : '')
|
||||
. ' - '
|
||||
. (isset($file['policy_no']) ? $file['policy_no'] : '')
|
||||
);
|
||||
$fl_col_max_len[4] = max($fl_col_max_len[4], mb_strlen($policy_display));
|
||||
$fl_col_max_len[5] = max($fl_col_max_len[5], mb_strlen((string) ($file['action'] ?? '')));
|
||||
$userTime = change_date_format($file['created_at'] ?? '', 'Y-m-d H:i:s', 'd M Y h:i a')
|
||||
. ' by '
|
||||
. ($file['first_name'] ?? '');
|
||||
$fl_col_max_len[6] = max($fl_col_max_len[6], mb_strlen($userTime));
|
||||
$st = (string) ($file['status'] ?? '');
|
||||
$fl_col_max_len[7] = max($fl_col_max_len[7], mb_strlen($st));
|
||||
if ($st === 'inprogress' || $st === 'success') {
|
||||
$fl_col_max_len[7] = max($fl_col_max_len[7], 12);
|
||||
}
|
||||
$fl_col_max_len[8] = max($fl_col_max_len[8], 4);
|
||||
}
|
||||
}
|
||||
$fl_col_min_px = [48, 100, 72, 80, 120, 88, 160, 96, 72];
|
||||
$fl_col_max_px = [64, 320, 180, 180, 360, 160, 320, 200, 88];
|
||||
$fl_col_width_px = nhance_dt_column_widths_px($fl_header_labels, $fl_col_max_len, $fl_col_min_px, $fl_col_max_px);
|
||||
?>
|
||||
<style>
|
||||
.modal-full-width {
|
||||
width: 95% !important;
|
||||
@ -11,70 +52,114 @@
|
||||
.column-header { margin-right: 10px; /* Adjust this value as needed */ }
|
||||
|
||||
/* Compact table + buttons (NHance) */
|
||||
#tickets-table thead th,
|
||||
#tickets-table tbody td {
|
||||
#file-list-table tbody td {
|
||||
padding: 6px 12px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
#file-list-table_wrapper .dataTables_scrollHead table thead th,
|
||||
#file-list-table thead th {
|
||||
padding: 6px 2.35rem 6px 12px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
#tickets-table .font-12 {
|
||||
#file-list-table .font-12 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* Action dropdown toggle in rows */
|
||||
#tickets-table .dropdown-toggle.btn-sm {
|
||||
#file-list-table .dropdown-toggle.btn-sm {
|
||||
padding: 4px 9px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/* DataTables toolbar buttons (Export/Filter/Clear Filter) */
|
||||
#tickets-table_wrapper .dt-buttons .btn {
|
||||
#file-list-table_wrapper .dt-buttons .btn {
|
||||
padding: 6px 13px !important;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#tickets-table_wrapper .dt-buttons .btn .btn-custom {
|
||||
#file-list-table_wrapper .dt-buttons .btn .btn-custom {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#tickets-table{
|
||||
#file-list-table{
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
#tickets-table thead th{
|
||||
#file-list-table thead th{
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#tickets-table_wrapper .datatable-search-wrapper{
|
||||
#file-list-table_wrapper .datatable-search-wrapper{
|
||||
width: auto !important;
|
||||
}
|
||||
|
||||
#tickets-table_wrapper .dataTables_filter input{
|
||||
#file-list-table_wrapper .dataTables_filter input{
|
||||
padding-right: 34px !important;
|
||||
width: 220px !important;
|
||||
}
|
||||
|
||||
#tickets-table_wrapper .row.align-items-center{
|
||||
#file-list-table_wrapper .row.align-items-center{
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
#tickets-table_wrapper .dataTables_info,
|
||||
#tickets-table_wrapper .dataTables_length,
|
||||
#tickets-table_wrapper .dataTables_paginate{
|
||||
#file-list-table_wrapper .dataTables_info,
|
||||
#file-list-table_wrapper .dataTables_length,
|
||||
#file-list-table_wrapper .dataTables_paginate{
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#tickets-table_wrapper .datatable-search-icon,
|
||||
#tickets-table_wrapper .datatable-clear-icon{
|
||||
#file-list-table_wrapper .datatable-search-icon,
|
||||
#file-list-table_wrapper .datatable-clear-icon{
|
||||
right: 11px !important;
|
||||
}
|
||||
#file-list-page .card-body > .table-responsive {
|
||||
overflow-x: auto !important;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
</style>
|
||||
<style>
|
||||
<?php for ($i = 0; $i < $fl_col_count; $i++) : ?>
|
||||
#file-list-table_wrapper .dataTables_scrollHead table thead th:nth-child(<?= $i + 1 ?>),
|
||||
#file-list-table thead th:nth-child(<?= $i + 1 ?>) {
|
||||
min-width: <?= (int) $fl_col_width_px[$i] ?>px;
|
||||
width: <?= (int) $fl_col_width_px[$i] ?>px;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
overflow: visible !important;
|
||||
}
|
||||
#file-list-table tbody td:nth-child(<?= $i + 1 ?>) {
|
||||
width: <?= (int) $fl_col_width_px[$i] ?>px;
|
||||
max-width: <?= (int) $fl_col_width_px[$i] ?>px;
|
||||
min-width: <?= (int) $fl_col_width_px[$i] ?>px;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
}
|
||||
<?php endfor; ?>
|
||||
#file-list-table tbody td:nth-child(1),
|
||||
#file-list-table tbody td:nth-child(2),
|
||||
#file-list-table tbody td:nth-child(3),
|
||||
#file-list-table tbody td:nth-child(4),
|
||||
#file-list-table tbody td:nth-child(5),
|
||||
#file-list-table tbody td:nth-child(6),
|
||||
#file-list-table tbody td:nth-child(7),
|
||||
#file-list-table tbody td:nth-child(8) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
#file-list-table tbody td:nth-child(9) {
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="col-12">
|
||||
<div class="col-12" id="file-list-page">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div class="row" style="padding-bottom: 10px;">
|
||||
@ -84,7 +169,7 @@
|
||||
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table data-custom-table-css="table" class="table mb-0 nowrap w-100 table-centered" cellspacing="0" id="tickets-table">
|
||||
<table data-custom-table-css="table" class="table mb-0 nowrap w-100 table-centered" cellspacing="0" id="file-list-table">
|
||||
<thead class="bg-light">
|
||||
<tr>
|
||||
<th class="font-weight-medium"><div class="column-header">S.No</div></th>
|
||||
@ -109,7 +194,7 @@
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="text-center"><b><?php echo ($key + 1) ?></b></td>
|
||||
<td><b><?php echo ($key + 1) ?></b></td>
|
||||
<td style="overflow: hidden;" class="reload truncate" data-toggle="tooltip" data-placement="top" title="<?php echo $file['file_name'] ?>">
|
||||
<?php echo $file['file_name']?>
|
||||
</td>
|
||||
@ -524,11 +609,13 @@
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
$('#tickets-table').DataTable({
|
||||
nhanceListDataTableBeforeInit();
|
||||
var nhFileListTable = $('#file-list-table').DataTable(nhanceMergeListDataTableOptions({
|
||||
|
||||
dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" + // Filter left, buttons right
|
||||
dom: "<'row'<'col-sm-7'f><'col-sm-5 text-right'B>>" +
|
||||
"<'row'<'col-sm-12'tr>>" +
|
||||
"<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>", lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
|
||||
"<'row align-items-center'<'col-5 text-start'i><'col-7 d-flex justify-content-end align-items-center'<'me-2'l>p>>",
|
||||
lengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]],
|
||||
buttons: [
|
||||
{
|
||||
extend: 'collection',
|
||||
@ -574,19 +661,15 @@
|
||||
emptyTable: '<div class="text-center text-muted">No Data found</div>'
|
||||
},
|
||||
paging: true,
|
||||
});
|
||||
columnDefs: [
|
||||
<?php for ($i = 0; $i < $fl_col_count; $i++) : ?>
|
||||
{ targets: <?= $i ?>, width: '<?= (int) $fl_col_width_px[$i] ?>px' },
|
||||
<?php endfor; ?>
|
||||
],
|
||||
}));
|
||||
nhanceListDataTableAfterInit();
|
||||
nhanceListDataTableBindAdjust(nhFileListTable);
|
||||
|
||||
setTimeout(function () {
|
||||
const dt = $('#tickets-table').DataTable();
|
||||
dt.columns.adjust().draw(false);
|
||||
}, 0);
|
||||
|
||||
});
|
||||
|
||||
$(window).on('resize', function () {
|
||||
if ($.fn.DataTable.isDataTable('#tickets-table')) {
|
||||
$('#tickets-table').DataTable().columns.adjust();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
@ -90,7 +90,7 @@ $fec_col_width_px = nhance_dt_column_widths_px($fec_header_labels, $fec_col_max_
|
||||
<?php if(!empty($data['fe_list'])) { $slno = 1; ?>
|
||||
<?php foreach($data['fe_list'] as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $slno++; ?></td>
|
||||
<td><?= $row['type']; ?></td>
|
||||
<td><?= $row['content_section']; ?></td>
|
||||
<td><?= $row['heading']; ?></td>
|
||||
|
||||
@ -111,7 +111,7 @@
|
||||
<?php if(isset($insurer_templete_list)){ ?>
|
||||
<?php foreach($insurer_templete_list as $key => $value ){ ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $key+1; ?></td>
|
||||
<td><?= $key+1; ?></td>
|
||||
<td><?= $value['policy_type']; ?></td>
|
||||
<td><?= $events[$value['event_name']]; ?></td>
|
||||
<td><?= $value['type_name'] == 'import' ? 'Upload' : 'Download'; ?></td>
|
||||
|
||||
@ -65,6 +65,17 @@ $ins_col_width_px = nhance_dt_column_widths_px($ins_header_labels, $ins_col_max_
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
}
|
||||
#insurer-list-table tbody td {
|
||||
padding: 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
#insurer-list-table_wrapper .dataTables_scrollHead table thead th,
|
||||
#insurer-list-table thead th {
|
||||
padding: 5px 2.35rem 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="container-fluid-min">
|
||||
|
||||
@ -359,7 +359,7 @@ body {
|
||||
$page_break_class = (($serial % $records_per_page) == 0 && $serial != count($policies)) ? 'page-break' : '';
|
||||
?>
|
||||
<tr class="<?= $page_break_class ?>">
|
||||
<td class="text-center"><?= $serial ?></td>
|
||||
<td><?= $serial ?></td>
|
||||
<td><?= $policy['policy_no'] ?></td>
|
||||
<td><?= $policy['customer_name'] ?></td>
|
||||
<td class="text-right"><?= number_format($policy['premium'], 2) ?></td>
|
||||
|
||||
@ -264,7 +264,7 @@ for ($i = 0; $i < $leads_col_count; $i++) {
|
||||
<?php if (isset($lead_data_list)) {?>
|
||||
<?php foreach ($lead_data_list as $index => $row) {?>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<td>
|
||||
<?php echo $index + 1; ?>
|
||||
<?php if ($row['demography_file_status'] == "failed") {?>
|
||||
<a href="<?php echo base_url('util/getMemberDataExcelFileErrors?lead_id=') . $row['id'] ?>"
|
||||
|
||||
@ -32,7 +32,7 @@ table.dataTable tbody td {
|
||||
<?php if (!empty($logs)): ?>
|
||||
<?php foreach ($logs as $index => $log): ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1 . '.' ?></td>
|
||||
<td><?= $index + 1 . '.' ?></td>
|
||||
<td><?= esc($log) ?></td>
|
||||
<td>
|
||||
<a href="<?= base_url('util/view_log/' . urlencode($log)) ?>">View</a> |
|
||||
|
||||
@ -81,7 +81,7 @@ $nb_col_width_px = nhance_dt_column_widths_px($nb_header_labels, $nb_col_max_len
|
||||
<?php if(isset($data)) { $slno = 1; ?>
|
||||
<?php foreach($data as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $slno++; ?></td>
|
||||
<td><?= $row['branch_name']; ?></td>
|
||||
<!-- <td>
|
||||
<span class="<?php if($row['is_active'] == 1){ echo 'badge badge-primary'; }else{ echo 'badge badge-danger'; } ?>">
|
||||
|
||||
@ -1202,7 +1202,7 @@ function nonebCreateFileList(data) {
|
||||
var html = '';
|
||||
data.forEach(function(item, index) {
|
||||
html += '<tr>' +
|
||||
'<td class="text-center">' + (index + 1) + '</td>' +
|
||||
'<td>' + (index + 1) + '</td>' +
|
||||
'<td>' + item.doc_name + '</td>' +
|
||||
'<td><a href="' + item.url + '" target="_blank">' + (item.file_type == 1 ? item.url : item.doc_name) + '</a></td>' +
|
||||
'<td><a href="javascript:void(0);" class="noneb-delete-url" data-href="' + base_url + 'non-eb-claim/removeFile?id=' + item.id + '"><i class="mdi mdi-delete mr-1"></i></a></td>' +
|
||||
|
||||
@ -238,7 +238,7 @@ $or_col_width_px = nhance_dt_column_widths_px($or_header_labels, $or_col_max_len
|
||||
if (isset($outstanting_list)) { ?>
|
||||
<?php foreach ($outstanting_list as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1 ?></td>
|
||||
<td><?= $index + 1 ?></td>
|
||||
<td><?php echo $row['short_name']; ?></td>
|
||||
<td><?php echo $row['branch_name']; ?></td>
|
||||
<td><?php echo change_date_format($row['month'],'Y-m-d','Y-m') ?></td>
|
||||
|
||||
@ -296,7 +296,7 @@
|
||||
<tbody>
|
||||
<?php foreach ($endorsement_data_list as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $index + 1; ?></td>
|
||||
<td><?php echo $index + 1; ?></td>
|
||||
<td><?php echo $issuer[$row['issuer']] ?? 'N/A'; ?></td><!-- Issuer -->
|
||||
<td><?php echo $row['client_short_name'] ?: 'N/A'; ?></td><!-- Client -->
|
||||
<td><?php echo $row['client_branch_name'] ?: 'N/A'; ?></td><!-- Branch -->
|
||||
|
||||
@ -325,7 +325,7 @@ table.dataTable thead th {
|
||||
<tbody>
|
||||
<?php foreach ($endorsement_data_list as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $index + 1; ?></td>
|
||||
<td><?php echo $index + 1; ?></td>
|
||||
<td><?php echo $issuer[$row['issuer']] ?? 'N/A'; ?></td><!-- Issuer -->
|
||||
<td><?php echo $row['client_short_name'] ?: 'N/A'; ?></td><!-- Client -->
|
||||
<td><?php echo $row['client_branch_name'] ?: 'N/A'; ?></td><!-- Branch -->
|
||||
|
||||
@ -111,7 +111,7 @@ $pos_col_width_px = nhance_dt_column_widths_px($pos_header_labels, $pos_col_max_
|
||||
<?php if(!empty($data['pos_list'])) { $slno = 1; ?>
|
||||
<?php foreach($data['pos_list'] as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $slno++; ?></td>
|
||||
<td><?= $row['manager_name']; ?></td>
|
||||
<td><?= $row['name']; ?></td>
|
||||
<td><?= $row['pos_code']; ?></td>
|
||||
|
||||
@ -85,7 +85,7 @@ $rto_col_width_px = nhance_dt_column_widths_px($rto_header_labels, $rto_col_max_
|
||||
<?php if(isset($data)) { $slno = 1; ?>
|
||||
<?php foreach($data as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $slno++; ?></td>
|
||||
<td><?= $row['rto_name']; ?></td>
|
||||
<td><?= $row['rto_code']; ?></td>
|
||||
<td><?= $row['rto_state']; ?></td>
|
||||
|
||||
@ -166,7 +166,7 @@ beccause = dataTables_length and dataTables_paginate need in same line thats why
|
||||
<?php if(isset($ticket_data)) { ?>
|
||||
<?php foreach($ticket_data as $index => $row){ ?>
|
||||
<tr data-id="<?= $row['thz_id']; ?>" style="cursor: pointer;">
|
||||
<td class="text-center"><?php echo $row['thz_id']; ?></td>
|
||||
<td><?php echo $row['thz_id']; ?></td>
|
||||
<td class="text-left"><?php echo $row['name']; ?>
|
||||
<span class="text-custom-grey"><?php if (!empty($row['empcode'])): echo '('.$row['empcode'].')'; endif; ?></span><br>
|
||||
<span class="text-custom-grey"><?php if (!empty($row['mobile'])): echo $row['mobile']; endif; ?></span>
|
||||
|
||||
@ -85,6 +85,17 @@ $tpa_col_width_px = nhance_dt_column_widths_px($tpa_header_labels, $tpa_col_max_
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
}
|
||||
#tpa-list-table tbody td {
|
||||
padding: 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
#tpa-list-table_wrapper .dataTables_scrollHead table thead th,
|
||||
#tpa-list-table thead th {
|
||||
padding: 5px 2.35rem 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
</style>
|
||||
<div class="container-fluid-min">
|
||||
<div class="row" id="tpa_list">
|
||||
|
||||
@ -376,7 +376,7 @@ $vr_col_width_px = nhance_dt_column_widths_px($vr_header_labels, $vr_col_max_len
|
||||
<?php if (isset($varience_list)) { ?>
|
||||
<?php foreach($varience_list as $index => $row){ ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $index + 1 ?></td>
|
||||
<td><?= $index + 1 ?></td>
|
||||
<td><?php echo $row['client_name']; ?></td>
|
||||
<td style="display: none;"><?php echo $row['client_branch_name']; ?></td>
|
||||
<td style="display: none;"><?php echo $row['insurer_name']; ?></td>
|
||||
|
||||
@ -60,15 +60,15 @@ $vm_col_width_px = nhance_dt_column_widths_px($vm_header_labels, $vm_col_max_len
|
||||
?>
|
||||
<style>
|
||||
<?php for ($i = 0; $i < $vm_col_count; $i++) : ?>
|
||||
#scroll-horizontal-datatable_wrapper .dataTables_scrollHead table thead th:nth-child(<?= $i + 1 ?>),
|
||||
#scroll-horizontal-datatable thead th:nth-child(<?= $i + 1 ?>) {
|
||||
#vehicle-master-list-table_wrapper .dataTables_scrollHead table thead th:nth-child(<?= $i + 1 ?>),
|
||||
#vehicle-master-list-table thead th:nth-child(<?= $i + 1 ?>) {
|
||||
min-width: <?= (int) $vm_col_width_px[$i] ?>px;
|
||||
width: <?= (int) $vm_col_width_px[$i] ?>px;
|
||||
box-sizing: border-box;
|
||||
vertical-align: middle;
|
||||
overflow: visible !important;
|
||||
}
|
||||
#scroll-horizontal-datatable tbody td:nth-child(<?= $i + 1 ?>) {
|
||||
#vehicle-master-list-table tbody td:nth-child(<?= $i + 1 ?>) {
|
||||
width: <?= (int) $vm_col_width_px[$i] ?>px;
|
||||
max-width: <?= (int) $vm_col_width_px[$i] ?>px;
|
||||
min-width: <?= (int) $vm_col_width_px[$i] ?>px;
|
||||
@ -76,20 +76,20 @@ $vm_col_width_px = nhance_dt_column_widths_px($vm_header_labels, $vm_col_max_len
|
||||
vertical-align: middle;
|
||||
}
|
||||
<?php endfor; ?>
|
||||
#scroll-horizontal-datatable tbody td:not(:last-child) {
|
||||
#vehicle-master-list-table tbody td:not(:last-child) {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
#scroll-horizontal-datatable tbody td:last-child {
|
||||
#vehicle-master-list-table tbody td:last-child {
|
||||
overflow: visible;
|
||||
text-overflow: clip;
|
||||
}
|
||||
#scroll-horizontal-datatable tbody td {
|
||||
#vehicle-master-list-table tbody td {
|
||||
padding: 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
}
|
||||
#scroll-horizontal-datatable thead th {
|
||||
#vehicle-master-list-table thead th {
|
||||
padding: 5px 2.35rem 5px 11px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.25;
|
||||
@ -105,7 +105,7 @@ $vm_col_width_px = nhance_dt_column_widths_px($vm_header_labels, $vm_col_max_len
|
||||
<h4 style="position: relative;">Vehicle Master</h4>
|
||||
</div>
|
||||
</div> -->
|
||||
<table data-custom-table-css="table" data-nhance-list-dt="1" id="scroll-horizontal-datatable" class="table mb-0 nowrap" cellspacing="0">
|
||||
<table data-custom-table-css="table" data-nhance-list-dt="1" id="vehicle-master-list-table" class="table mb-0 nowrap" cellspacing="0">
|
||||
<thead class="bg-light">
|
||||
<tr>
|
||||
<th class="font-weight-medium">S.No </th>
|
||||
@ -122,7 +122,7 @@ $vm_col_width_px = nhance_dt_column_widths_px($vm_header_labels, $vm_col_max_len
|
||||
<tbody>
|
||||
<?php foreach($vehicle_Master_Data as $index => $row){ ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo $index+1; ?></td>
|
||||
<td><?php echo $index+1; ?></td>
|
||||
<td><?php echo $row['owner_type'] ?: 'N/A'; ?></td>
|
||||
<td><?php echo $row['owner_name'] ?: 'N/A'; ?></td>
|
||||
<td><?php echo $row['rc'] ?: 'N/A'; ?></td>
|
||||
@ -401,7 +401,7 @@ $(document).ready(function() {
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var table = $('#scroll-horizontal-datatable');
|
||||
var table = $('#vehicle-master-list-table');
|
||||
if (table.length) {
|
||||
nhanceListDataTableBeforeInit();
|
||||
var dataTable = table.DataTable(nhanceMergeListDataTableOptions({
|
||||
@ -479,8 +479,8 @@ $(document).ready(function() {
|
||||
if (!dataTable) return;
|
||||
|
||||
const currentRows = dataTable.rows({ page: 'current' }).nodes().toArray();
|
||||
$('#scroll-horizontal-datatable tbody tr').removeClass('nh-force-dropup');
|
||||
$('#scroll-horizontal-datatable tbody tr td.table-action-cell .btn-group.dropdown').removeClass('dropup');
|
||||
$('#vehicle-master-list-table tbody tr').removeClass('nh-force-dropup');
|
||||
$('#vehicle-master-list-table tbody tr td.table-action-cell .btn-group.dropdown').removeClass('dropup');
|
||||
|
||||
const targetCount = Math.min(2, currentRows.length);
|
||||
for (let i = 0; i < targetCount; i++) {
|
||||
@ -491,7 +491,7 @@ $(document).ready(function() {
|
||||
}
|
||||
}
|
||||
applyBottomRowDropup();
|
||||
$('#scroll-horizontal-datatable').on('draw.dt', applyBottomRowDropup);
|
||||
$('#vehicle-master-list-table').on('draw.dt', applyBottomRowDropup);
|
||||
|
||||
} else {
|
||||
console.error("Table atet found.");
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
<?php if(isset($data)) { $slno = 1; ?>
|
||||
<?php foreach($data as $index => $row) { ?>
|
||||
<tr>
|
||||
<td class="text-center"><?= $slno++; ?></td>
|
||||
<td><?= $slno++; ?></td>
|
||||
<td><?= $row['vehicle_type']; ?></td>
|
||||
<!-- <td>
|
||||
<span class="<?php if($row['is_active'] == 1){ echo 'badge badge-primary'; }else{ echo 'badge badge-danger'; } ?>">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user