diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 3aaaaabd..ea9c7fc0 100755 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -551,6 +551,13 @@ $routes->group("employeeRest", ["filter" => "authJWT"], function ($routes) { $routes->get("claimView", "EmployeeRestController::claimView"); $routes->get("exportCashDepositData", "EmployeeRestController::exportCashDepositData"); + + //thz_master's + $routes->post("ticketSave", "ThzController::ticketSave"); + $routes->get("ticketList", "ThzController::ticketList"); + $routes->post("ticketConversationSave", "ThzController::ticketConversationSave"); + $routes->get("ticketConversationList", "ThzController::ticketConversationList"); + }); $routes->get("getEmployeeActiveOrInactivePolicy", "EmployeeRestController::getEmployeeActiveOrInactivePolicy"); $routes->get("sendPushNotification", "EmployeeRestController::sendPushNotification"); @@ -636,6 +643,7 @@ $routes->post('enrollment','VidalApiController::enrollment'); $routes->post("ticketSave", "ThzController::ticketSave"); -$routes->post("ticketList", "ThzController::ticketList"); +$routes->get("ticketList", "ThzController::ticketList"); $routes->post("ticketConversationSave", "ThzController::ticketConversationSave"); -$routes->post("ticketConversationList", "ThzController::ticketConversationList"); \ No newline at end of file +$routes->get("ticketConversationList", "ThzController::ticketConversationList"); +$routes->get('ticketAssigning',"ThzController::ticketAssigning"); \ No newline at end of file diff --git a/app/Controllers/ThzController.php b/app/Controllers/ThzController.php index be2d0f5f..fd2f424f 100644 --- a/app/Controllers/ThzController.php +++ b/app/Controllers/ThzController.php @@ -8,6 +8,7 @@ use CodeIgniter\HTTP\ResponseInterface; use App\Models\ThzMasterModel; use App\Models\ThzMasterNotesModel; use App\ControllerCleaners\ThzControllerCleaner; +use App\Models\UserModel; class ThzController extends BaseController { @@ -17,11 +18,14 @@ class ThzController extends BaseController protected $thzControllerCleaner; + protected $userModel; + public function __construct() { $this->thzMasterModel = new ThzMasterModel(); $this->thzMasterNotesModel = new ThzMasterNotesModel(); $this->thzControllerCleaner = new ThzControllerCleaner(); + $this->userModel = new UserModel(); } public function index() @@ -31,136 +35,203 @@ class ThzController extends BaseController public function ticketSave(){ - $data = $this->request->getJSON(true); - - if (!empty($data['thz_id'])) { - $data['updated_by'] = get_session_userid(); - $ticket_id = $data['thz_id']; - $text = "update"; - - $result = $this->thzMasterModel->where('thz_id', $ticket_id)->set($data)->update(); - } else { - $data['created_by'] = get_session_userid(); - $text = "create"; - - $result = $this->thzMasterModel->insert($data); - } - - return $this->response->setJSON(([ 'status' => $result ? 'success' : 'error' , - 'message' => $result ? "Ticket {$text}d successfully" : "Unable to {$text} ticket. Please try again." ])); - - - + $data = $this->request->getPost(); + // $data = $this->request->getJSON(true); + // $return_type = isset($data['return_type']) ? $data['return_type'] : 'api'; + if (!empty($data['thz_id'])) { + $text = "update"; + $result = $this->updateTicket($data); + } else { + $text = "create"; + $result = $this->insertTicket($data); + } + return $this->response->setJSON([ + 'status' => $result ? 'success' : 'error', + 'message' => $result ? "Ticket {$text}d successfully" : "Unable to {$text} ticket. Please try again." + ])->setStatusCode($result ? 200 : 400); } - public function ticketList() { $returnType = strtolower($this->request->getGet('return_type') ?? 'api'); - $data = $this->request->getJSON(true); + $data = $this->request->getGet(); $tickets = $this->fetchTicketsBasedOnrole($data); - - if ($returnType === 'api') { if (empty($tickets)) { - return $this->response->setJSON([ 'status' => 'error','message' => 'No tickets found',])->setStatusCode(404); + return $this->response->setJSON([ 'status' => 'error','message' => 'No tickets found'])->setStatusCode(404); } }else{ $data['page_name'] = "Ticket List"; $data['ticket_data'] = $tickets; - $data['assigner'] = $this->userModel->where('is_active', 1)->findAll(); - return $this->loadLayout('ticket_list_web', $data); - } - - + $data['assignee'] = $this->userModel->where('is_active', 1)->whereIn('role', ['1', '5'])->findAll(); // enga 5-"head" and 1-"admin" role person thaan assignee.. + return $this->loadLayout('thz_list', $data); + } return $this->response->setJSON([ 'status' => 'success', 'data' => $tickets, - ]); + ])->setStatusCode(200); } - public function ticketConversationSave(){ $data = $this->request->getJSON(true); $result = $this->thzMasterNotesModel->insert($data); - if(empty($result)){ - return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found'])); - } - - return $this->response->setJSON((['status' => 'success', 'data' => $result])); + if(empty($result)){ + return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(404); + } + + return $this->response->setJSON([ + 'status' => $result ? 'success' : 'error', + 'message' => $result ? "Ticket Notes created successfully" : "Unable to create ticket notes. Please try again." + ])->setStatusCode($result ? 200 : 400); } public function ticketConversationList(){ - $data = $this->request->getJSON(true); + $data = $this->request->getGet(); $thz_id = $data['thz_id'] ?? null; - $result = $this->thzMasterNotesModel->ticketConversationList($thz_id); + if($thz_id){ + $result['master'] = $this->thzMasterModel + ->select('thz_master.*, CONCAT(user_profiles.first_name, " ", user_profiles.last_name) as assignee_name') + ->join('user_profiles', 'user_profiles.id = thz_master.assign_to', 'left') + ->where('thz_master.thz_id', $thz_id) + ->findAll(); - if(empty($result)){ - return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found'])); - } - - return $this->response->setJSON((['status' => 'success', 'data' => $result])); + $notes = $this->thzMasterNotesModel->ticketConversationList($thz_id); + $result['notes'] = !empty($notes) ? $notes : []; + + }else{ + return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(404); + } + + return $this->response->setJSON((['status' => 'success', 'data' => $result]))->setStatusCode(400); } + public function ticketSaveNotification($data){ + + } + public function ticketConversationSaveNotification($data){ + + } + + public function ticketAssigning(){ + + $returnType = strtolower($this->request->getGet('return_type') ?? 'api'); + + $data = $this->request->getVar(); + + $assignee_id = $data['assignee_id']; + + $thz_id = $data['thz_id']; + + $result = $this->thzMasterModel->set('assign_to',$assignee_id)->where('thz_id',$thz_id)->update(); + + if($returnType === 'api'){ + + if(empty($result)){ + return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found'])); + } + + return $this->response->setJSON((['status' => 'success', 'data' => $result])); + + }else{ + + + + } + + + + + + } /************************************************** PRIVATE FUNCTIONS ********************************************************/ - private function checkGeneralUserOrEmployee($data){ - - if($data['empcode']){ - return $data['empcode']; - } elseif ($data['mobile']) { - return $data['mobile']; - } elseif ($data['email']) { - return $data['email']; - } else { - return null; - } - - } - private function fetchTicketsBasedOnrole(array $data): array { - $id = $data['thz_id'] ?? null; + // $id = $data['thz_id'] ?? null; $assign_to = $data['assign_to'] ?? null; $mobile = $data['mobile'] ?? null; if (!empty($assign_to)) { // Tickets assigned to a staff return $this->thzMasterModel - ->where('assign_to', $assign_to) + ->select('thz_master.*, CONCAT(user_profiles.first_name, " ", user_profiles.last_name) as assignee_name') + ->join('user_profiles', 'user_profiles.id = thz_master.assign_to', 'left') + ->where('thz_master.assign_to', $assign_to) ->findAll(); } - if (!empty($id) && !empty($mobile)) { + // if (!empty($id) && !empty($mobile)) { + if (!empty($mobile)) { // Specific ticket by ID and mobile return $this->thzMasterModel - ->where('thz_id', $id) - ->where('mobile', $mobile) + ->select('thz_master.*, CONCAT(user_profiles.first_name, " ", user_profiles.last_name) as assignee_name') + ->join('user_profiles', 'user_profiles.id = thz_master.assign_to', 'left') + // ->where('thz_id', $id) + ->where('thz_master.mobile', $mobile) ->findAll(); } // All tickets (e.g., for managers) - return $this->thzMasterModel->findAll(); + return $this->thzMasterModel + ->select('thz_master.*, CONCAT(user_profiles.first_name, " ", user_profiles.last_name) as assignee_name') + ->join('user_profiles', 'user_profiles.id = thz_master.assign_to', 'left') + ->findAll(); + } + + private function notificationBasedOnRole($data){ + + $id = $data['thz_id'] ?? null; + $assign_to = $data['assign_to'] ?? null; + $mobile = $data['mobile'] ?? null; + + if (!empty($assign_to)) { + + } + + if (!empty($id) && !empty($mobile)) { + + } + + + } + + private function updateTicket($data){ + + $data['updated_by'] = get_session_userid(); + $ticket_id = $data['thz_id']; + $result = $this->thzMasterModel->where('thz_id', $ticket_id)->set($data)->update(); + + return $result; + + } + + private function insertTicket($data){ + + $data['created_by'] = get_session_userid(); + $result = $this->thzMasterModel->insert($data); + + return $result; + } diff --git a/app/Models/ThzMasterModel.php b/app/Models/ThzMasterModel.php index 410a84ba..580c6181 100644 --- a/app/Models/ThzMasterModel.php +++ b/app/Models/ThzMasterModel.php @@ -12,7 +12,7 @@ class ThzMasterModel extends Model protected $returnType = 'array'; protected $useSoftDeletes = false; protected $protectFields = true; - protected $allowedFields = ['name','mobile','email','empcode','policy_no','ticket_type','subject','message','status','assign_to','created_at','updated_at']; + protected $allowedFields = ['name','mobile','email','empcode','policy_no','ticket_type','subject','message','status','assign_to','created_at','updated_at','created_by','updated_by' ,'client_id' ,'policy_id' ,'branch_id']; protected bool $allowEmptyInserts = false; diff --git a/app/Models/ThzMasterNotesModel.php b/app/Models/ThzMasterNotesModel.php index 769b505d..6b738219 100644 --- a/app/Models/ThzMasterNotesModel.php +++ b/app/Models/ThzMasterNotesModel.php @@ -40,7 +40,7 @@ class ThzMasterNotesModel extends Model protected $beforeDelete = []; protected $afterDelete = []; - public function ticketConversationList($thz_id){ + public function ticketConversationLists($thz_id){ if(empty($thz_id)){ @@ -76,5 +76,33 @@ class ThzMasterNotesModel extends Model } + public function ticketConversationList($thz_id) + { + + $notes_sql = "SELECT + thz_master_notes.*, + CASE + WHEN LOWER(thz_master_notes.notes_by) = 'staff' + THEN CONCAT(user_profiles.first_name, ' ', user_profiles.last_name) + WHEN LOWER(thz_master_notes.notes_by) = 'user' + THEN thz_master.name + ELSE thz_master_notes.notes_by + END AS name + FROM thz_master_notes + LEFT JOIN user_profiles + ON user_profiles.id = thz_master_notes.created_by + AND LOWER(thz_master_notes.notes_by) = 'staff' + LEFT JOIN thz_master + ON thz_master.thz_id = thz_master_notes.thz_id + AND LOWER(thz_master_notes.notes_by) = 'user' + WHERE thz_master_notes.thz_id = " . (int)$thz_id . " + ORDER BY thz_master_notes.created_at ASC"; + + $result = $this->db->query($notes_sql)->getResultArray(); + + return $result; + } + + } diff --git a/app/Views/DashBoard.php b/app/Views/DashBoard.php index b0cefc4e..b9e1294c 100755 --- a/app/Views/DashBoard.php +++ b/app/Views/DashBoard.php @@ -193,6 +193,10 @@ min-height: 70vh !important; } + .active{ + color : white !important ; + } + @@ -212,12 +216,12 @@      @@ -226,12 +230,12 @@      @@ -242,12 +246,12 @@ $isActive = get_role_id() == STAFF_ROLE_ID && in_array(CLAIMS_TEAM_ID,user_team()) ? 'active show' : ''; ?>      @@ -256,13 +260,13 @@ -      @@ -375,3 +379,20 @@ $(document).ready(function(){ }); + + diff --git a/app/Views/UserList.php b/app/Views/UserList.php index b7de1d73..5f8d59f2 100755 --- a/app/Views/UserList.php +++ b/app/Views/UserList.php @@ -223,6 +223,20 @@ table.dataTable tbody td { .text-danger { color: #dc3545; } + + .btn-color{ + background-color: rgba(52, 174, 178, 1); + color: white; + border:1px solid rgba(52, 174, 178, 1); + } + + .btn-color:hover{ + background-color: rgba(41, 139, 142, 1); + color: white; + border:1px solid rgba(41, 139, 142, 1); + } + + @@ -234,9 +248,6 @@ table.dataTable tbody td {

User List

-
- -
@@ -372,7 +383,7 @@ table.dataTable tbody td {
-
+
@@ -464,7 +475,7 @@ table.dataTable tbody td {
-
Team
+
@@ -520,7 +531,17 @@ table.dataTable tbody td { exportOptions: { columns: ':not(:last-child)' } + }, + { + text: 'ADD', + className: 'btn-color', + attr: { + id: 'btnAdd', + title: 'Add' + } } + + ], @@ -541,14 +562,6 @@ table.dataTable tbody td { }); - $('#btnAdd').click(function(){ - $('#first_name').val(''); - $('#last_name').val(''); - $('#email').val(''); - $('#mobile').val(''); - $('#emp_code').val(''); - $('#UserForm').attr('action', ''); - }) $('.close').click(function(){ @@ -815,3 +828,17 @@ table.dataTable tbody td { } + \ No newline at end of file diff --git a/app/Views/bds_dash.php b/app/Views/bds_dash.php index 24a5effa..52996c3f 100644 --- a/app/Views/bds_dash.php +++ b/app/Views/bds_dash.php @@ -158,14 +158,19 @@
-
-
Team
@@ -182,6 +192,13 @@ document.addEventListener("DOMContentLoaded", function () { exportOptions: { columns: ':not(:last-child)' } + }, + { + text: 'ADD', + className: 'btn btn-color', + action: function () { + window.location.href = ""; + } } ], diff --git a/app/Views/insurer_onboarding.php b/app/Views/insurer_onboarding.php index bdc3fd71..68c10e80 100755 --- a/app/Views/insurer_onboarding.php +++ b/app/Views/insurer_onboarding.php @@ -8,7 +8,7 @@
" > - +
diff --git a/app/Views/irba_report.php b/app/Views/irba_report.php index d86d4452..bb4d0427 100644 --- a/app/Views/irba_report.php +++ b/app/Views/irba_report.php @@ -15,8 +15,8 @@
-   - +   +
> > diff --git a/app/Views/kyc_list.php b/app/Views/kyc_list.php index c1a72d31..8e8eefd6 100755 --- a/app/Views/kyc_list.php +++ b/app/Views/kyc_list.php @@ -26,6 +26,19 @@ color: #16181b !important; cursor: pointer !important; } + +.btn-color{ + background-color: rgba(52, 174, 178, 1); + color: white; + border:1px solid rgba(52, 174, 178, 1); +} + +.btn-color:hover{ + background-color: rgba(41, 139, 142, 1); + color: white; + border:1px solid rgba(41, 139, 142, 1); +} +
@@ -176,6 +186,13 @@ exportOptions: { columns: ':not(:last-child)' } + }, + { + text: 'ADD', + className: 'btn btn-color', + action: function () { + window.location.href = ""; + } } ], diff --git a/app/Views/kyc_onboarding.php b/app/Views/kyc_onboarding.php index 412331ba..7ddeefb4 100755 --- a/app/Views/kyc_onboarding.php +++ b/app/Views/kyc_onboarding.php @@ -39,7 +39,7 @@ body {

KYC Entity Type

- " > + " >
diff --git a/app/Views/leads_dash.php b/app/Views/leads_dash.php index b6b24fc4..e6874de1 100644 --- a/app/Views/leads_dash.php +++ b/app/Views/leads_dash.php @@ -187,14 +187,20 @@ $isActive = get_role_id() == STAFF_ROLE_ID && in_array(ENROLLMENT_TEAM_ID, user_ -
-
- Back to Overview + + + + +
+
+
- +
+
Statement Month
-   - +   +
diff --git a/app/Views/policy_gmc_terms.php b/app/Views/policy_gmc_terms.php index 6408f18f..596f7a21 100755 --- a/app/Views/policy_gmc_terms.php +++ b/app/Views/policy_gmc_terms.php @@ -138,8 +138,16 @@
- Yes - No + +    + + +
+ + + + +
@@ -150,25 +158,25 @@
- - + @@ -183,25 +191,25 @@ - + @@ -226,21 +234,21 @@ @@ -261,7 +269,7 @@
- Select Other Members: + Select Other Members:
+ + + + + + + $row){ ?> + + + + + + + + + + + + + + + + + + + + +
Self:Self: -
Min Age:Min Age:
-
Max Age:Max Age:
Spouse:Spouse: -
Min Age:Min Age:
-
Max Age:Max Age:
-
Min Age:Min Age:
-
Max Age:Max Age:
-
Elders +
Elders Count:
Min Age:Min Age:
Max Age:Max Age:
ACTION
+ + +
+ +
+
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/Views/thz_notes.php b/app/Views/thz_notes.php new file mode 100644 index 00000000..21a1d8d2 --- /dev/null +++ b/app/Views/thz_notes.php @@ -0,0 +1,436 @@ + +
+
+
+
+ +
+
+

Ticket

+
+
+ + + +
+
+ + + + + +
+
+
+
+
+
+
+ +
Ticket Master Details
+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+ +

+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+
+
+
+ + + +
+ +
+ + + + + \ No newline at end of file diff --git a/app/Views/ticket_conversation.php b/app/Views/ticket_conversation.php index d2fa00c3..13707a84 100644 --- a/app/Views/ticket_conversation.php +++ b/app/Views/ticket_conversation.php @@ -23,7 +23,7 @@
-
format('j F Y h:i a');?>
+
format('j F Y h:i a');?>

@@ -58,7 +58,7 @@
-
format('j F Y h:i a');?>
+
format('j F Y h:i a');?>

diff --git a/app/Views/ticket_edit_onbording.php b/app/Views/ticket_edit_onbording.php index c84a7206..5a6812ac 100644 --- a/app/Views/ticket_edit_onbording.php +++ b/app/Views/ticket_edit_onbording.php @@ -14,7 +14,7 @@
diff --git a/app/Views/ticket_form_gmc.php b/app/Views/ticket_form_gmc.php index 56e299aa..2d8c2aa2 100644 --- a/app/Views/ticket_form_gmc.php +++ b/app/Views/ticket_form_gmc.php @@ -36,7 +36,7 @@
- +
@@ -58,7 +58,7 @@
-
@@ -51,7 +51,7 @@
-
@@ -279,6 +287,9 @@ toolbarAdaptive: false, saveHeightInStorage: true, minHeight: 400, + defaultStyle: { + color: '#000000' // 👈 force black text + }, extraButtons: [{ name: 'info', iconURL: '/assets/images/image-solid.svg', // Replace with the actual icon URL diff --git a/app/Views/ticket_reports.php b/app/Views/ticket_reports.php index 4fe9732d..57c73a2e 100644 --- a/app/Views/ticket_reports.php +++ b/app/Views/ticket_reports.php @@ -15,8 +15,8 @@
-   - +   +
> > diff --git a/app/Views/tpa_list.php b/app/Views/tpa_list.php index d6d44e58..a2a1b5eb 100755 --- a/app/Views/tpa_list.php +++ b/app/Views/tpa_list.php @@ -25,7 +25,21 @@ background-color: #f8f9fa !important; color: #16181b !important; cursor: pointer !important; -} +} + +.btn-color{ + background-color: rgba(52, 174, 178, 1); + color: white; + border:1px solid rgba(52, 174, 178, 1); +} + +.btn-color:hover{ + background-color: rgba(41, 139, 142, 1); + color: white; + border:1px solid rgba(41, 139, 142, 1); +} + +
@@ -176,7 +187,15 @@ document.addEventListener("DOMContentLoaded", function () { exportOptions: { columns: ':not(:last-child)' } + }, + { + text: 'ADD', + className: 'btn btn-color', + action: function () { + window.location.href = ""; + } } + ], diff --git a/app/Views/tpa_onboarding.php b/app/Views/tpa_onboarding.php index 2d6196aa..107d61f9 100755 --- a/app/Views/tpa_onboarding.php +++ b/app/Views/tpa_onboarding.php @@ -39,7 +39,7 @@ body {

TPA

- "> + ">
@@ -461,7 +469,8 @@ $(document).ready(function() { dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" + "<'row'<'col-sm-12'tr>>" + "<'row'<'col-sm-5'i><'col-sm-7'p>>", - buttons: [{ + buttons: [ + { extend: 'csv', text: 'CSV', title: 'Vehicle-Master-List', @@ -469,7 +478,19 @@ $(document).ready(function() { exportOptions: { columns: ':not(:last-child)' }, - }], + }, + { + text: 'ADD', + className: 'btn-color', + attr: { + id: 'btnAdd', + title: 'Add' + }, + action: function () { + showModal('add') + } + } + ], language: { search: "_INPUT_", searchPlaceholder: "Search..." diff --git a/app/Views/view_deposit.php b/app/Views/view_deposit.php index 30ee261a..3f18ce81 100755 --- a/app/Views/view_deposit.php +++ b/app/Views/view_deposit.php @@ -86,7 +86,7 @@ diff --git a/app/Views/view_rfq.php b/app/Views/view_rfq.php index 9e906235..87085a6d 100644 --- a/app/Views/view_rfq.php +++ b/app/Views/view_rfq.php @@ -567,7 +567,7 @@
- > + >
@@ -591,7 +591,7 @@
- > + >
diff --git a/app/Views/view_rfq_non_eb.php b/app/Views/view_rfq_non_eb.php index 8e75cf94..89cf7748 100644 --- a/app/Views/view_rfq_non_eb.php +++ b/app/Views/view_rfq_non_eb.php @@ -461,7 +461,7 @@
- > + >
@@ -485,7 +485,7 @@
- > + >
diff --git a/public/assets/js/pages/treeview.init.js b/public/assets/js/pages/treeview.init.js index 400c7029..33a26040 100755 --- a/public/assets/js/pages/treeview.init.js +++ b/public/assets/js/pages/treeview.init.js @@ -1 +1 @@ -$(document).ready(function(){$("#basicTree").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"mdi mdi-folder-star text-warning"},file:{icon:"mdi mdi-file text-primary"}},plugins:["types"]}),$("#checkTree").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"fa fa-folder text-warning"},file:{icon:"fa fa-file text-primary"}},plugins:["types","checkbox"]}),$("#dragTree").jstree({core:{check_callback:!0,themes:{responsive:!1}},types:{default:{icon:"fa fa-folder text-warning"},file:{icon:"fa fa-file text-primary"}},plugins:["types","dnd"]}),$("#ajaxTree").jstree({core:{check_callback:!0,themes:{responsive:!1},data:{url:function(e){return"#"===e.id?"../assets/data/ajax_roots.json":"../assets/data/ajax_children.json"},data:function(e){return{id:e.id}}}},types:{default:{icon:"fa fa-folder text-warning"},file:{icon:"fa fa-file text-primary"}},plugins:["contextmenu","dnd","search","state","types","wholerow"]})}); \ No newline at end of file +$(document).ready(function(){$("#basicTree").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"mdi mdi-folder-star text-warning"},file:{icon:"mdi mdi-file text-primary"}},plugins:["types"]}),$("#checkTree").jstree({core:{themes:{responsive:!1}},types:{default:{icon:"fa fa-folder text-warning"},file:{icon:"mdi mdi-file text-primary"}},plugins:["types","checkbox"]}),$("#dragTree").jstree({core:{check_callback:!0,themes:{responsive:!1}},types:{default:{icon:"fa fa-folder text-warning"},file:{icon:"mdi mdi-file text-primary"}},plugins:["types","dnd"]}),$("#ajaxTree").jstree({core:{check_callback:!0,themes:{responsive:!1},data:{url:function(e){return"#"===e.id?"../assets/data/ajax_roots.json":"../assets/data/ajax_children.json"},data:function(e){return{id:e.id}}}},types:{default:{icon:"fa fa-folder text-warning"},file:{icon:"mdi mdi-file text-primary"}},plugins:["contextmenu","dnd","search","state","types","wholerow"]})}); \ No newline at end of file diff --git a/public/assets/libs/bootstrap-daterangepicker/index.html b/public/assets/libs/bootstrap-daterangepicker/index.html index 4621257c..459d6138 100755 --- a/public/assets/libs/bootstrap-daterangepicker/index.html +++ b/public/assets/libs/bootstrap-daterangepicker/index.html @@ -31,7 +31,7 @@