diff --git a/application/views/addemployee.php b/application/views/addemployee.php index b6c95a3c..ed53186a 100644 --- a/application/views/addemployee.php +++ b/application/views/addemployee.php @@ -78,6 +78,509 @@ function validatePAN() { } } + +function getMobileValidation() { + var contactNumber = $('#ContactNumber').val().length; + if(contactNumber < 10) + { + alert('Please Enter valid Contact Number'); + return false; + } + else + { + return true; + } +} +function getValidEmergencyNumber() { + var contactNumber = $('#emergencycontactnumber').val().length; + if(contactNumber < 10) + { + alert('Please Enter valid Emergency Contact Number'); + return false; + } + else + { + return true; + } +} +function getValidReferNumber() { + var contactNumber = $('#referrercontno').val().length; + if(contactNumber > 0 && contactNumber < 10) + { + alert('Please Enter valid Refernce Contact Number'); + return false; + } + else + { + return true; + } +} +function validateEmail() { + var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; + + var email = $('#emailid').val(); + + if(email != '') + { + if (reg.test(email) == false) + { + alert('Please Enter Valid Email Address'); + return (false); + } + else + { + return true; + } + } + else + { + alert('Please Enter email id'); + } + +} +function getAge() { + + var dateString = $("#DateofBirth").val(); + + var today = new Date(); + var birthDate = new Date(dateString); + + var age = today.getFullYear() - birthDate.getFullYear(); + var m = today.getMonth() - birthDate.getMonth(); + if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) { + age--; + } + $("#age").val(age); + +} + +$(function() { + var d = new Date(); + + var month = d.getMonth(); + var day = d.getDate(); + var year = d.getFullYear() ; + var SIAStartYear = year - 2015; + var mindt = year-70; + var maxdt = year-15; + + $("#DateofBirth").datepicker({ + minDate : new Date(mindt,1,1), + maxDate : new Date(maxdt,1,1), + dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true, + + +}); + $("#dateofjoining").datepicker({ + minDate : new Date(year-SIAStartYear,1,1), + maxDate :'now', + dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true, + + + +}); + $("#ValidTill").datepicker({dateFormat: 'mm/dd/yy',minDate :'now',changeMonth: true, changeYear: true, +}); + +}); + +function resetphoto() +{ + + $("#photo").src(""); +} + +function ValidatePassport() +{ + var regsaid = /^[A-PR-WY][1-9]\d\s?\d{4}[1-9]$/ig; + var passport = $("#passportno").val(); + //alert(passport); + if(regsaid.test(passport) == false) + { + alert('You have entered invalid Passport.'); + return; + } + +} + +function onlyAlphabets(evt) { + var charCode; + if (window.event) + charCode = window.event.keyCode; //for IE + else + charCode = evt.which; //for firefox + if (charCode == 32) //for <space> symbol + return true; + if (charCode > 31 && charCode < 65) //for characters before 'A' in ASCII Table + return false; + if (charCode > 90 && charCode < 97) //for characters between 'Z' and 'a' in ASCII Table + return false; + if (charCode > 122) //for characters beyond 'z' in ASCII Table + return false; + return true; + } + + + +
+ +
+

+
Siddharth Industries Employee Profile
+ +

+ +
+ +
+
+ Back +
+
+
+ +
+ + +
+ + + + +
+ +
+
+ +
+ + + Personal Information + +
+
+
+ your image
+ + + +
+
+
+ +
+ * + +
+ +
* + +
+
* + +
+
* + +
+ +
+ +
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+
+
+ + + + + + Address Details + +
+
* + +
+
+
+
+ Current address same as permanent address +
+
+ +
+
* + +
+
+ + + + + + + Emergency Contact Information + +
+
* + +
+
* + +
+ +
+ + + + + Work Profile + + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ + Bank Details + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + ID Proof + + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + Additional Information + +
+
+ +
+
+ + + + + +
+
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+ load->helper('form'); + $error = $this->session->flashdata('error'); + if($error) + { + ?> +
+ + session->flashdata('error'); ?> +
+ + session->flashdata('success'); + if($success) + { + ?> +
+ + session->flashdata('success'); ?> +
+ + +
+
+ ', '
'); ?> +
+
+
+
+ + + + + + - - -
- -
-

-
Siddharth Industries Employee Profile
- -

- -
- -
-
- Back -
-
-
- -
- - -
- - - - -
- -
-
- -
- - - Personal Information - -
-
-
- your image
- - -
IsActive -
-
-
- -
- * - -
- -
* - -
-
* - -
-
* - -
- -
- -
-
- -
-
- -
- -
- -
- -
- -
- - -
- -
-
-
- - - - - - Address Details - -
-
* - -
-
-
-
- Current address same as permanent address -
-
- -
-
* - -
-
- - - - - - - Emergency Contact Information - -
-
* - -
-
* - -
- -
- - - - - Work Profile - - -
-
- - -
-
- - -
-
- -
-
- -
-
- -
-
- - -
-
- -
-
- -
-
- -
-
- - Bank Details - - -
-
- -
-
- -
-
- -
-
- -
-
- - ID Proof - - -
-
- -
-
- -
-
- -
-
- -
-
- - Additional Information - -
-
- -
-
- - - - - -
-
-
- - -
-
-
-
- -
-
- - -
-
-
- load->helper('form'); - $error = $this->session->flashdata('error'); - if($error) - { - ?> -
- - session->flashdata('error'); ?> -
- - session->flashdata('success'); - if($success) - { - ?> -
- - session->flashdata('success'); ?> -
- - -
-
- ', '
'); ?> -
-
-
-
- - - - - -