diff --git a/app/Views/UserList.php b/app/Views/UserList.php
index 0adae2ad..141b3c50 100755
--- a/app/Views/UserList.php
+++ b/app/Views/UserList.php
@@ -341,6 +341,62 @@ table.dataTable tbody td {
+first_name ?? '')));
+ $ul_col_max_len[1] = max($ul_col_max_len[1], mb_strlen((string) ($row->email ?? '')));
+ $ul_col_max_len[2] = max($ul_col_max_len[2], mb_strlen((string) ($row->mobile ?? '')));
+ $ul_col_max_len[3] = max($ul_col_max_len[3], mb_strlen((string) ($row->user_role ?? '')));
+ $statusLabel = (($row->is_active ?? 0) == 1) ? 'Active' : 'In-Active';
+ $ul_col_max_len[4] = max($ul_col_max_len[4], mb_strlen($statusLabel));
+ $ul_col_max_len[5] = max($ul_col_max_len[5], 4);
+ }
+}
+$ul_col_min_px = array_fill(0, $ul_col_count, 80);
+$ul_col_max_px = array_fill(0, $ul_col_count, 360);
+$ul_col_min_px[0] = 72;
+$ul_col_max_px[0] = 280;
+$ul_col_min_px[5] = 72;
+$ul_col_max_px[5] = 96;
+$ul_col_width_px = nhance_dt_column_widths_px($ul_header_labels, $ul_col_max_len, $ul_col_min_px, $ul_col_max_px);
+?>
+
+
<'col-sm-9'B>>" +
// "<'row'<'col-sm-12'tr>>" +
// "<'row'<'col-sm-5'i><'col-sm-7'p>>",
@@ -1083,8 +1139,15 @@ table.dataTable tbody td {
$(this).addClass('active');
loadPartner();
});
- }
- });
+ },
+ columnDefs: [
+
+ { targets: = $i ?>, width: '= (int) $ul_col_width_px[$i] ?>px' },
+
+ ]
+ }));
+ nhanceListDataTableAfterInit();
+ nhanceListDataTableBindAdjust(table);
function applyBottomRowDropup() {
if (!table) return;
@@ -1109,12 +1172,12 @@ table.dataTable tbody td {
// IMPORTANT — DataTables draw event REF: TTS
table.on('draw.dt', function () {
- let rowCount = $('#scroll-horizontal-datatable').DataTable().rows({ filter: 'applied' }).count();
+ let rowCount = table.rows({ filter: 'applied' }).count();
if (rowCount <= 2) {
- $('.dataTables_scrollBody').css('overflow', 'inherit');
+ $('#user-table_wrapper .dataTables_scrollBody').css('overflow', 'inherit');
} else {
- $('.dataTables_scrollBody').css('overflow', 'auto');
+ $('#user-table_wrapper .dataTables_scrollBody').css('overflow', 'auto');
}
});
diff --git a/app/Views/client_list.php b/app/Views/client_list.php
index bf4c78eb..1934afb8 100755
--- a/app/Views/client_list.php
+++ b/app/Views/client_list.php
@@ -180,7 +180,7 @@ table.dataTable thead th {
$row){ ?>
- | =$index+1?> |
+ =$index+1?> |
client_name; ?> ( short_name; ?> ) |
+ id="insurer-list-table">
| Name |
@@ -71,10 +119,8 @@
\ No newline at end of file
+
diff --git a/app/Views/tpa_list.php b/app/Views/tpa_list.php
index c369c606..6f907c54 100755
--- a/app/Views/tpa_list.php
+++ b/app/Views/tpa_list.php
@@ -1,3 +1,23 @@
+
+
-->
+ id="tpa-list-table">
| Name |
@@ -87,7 +134,10 @@