|
|
@ -205,7 +205,7 @@ |
|
|
<!-- Register Card --> |
|
|
<!-- Register Card --> |
|
|
<div class="card register-card mx-auto mt-5" style="max-width: 400px; background-color: rgba(44, 84, 103, 0.1); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid #ffffff40; display:none;"> |
|
|
<div class="card register-card mx-auto mt-5" style="max-width: 400px; background-color: rgba(44, 84, 103, 0.1); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid #ffffff40; display:none;"> |
|
|
<div class="card-body "> |
|
|
<div class="card-body "> |
|
|
<h4 class="text-center mb-4" style="color: #004865;"><strong>Birth And Death Registration</strong></h4> |
|
|
|
|
|
|
|
|
<h4 class="text-center mb-4" style="color: #004865;"><strong>Registration of Birth and Death Certificate Download</strong></h4> |
|
|
<hr> |
|
|
<hr> |
|
|
<!-- Name --> |
|
|
<!-- Name --> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
@ -220,10 +220,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- Address --> |
|
|
<!-- Address --> |
|
|
<div class="form-group"> |
|
|
|
|
|
|
|
|
<!-- <div class="form-group"> |
|
|
<label for="address">Address</label><span class="text-danger">*</span> |
|
|
<label for="address">Address</label><span class="text-danger">*</span> |
|
|
<textarea class="form-control" id="address" rows="2" placeholder="Enter your Address"></textarea> |
|
|
<textarea class="form-control" id="address" rows="2" placeholder="Enter your Address"></textarea> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -250,7 +250,7 @@ |
|
|
|
|
|
|
|
|
<div class="card login-card mx-auto mt-5" style="max-width: 400px; background-color: rgba(44, 84, 103, 0.1); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid #ffffff40; " > |
|
|
<div class="card login-card mx-auto mt-5" style="max-width: 400px; background-color: rgba(44, 84, 103, 0.1); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid #ffffff40; " > |
|
|
<div class="card-body "> |
|
|
<div class="card-body "> |
|
|
<h4 class="text-center mb-4" style="color: #004865;"><strong>Birth And Death Login</strong></h4> |
|
|
|
|
|
|
|
|
<h4 class="text-center mb-4" style="color: #004865;"><strong>Birth And Death Certificate Download</strong></h4> |
|
|
<hr> |
|
|
<hr> |
|
|
<!-- Phone --> |
|
|
<!-- Phone --> |
|
|
<div class="form-group"> |
|
|
<div class="form-group"> |
|
|
@ -362,7 +362,7 @@ document.addEventListener("DOMContentLoaded", function () { |
|
|
function clearRegisterForm() { |
|
|
function clearRegisterForm() { |
|
|
document.getElementById("name").value = ""; |
|
|
document.getElementById("name").value = ""; |
|
|
document.getElementById("phone").value = ""; |
|
|
document.getElementById("phone").value = ""; |
|
|
document.getElementById("address").value = ""; |
|
|
|
|
|
|
|
|
//document.getElementById("address").value = ""; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function clearLoginForm() { |
|
|
function clearLoginForm() { |
|
|
@ -420,7 +420,7 @@ $(document).ready(function () { |
|
|
|
|
|
|
|
|
// phone number validation |
|
|
// phone number validation |
|
|
|
|
|
|
|
|
function validatePhoneNumber(input) { |
|
|
|
|
|
|
|
|
/* function validatePhoneNumber(input) { |
|
|
// Remove any non-numeric characters using regex |
|
|
// Remove any non-numeric characters using regex |
|
|
input.value = input.value.replace(/[^0-9]/g, ''); |
|
|
input.value = input.value.replace(/[^0-9]/g, ''); |
|
|
|
|
|
|
|
|
@ -428,8 +428,26 @@ $(document).ready(function () { |
|
|
if (input.value.length > 10) { |
|
|
if (input.value.length > 10) { |
|
|
input.value = input.value.slice(0, 10); |
|
|
input.value = input.value.slice(0, 10); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function validatePhoneNumber(input) { |
|
|
|
|
|
// Remove non-numeric characters |
|
|
|
|
|
let value = input.value.replace(/[^0-9]/g, ''); |
|
|
|
|
|
|
|
|
|
|
|
// Prevent first digit from being 0 |
|
|
|
|
|
if (value.startsWith('0')) { |
|
|
|
|
|
value = value.substring(1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Limit to 10 digits |
|
|
|
|
|
if (value.length > 10) { |
|
|
|
|
|
value = value.slice(0, 10); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
input.value = value; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -438,7 +456,7 @@ $(document).ready(function () { |
|
|
|
|
|
|
|
|
const name = $('#name').val().trim(); |
|
|
const name = $('#name').val().trim(); |
|
|
const mobileNumber = $('#phone').val().trim(); |
|
|
const mobileNumber = $('#phone').val().trim(); |
|
|
const address = $('#address').val().trim(); |
|
|
|
|
|
|
|
|
//const address = $('#address').val().trim(); |
|
|
|
|
|
|
|
|
if (!name) { |
|
|
if (!name) { |
|
|
Swal.fire({ icon: 'warning', title: 'Missing Name', text: 'Please enter your name.' }); |
|
|
Swal.fire({ icon: 'warning', title: 'Missing Name', text: 'Please enter your name.' }); |
|
|
@ -450,10 +468,10 @@ $(document).ready(function () { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (!address) { |
|
|
|
|
|
|
|
|
/* if (!address) { |
|
|
Swal.fire({ icon: 'warning', title: 'Missing Address', text: 'Please enter your address.' }); |
|
|
Swal.fire({ icon: 'warning', title: 'Missing Address', text: 'Please enter your address.' }); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
// Step 1: Check if user already exists |
|
|
// Step 1: Check if user already exists |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
@ -481,7 +499,7 @@ $(document).ready(function () { |
|
|
type: 'POST', |
|
|
type: 'POST', |
|
|
data: { |
|
|
data: { |
|
|
user_name: name, |
|
|
user_name: name, |
|
|
user_address: address, |
|
|
|
|
|
|
|
|
|
|
|
user_mobile: mobileNumber |
|
|
user_mobile: mobileNumber |
|
|
}, |
|
|
}, |
|
|
success: function () { |
|
|
success: function () { |
|
|
@ -492,7 +510,7 @@ $(document).ready(function () { |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
$('#name').val(''); |
|
|
$('#name').val(''); |
|
|
$('#phone').val(''); |
|
|
$('#phone').val(''); |
|
|
$('#address').val(''); |
|
|
|
|
|
|
|
|
// $('#address').val(''); |
|
|
window.location.href = "/crs/loginpage"; |
|
|
window.location.href = "/crs/loginpage"; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|