CHANGE_help_desk_tickets - VADIVEL J 2025-11-01 11:29

This commit is contained in:
vadivelJ96 2025-11-04 11:29:40 +05:30
parent d89cfd4ed9
commit 9f5f93b73e
4 changed files with 65 additions and 56 deletions

View File

@ -154,35 +154,18 @@ $(document).ready(function() {
// Global DataTables defaults // Global DataTables defaults
$.extend(true, $.fn.dataTable.defaults, { $.extend(true, $.fn.dataTable.defaults, {
language: { language: {
search: "", // remove "Search:" label search: `
<div class="datatable-search-wrapper">
_INPUT_
<i class="mdi mdi-magnify datatable-search-icon"></i>
</div>`,
searchPlaceholder: "Search" searchPlaceholder: "Search"
}, },
paging: true, paging: true,
pageLength: 10, pageLength: 10,
ordering: false ordering: false
}); });
// Global init hook
$(document).on('init.dt', function (e, settings) {
let $filter = $(settings.nTableWrapper).find('.dataTables_filter');
let $input = $filter.find('input');
if (!$filter.hasClass('custom-search')) {
// Wrap in Bootstrap input-group
$input
.addClass('form-control')
.wrap('<div class="input-group"></div>');
// Append icon
$input.after(`
<span class="input-group-text bg-white border-0">
<i class="mdi mdi-magnify"></i>
</span>
`);
// Align to right
$filter.addClass('text-right custom-search');
}
});
</script> </script>

View File

@ -355,6 +355,7 @@
.content-page { .content-page {
padding: 80px 15px 65px 15px !important; padding: 80px 15px 65px 15px !important;
height: 100vh;
} }
/* Media query for small screens */ /* Media query for small screens */
@ -1861,25 +1862,6 @@
</li> </li>
<?php } ?> <?php } ?>
<!-- leads -->
<?php if (in_array(get_role_id(), [1, 2, 3, 5]) || in_array(BUSINESS_SUPPORT_TEAM_ID, user_team()) || in_array(SALES_TEAM_ID, user_team())) { ?>
<li class="li-seperate" id="leads-li">
<a href="<?= base_url('/leads/list') ?>" class="img-inactive">
<img
src="<?= base_url() . "public"; ?>/assets/images/leads_sb.png" alt="Logo" height="20">
<span> Leads </span>
</a>
</li>
<?php } ?>
<!-- Tickets -->
<?php if (in_array(get_role_id(), [1, 2, 3, 4, 5]) || in_array(CLAIMS_TEAM_ID, user_team())) { ?>
<li class="li-seperate" id="tickets-li">
<a id="tickets" href="<?= base_url('/ticketList?return_type=web') ?>" class="waves-effect img-inactive">
<img src="<?= base_url() . "public"; ?>/assets/images/ticket.png" alt="Logo" height="20">
<span>Tickets</span>
</a>
</li>
<?php } ?>
<!-- BDS --> <!-- BDS -->
<?php if ((get_role_id() == 1 || get_role_id() == 5 || get_role_id() == 4) || (in_array(MANAGEMENT_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(BUSINESS_TEAM_ID, user_team()) || in_array(POS_TEAM_ID, user_team()))) { ?> <?php if ((get_role_id() == 1 || get_role_id() == 5 || get_role_id() == 4) || (in_array(MANAGEMENT_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(BUSINESS_TEAM_ID, user_team()) || in_array(POS_TEAM_ID, user_team()))) { ?>
<li class="li-seperate" id="policy-transactions-li"> <li class="li-seperate" id="policy-transactions-li">
@ -2034,6 +2016,26 @@
</li> </li>
<?php } ?> <?php } ?>
<!-- leads -->
<?php if (in_array(get_role_id(), [1, 2, 3, 5]) || in_array(BUSINESS_SUPPORT_TEAM_ID, user_team()) || in_array(SALES_TEAM_ID, user_team())) { ?>
<li class="li-seperate" id="leads-li">
<a href="<?= base_url('/leads/list') ?>" class="img-inactive">
<img
src="<?= base_url() . "public"; ?>/assets/images/leads_sb.png" alt="Logo" height="20">
<span> Leads </span>
</a>
</li>
<?php } ?>
<!-- Tickets -->
<?php if (in_array(get_role_id(), [1, 2, 3, 4, 5]) || in_array(CLAIMS_TEAM_ID, user_team())) { ?>
<li class="li-seperate" id="tickets-li">
<a id="tickets" href="<?= base_url('/ticketList?return_type=web') ?>" class="waves-effect img-inactive">
<img src="<?= base_url() . "public"; ?>/assets/images/ticket.png" alt="Logo" height="20">
<span>Tickets</span>
</a>
</li>
<?php } ?>
<!-- Ad --> <!-- Ad -->
<?php if (in_array(get_role_id(), [1, 2, 3, 5])) { ?> <?php if (in_array(get_role_id(), [1, 2, 3, 5])) { ?>
<li class="li-seperate" id="app-content-mng-li"> <li class="li-seperate" id="app-content-mng-li">

View File

@ -32,6 +32,10 @@
width: 100%; /* default: allow full width */ width: 100%; /* default: allow full width */
} }
p{
margin:0 !important;
}
/* On screens smaller than 600px → force 100% */ /* On screens smaller than 600px → force 100% */
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.mail-template-footer { .mail-template-footer {
@ -53,9 +57,16 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mail-template-header"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mail-template-header">
<tr style="height:90px; background-color: #ffffff !important;"> <tr style="height:90px; background-color: #ffffff !important;">
<td align="left" valign="middle" style="padding:20px;" width="50%"> <td align="left" valign="middle" style="padding:20px;" width="50%">
<img src="<?= $client_logo?>" <div style="
alt="Client Logo" width:160px;
style="max-height:80px; max-width: 160px;"> height:80px;
background-image:url('<?= $client_logo ?>');
background-size:contain;
background-repeat:no-repeat;
background-position:center;
">
</div>
</td> </td>
<td align="right" valign="middle" style="padding:20px;" width="50%"> <td align="right" valign="middle" style="padding:20px;" width="50%">
<img src="<?= base_url('/public/assets/images/Nhance-Logo-Final.png'); ?>" <img src="<?= base_url('/public/assets/images/Nhance-Logo-Final.png'); ?>"

View File

@ -287,23 +287,36 @@ $(document).ready(function() {
data = data.replace(/&nbsp;/g, '').replace(/\s+/g, ' ').trim(); data = data.replace(/&nbsp;/g, '').replace(/\s+/g, ' ').trim();
// If it's the first column (index 0), remove link and special chars // If it's the first, 20th, 10th, or 11th column, clean the data
if (column === 0 || column === 20 || column === 11 ) { if (column === 0 || column === 20 || column === 10 || column === 11) {
// Remove all <a> tags and their contents // Remove all <a> tags and their contents first
data = data.replace(/<a[^>]*>(.*?)<\/a>/gi, ''); data = data.replace(/<a[^>]*>.*?<\/a>/gi, '');
// Also remove other HTML tags and &nbsp;
data = $('<div>').html(data).text().replace(/\u00a0/g, ' ').trim(); // Convert any HTML entities / remaining tags to plain text
// (jQuery used only for HTML decoding; you can replace with DOMParser if you prefer)
data = $('<div>').html(data).text();
// Normalize NBSP to space
data = data.replace(/\u00A0/g, ' ');
// Remove BOM, zero-width, and control characters
data = data.replace(/[\u0000-\u001F\u007F-\u009F\u200B-\u200F\uFEFF]/g, '').trim();
} }
// Force K and L columns to string // Do NOT prepend \u200C. Return raw cleaned value.
// If you need to force Excel as string, use the formula trick or prepend a single apostrophe.
if (column === 10 || column === 11) { if (column === 10 || column === 11) {
// Option 1: prepend single quote // Option A: return as Excel formula to preserve formatting
return '\u200C' + data;
// Option 2: use Excel formula trick
// return '="' + data + '"'; // return '="' + data + '"';
// Option B: prepend apostrophe (visible in Excel formula bar, not in cell)
// return "'" + data;
return data;
} }
return data; return data;
} }
} }
}, },