diff --git a/.cpanel.yml b/.cpanel.yml index 944de66e..d35aa4ec 100644 --- a/.cpanel.yml +++ b/.cpanel.yml @@ -1,5 +1,5 @@ --- deployment: tasks: - - export DEPLOYPATH=/home/example/public_html/ - - /bin/cp . $DEPLOYPATH \ No newline at end of file + - export DEPLOYPATH=home3/venbaehn/public_html/nhance/devauto/ + - /bin/cp -r home3/venbaehn/repositories/nhance_dev/* $DEPLOYPATH \ No newline at end of file diff --git a/app/Controllers/LoginController.php b/app/Controllers/LoginController.php index 4e677e88..37d78ae3 100644 --- a/app/Controllers/LoginController.php +++ b/app/Controllers/LoginController.php @@ -41,8 +41,12 @@ class LoginController extends BaseController $user = $UserModel->getUserByEmail($value->email); if($user){ if($user->is_active !== '0'){ - - $session_data = ['isLoggedIn' => True ,'userid' => $user->id, 'userData' => $user]; + $session_data = [ + 'isLoggedIn' => True , + 'userid' => $user->id, + 'userData' => $user, + 'userProfile' => $value->picture, + ]; set_session_data($session_data); log_message('error', 'Set The UserId : `'. $user->id .'` in Session'); log_message('error', 'User Login Sucessfully'); diff --git a/app/Helpers/session_helper.php b/app/Helpers/session_helper.php index 29255bcc..6e879e4b 100644 --- a/app/Helpers/session_helper.php +++ b/app/Helpers/session_helper.php @@ -28,6 +28,15 @@ if (!function_exists('get_session_userdata')) { } } +if (!function_exists('get_userProfile')) { + function get_userProfile() + { + // $ci =& get_instance(); + $session = \Config\Services::session(); + return $session->get('userProfile'); + } +} + if (!function_exists('get_session_user')) { function get_session_user() { diff --git a/app/Views/client_basic_info.php b/app/Views/client_basic_info.php index 75df3188..d2034521 100644 --- a/app/Views/client_basic_info.php +++ b/app/Views/client_basic_info.php @@ -375,6 +375,7 @@ input:checked + .slider:before { var fileExtension = file.name.split('.').pop().toLowerCase(); if (!allowedExtensions.includes(fileExtension) || file.size > 200 * 1024) { + toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); fileInput.value = ""; // Clear the file input document.getElementById("uploadPreview").src = "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"; // Remove the preview image } else { @@ -408,6 +409,7 @@ input:checked + .slider:before { if (fileSize > 200) { toastr.warning('Maximum file size allowed is 200KB.', 'File size exceeds limit.'); $("#uploadPreview").attr("src", "http://ssl.gstatic.com/accounts/ui/avatar_2x.png"); + input.value = ""; } // Check image dimensions diff --git a/app/Views/client_list.php b/app/Views/client_list.php index 771c2fda..d6c876a2 100644 --- a/app/Views/client_list.php +++ b/app/Views/client_list.php @@ -1,3 +1,14 @@ + +
diff --git a/app/Views/employee_list.php b/app/Views/employee_list.php index 5463d12c..db60f466 100644 --- a/app/Views/employee_list.php +++ b/app/Views/employee_list.php @@ -1,53 +1,62 @@ + -
-
-
-
-
- -
-
-
-
- -
-
-
-
-
- -
-
-
- - -
-
+
+
+
+
+
+ + + +
+
+
+ +
+
+
+
+ +
+
+
+
+
+
- - - -
-
- +
+ + +
@@ -56,22 +65,23 @@

Employees

- +
- +
- - - - - - - - - - - - + + + + + + + + + + + + @@ -79,11 +89,11 @@ if(isset($employees)) { foreach ($employees as $key => $employee) { ?> - + - - + + @@ -92,18 +102,26 @@ - +
SNOEmployee codeNamePolicy nameInsurar nameTPA IDUHID IDPolicy statusPremiumAction
SNOName/codePolicy nameInsurar nameTPA IDUHID IDPolicy statusPremiumAction
( )
@@ -114,98 +132,97 @@ +document.getElementById('toggleIcon').addEventListener('click', function() { + var icon = document.getElementById('icon'); + icon.classList.toggle('mdi-chevron-down'); + icon.classList.toggle('mdi-chevron-up'); +}); + \ No newline at end of file diff --git a/app/Views/import_export.php b/app/Views/import_export.php index 361c9124..de0cb419 100644 --- a/app/Views/import_export.php +++ b/app/Views/import_export.php @@ -1,4 +1,14 @@ +
diff --git a/app/Views/layout/header.php b/app/Views/layout/header.php index cb0f925f..af40c828 100644 --- a/app/Views/layout/header.php +++ b/app/Views/layout/header.php @@ -375,7 +375,7 @@
-
+
composer create-project laravel/laravel:^11.0 example-app

Carlos Crouch liked Admin 13 days ago @@ -393,7 +393,7 @@