From b60f560653cf31c1e295fdf672a51d0778a4f80d Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 18 Mar 2024 16:52:54 +0530 Subject: [PATCH] Employee & User - Raised Issues fixes : ps --- .../modules/Employee/views/add_emp.php | 764 ++++++++------- .../modules/Employee/views/edit_emp.php | 910 +++++++++--------- application/modules/User/views/add_user.php | 193 ++-- application/modules/User/views/edit_user.php | 116 +-- application/modules/User/views/user_list.php | 263 +++-- 5 files changed, 1102 insertions(+), 1144 deletions(-) diff --git a/application/modules/Employee/views/add_emp.php b/application/modules/Employee/views/add_emp.php index 9b1d3fe..0158c6c 100644 --- a/application/modules/Employee/views/add_emp.php +++ b/application/modules/Employee/views/add_emp.php @@ -1,136 +1,130 @@ - - - - - - @@ -143,24 +137,20 @@
- + +
Add Employee Information
+
+
-->
-
- - + + +
Personal Information* @@ -168,23 +158,19 @@
- +
- +
- +
@@ -194,22 +180,23 @@ class="form-control" type="email"
- +
@@ -221,10 +208,9 @@ class="form-control" type="email"
- +
@@ -232,7 +218,7 @@ class="form-control" type="email"
@@ -256,28 +242,20 @@ class="form-control" type="email"
- +
- +
- +
- - + +
- +
- +
@@ -293,16 +271,16 @@ class="fa fa-fw fa-eye field-icon toggle-password">
- +
- +
@@ -311,19 +289,16 @@ class="form-control" onkeypress="validateKeyPress(event)" type="text">
- +
- +
@@ -339,15 +314,16 @@ class="form-control" type="text">
- +
- +
@@ -357,24 +333,27 @@ class="form-control" type="text">
+ value="state; + } ?>" class="form-control ">
--> -
- -
- - -
-
- - -
- +
+ +
+ +
-
+ + +
+ +
+
@@ -387,15 +366,16 @@ class="form-control" type="text">
- +
- +
@@ -405,9 +385,9 @@ class="form-control" type="text">
- +
@@ -423,10 +403,9 @@ class="form-control" type="text">
- +
@@ -445,18 +424,18 @@ class="form-control typeFile" onchange="validateFile(this)"
- +

- Cancel + Cancel
@@ -468,207 +447,214 @@ class="form-control typeFile" onchange="validateFile(this)"
- - - - - + $(document).ready(function() { + // $('.fa fa-chevron-up').click(); + // setTimeout(() => { $('#chevron1').click(); }, 500); + }); - - - + - if (!validateEmail(emailValue)) { - new PNotify({ - text: 'Enter a valid email address.', - type: 'error', - styling: 'bootstrap3' + + $('#password').keyup(function() { + if ($('#confirm_password').val() == "") { + $('#errMessage').html('Please Enter confirm password'); + } else { + $('#errMessage').html(''); + } + }); + + $('#confirm_password').keyup(function() { + if ($('#confirm_password').val() == "") { + $('#errMessage').html('Please Enter confirm password'); + } else { + $('#errMessage').html(''); + } + }); + + + + + \ No newline at end of file diff --git a/application/modules/Employee/views/edit_emp.php b/application/modules/Employee/views/edit_emp.php index c03ba0c..4ee1769 100644 --- a/application/modules/Employee/views/edit_emp.php +++ b/application/modules/Employee/views/edit_emp.php @@ -2,160 +2,141 @@ - - - -
-

Edit Employee

- -
-
- -
- - - +
+
+ @@ -165,23 +146,19 @@

- +
- +
- +
@@ -191,23 +168,25 @@ class="form-control" type="email"
- +
- > + 0) { ?> + + $value) { + $selected = (isset($editData->department) && $editData->department === $value->name) ? "selected" : ""; ?> + +
@@ -218,31 +197,41 @@ class="form-control" type="email"
- +
@@ -252,360 +241,341 @@ class="form-control" type="email"
- > + + marital_status) && $editData->marital_status === $value) ? "selected" : ""; ?> + +
-
- -
-
-
Emergency Contact
-
-

-
- - -
- -
- - -
- -
-
+ +
+
+
Emergency Contact
+
+

+
-
- - -
- -
- - -
- -
- -
-
- -
-
-
Address Detail
-
-

-
- - -
- -
- - -
- -
- -
- -
- - -
- -
- - -
- -
- -
-
- -
-
-
Additional Information
-
-

-
- - -
- -
- - -
- -
-
- -
- - -
- -
- - -
- gender == 'male') - { - echo 'Male'; - echo '  '; - echo 'Female'; - } - else - { - echo 'Male'; - echo '  '; - echo 'Female'; - } ?> + +
+
-
+ +
+ +
-
- - -
- - Avatar
+
+ + +
+ +
+ + +
+ +
+ +
-
- -
-
-
Permissions
-
-

-
+ +
+
+
Address Detail
+
+

+
- -
- +
- City +
+ +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+ +
+
+
Additional Information
+
+

+
+ + +
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+ + +
+ /> Male + /> Female +
+ +
+ +
+ + +
+ + Avatar +
+ +
+
+ +
+
+
Permissions
+
+

+
+ + +
+ + + +
-
-
- - - -

-
-
- Cancel - + +

+
+
+ Cancel + +
-
+
- -
- - - - -
-
- - - - - - - - - + + + + + + \ No newline at end of file diff --git a/application/modules/User/views/add_user.php b/application/modules/User/views/add_user.php index 58d95c7..796e15c 100644 --- a/application/modules/User/views/add_user.php +++ b/application/modules/User/views/add_user.php @@ -1,6 +1,4 @@ - -
@@ -8,7 +6,6 @@

Add User

-
@@ -25,13 +22,10 @@

-
+ - - + +
- +
- +
- +
- +
- +
- +
- +
- @@ -149,28 +145,20 @@ class="form-control">

- +
- +
- +
- - + +
- +
- +
@@ -178,7 +166,7 @@ class="fa fa-fw fa-eye field-icon toggle-password">
- +
@@ -193,26 +181,41 @@ class="fa fa-fw fa-eye field-icon toggle-password"> + \ No newline at end of file diff --git a/application/modules/User/views/edit_user.php b/application/modules/User/views/edit_user.php index 0920778..027d114 100644 --- a/application/modules/User/views/edit_user.php +++ b/application/modules/User/views/edit_user.php @@ -1,7 +1,4 @@ - - -
@@ -26,54 +23,46 @@

- + - +
- +
- +
- +
- +
- +
- +
- +
- - action_permit == "all") { - ?> - - - - + + + + @@ -83,18 +72,14 @@ class="form-control">
- +
- +
- +
- +
@@ -104,7 +89,7 @@ class="form-control ">
- +
@@ -118,26 +103,41 @@ class="form-control "> + \ No newline at end of file diff --git a/application/modules/User/views/user_list.php b/application/modules/User/views/user_list.php index 65aab3d..46013de 100644 --- a/application/modules/User/views/user_list.php +++ b/application/modules/User/views/user_list.php @@ -1,113 +1,113 @@ - - - - + + + + - + div.dataTables_wrapper div.dataTables_filter { + margin-top: -30px !important; + } +
-
-
-

User Details

- -
-
-
-
-
- - - - - - - - - - - - - - - - - $value) { ?> - - - - - - - - - - +
Name Company Email Mobile Role Permit status Action
name; ?> business ?> email; ?> mobile; ?>role; ?>action_permit; ?> +
+
+

User Details

+ +
+
+
+
+
+ + + + + + + + + + + + + + + + + $value) { ?> + + + + + + + + + + - + + - - - is_active == 0) { ?> - - -   - -   - - - - - -
Name Company Email Mobile Role Permission Status Action
name; ?> business ?> email; ?> mobile; ?>role; ?>action_permit; ?> is_active == 1) { ?> - Active - is_active == 0){ ?> - In-active + Active + is_active == 0) { ?> + In-active - - is_active == 1) { ?> - action_permit != 'view' ) { ?> - -   - - -   + + is_active == 1) { ?> + action_permit != 'view') { ?> + +   + + +   + + + + is_active == 0) { ?> + + +   + +   + +
+
+
+
-
-
-
+
@@ -117,51 +117,50 @@
- + }); + \ No newline at end of file