diff --git a/application/views/AddEmp.php b/application/views/AddEmp.php index ce36592..95116bf 100644 --- a/application/views/AddEmp.php +++ b/application/views/AddEmp.php @@ -26,28 +26,30 @@ oFReader.onload = function (oFREvent) { document.getElementById("uploadPreview").src = oFREvent.target.result; }; - }; -function checkno_if_exists() { - - var mobile_no = $("#mno").val(); - $('#mobErr').hide(); + }; +//do not delete this part -$.ajax({ - type:"post", - url: "EmployeeController/mno_validation", - data:{ mobile_no:mobile_no}, - success:function(response) - { +// function checkno_if_exists() { + +// var mobile_no = $("#mno").val(); +// $('#mobErr').hide(); + +// $.ajax({ +// type:"post", +// url: "EmployeeController/mno_validation", +// data:{ mobile_no:mobile_no}, +// success:function(response) +// { - if (response == true) - { - $('#mobErr').show(); - $('#mobErr').html("This mobile number already exists"); - $("#mno").val(''); - } - } - }); -} +// if (response == true) +// { +// $('#mobErr').show(); +// $('#mobErr').html("This mobile number already exists"); +// $("#mno").val(''); +// } +// } +// }); +// } @@ -209,6 +211,27 @@ if (companyName == '') { } +function validateKeyPress(event) { + var key = event.key; + var allowedCharacters = /^[A-Za-z._/-]$/; + + if (!allowedCharacters.test(key)) { + event.preventDefault(); + } +} + +function validateName(event) { + const charCode = event.which || event.keyCode; + const char = String.fromCharCode(charCode); + + // Regular expression to match alphanumeric characters + const regex = /^[a-zA-Z0-9_-]*$/; + + if (!regex.test(char)) { + event.preventDefault(); + return false; + } +} @@ -254,27 +277,27 @@ if (companyName == '') {
- +
- +
- +
- - + + +
- +
@@ -293,7 +316,8 @@ if (companyName == '') {
- + + + + + + + + @@ -89,20 +116,20 @@
- +
- +
- +
- + + title="Phone number with 6-9 and remaing 9 digit with 0-9" name="emp_mobile" value="emp_mobile; ?>"/>
@@ -199,39 +226,6 @@ function comp_branch(){ }); -// $(document).ready(function() { -// $('.ct').change(function() { -// var comp_id = $(this).val(); -// if (comp_id != '') { -// $.ajax({ -// url: '', -// type: 'post', -// data: {comp_id: comp_id}, -// dataType: 'json', -// success: function(response) { - -// console.log(response) - -// var len = response.length; -// // $('.st').empty(); -// var arr = []; -// for (var i = 0; i < len; i++) { -// var branch_name = response[i]['branch_name']; -// var branch_id = response[i]['branch_id']; -// data = ""; -// arr.push(data); -// } -// $('.st').html(arr); -// // $('.st').html('arr'); -// } -// }); -// } else { -// $('.ct').empty(); -// $('.ct').append(""); -// }"" -// }); -// }); - // age & mobile number (only number) function matchnum(event) { diff --git a/application/views/EmpIDCard.php b/application/views/EmpIDCard.php index f2fefd3..1636192 100644 --- a/application/views/EmpIDCard.php +++ b/application/views/EmpIDCard.php @@ -6,7 +6,9 @@ - + + +
@@ -29,14 +31,16 @@ comp_name; ?>
-
+ emp_mobile != "") { ?> + +
@@ -61,17 +65,29 @@ branch_address; ?>
-
-
- Save -
+ emp_mobile == "") { ?> +
+
- -
+
+ + +
+
+ Save +
+ +
+ + + +
+
+
@@ -132,6 +148,19 @@ function siteURL() { alert("Browser doesn't support this API !"); } }) - + + + + + diff --git a/application/views/EmpPreview.php b/application/views/EmpPreview.php index 2595962..e939792 100644 --- a/application/views/EmpPreview.php +++ b/application/views/EmpPreview.php @@ -48,6 +48,7 @@ comp_name; ?>
+ emp_mobile != "") { ?>
@@ -56,6 +57,7 @@ WhatsApp me
+
diff --git a/uploads/1688366103.jpg b/uploads/1688366103.jpg new file mode 100644 index 0000000..91359f3 Binary files /dev/null and b/uploads/1688366103.jpg differ diff --git a/uploads/16883661031.jpg b/uploads/16883661031.jpg new file mode 100644 index 0000000..91359f3 Binary files /dev/null and b/uploads/16883661031.jpg differ diff --git a/uploads/1688373610.png b/uploads/1688373610.png new file mode 100644 index 0000000..e45ca8d Binary files /dev/null and b/uploads/1688373610.png differ diff --git a/uploads/16883736101.png b/uploads/16883736101.png new file mode 100644 index 0000000..e45ca8d Binary files /dev/null and b/uploads/16883736101.png differ diff --git a/uploads/1688373792.jpg b/uploads/1688373792.jpg new file mode 100644 index 0000000..b7da789 Binary files /dev/null and b/uploads/1688373792.jpg differ diff --git a/uploads/16883737921.jpg b/uploads/16883737921.jpg new file mode 100644 index 0000000..b7da789 Binary files /dev/null and b/uploads/16883737921.jpg differ diff --git a/uploads/1688374144.jpg b/uploads/1688374144.jpg new file mode 100644 index 0000000..b7da789 Binary files /dev/null and b/uploads/1688374144.jpg differ diff --git a/uploads/16883741441.jpg b/uploads/16883741441.jpg new file mode 100644 index 0000000..b7da789 Binary files /dev/null and b/uploads/16883741441.jpg differ