tracker issue fixed
This commit is contained in:
parent
fb64ceca08
commit
d06f6752a7
@ -75,14 +75,14 @@
|
||||
|
||||
$db['default'] = array(
|
||||
'dsn' => '',
|
||||
'hostname' => 'localhost',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'database' => 'test',
|
||||
// 'hostname' => '119.18.54.85',
|
||||
// 'username' => 'venbaehn_ams',
|
||||
// 'password' => 'L;nD7Z@f)1ZT',
|
||||
// 'database' => 'venbaehn_ams',
|
||||
// 'hostname' => 'localhost',
|
||||
// 'username' => 'root',
|
||||
// 'password' => '',
|
||||
// 'database' => 'test',
|
||||
'hostname' => '119.18.54.85',
|
||||
'username' => 'venbaehn_ams',
|
||||
'password' => 'L;nD7Z@f)1ZT',
|
||||
'database' => 'venbaehn_ams',
|
||||
'dbdriver' => 'mysqli',
|
||||
'dbprefix' => '',
|
||||
'pconnect' => FALSE,
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<br />
|
||||
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Delegation/Assign_Delecation" enctype="multipart/form-data">
|
||||
<form id="myForm" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Delegation/Assign_Delecation" enctype="multipart/form-data">
|
||||
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
||||
|
||||
@ -110,7 +110,7 @@
|
||||
dateFormat: 'd-m-Y',
|
||||
minDate: 'today',
|
||||
maxDate: new Date().fp_incr(365 * 10),
|
||||
allowInput: false,
|
||||
allowInput: true,
|
||||
autoclose: true,
|
||||
onChange: function (selectedDates, dateStr) {
|
||||
toDateInput._flatpickr.set('minDate', dateStr);
|
||||
@ -122,7 +122,7 @@
|
||||
dateFormat: 'd-m-Y',
|
||||
minDate: 'today',
|
||||
maxDate: new Date().fp_incr(365 * 10),
|
||||
allowInput: false,
|
||||
allowInput: true,
|
||||
autoclose: true,
|
||||
onChange: function (selectedDates, dateStr) {
|
||||
console.log('Selected to date: ', dateStr);
|
||||
@ -177,4 +177,22 @@ function get_emp_id(emp_id, id){
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
let formSubmitted = false;
|
||||
|
||||
document.getElementById('myForm').addEventListener('submit', function(event) {
|
||||
if (formSubmitted) {
|
||||
event.preventDefault(); // Prevent the form from being submitted again
|
||||
return false;
|
||||
}
|
||||
|
||||
formSubmitted = true;
|
||||
document.getElementById('submitBtn').setAttribute('disabled', 'disabled');
|
||||
|
||||
// You might want to show a message or change button text to indicate submission
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -97,7 +97,7 @@
|
||||
<div class="ln_solid"></div>
|
||||
<div class="item form-group">
|
||||
<div class=" offset-md-8">
|
||||
<button class="btn btn-secondary" onclick="history.back()">Cancel</button>
|
||||
<a href="<?php echo base_url();?>Delegation/Delegation_list" class="btn btn-secondary">Cancel</a>
|
||||
<button class="btn btn-primary" type="reset">Reset</button>
|
||||
<button type="submit" class="btn btn-success">Update</button>
|
||||
</div>
|
||||
|
||||
@ -352,13 +352,20 @@ class="form-control" type="text">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="item form-group">
|
||||
<!-- <div class="item form-group">
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="first-name"> State</label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
<input type="text" id="state" name="state"
|
||||
value="<?php if(isset($editData)) { echo $editData->state; } ?>" class="form-control ">
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="item form-group">
|
||||
<label class="control-label col-md-1 col-sm-1" for="first-name">State</label>
|
||||
<div class="col-md-5 col-sm-5">
|
||||
<input type="text" id="state" name="state" value="<?php if(isset($editData)) { echo $editData->state; } ?>" class="form-control">
|
||||
<span id="stateError" style="color: red;"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label class="control-label col-md-1 col-sm-1 " for="email"> Pincode</label>
|
||||
<div class="col-md-5 col-sm-5 ">
|
||||
@ -620,4 +627,16 @@ function check_if_exists(id, value, name) {
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
<script>
|
||||
document.getElementById('state').addEventListener('input', function(event) {
|
||||
var stateInput = event.target.value;
|
||||
var regex = /^[A-Za-z\s]+$/; // Allows only letters and spaces
|
||||
|
||||
if (!regex.test(stateInput)) {
|
||||
// Remove any special characters or numbers
|
||||
event.target.value = stateInput.replace(/[^A-Za-z\s]/g, '');
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<div class="modal-dialog modal-sm" style="z-index: 0 !important;">
|
||||
<div class="modal-content" style="height:170px;">
|
||||
<div class="modal-content" style="height:112px;">
|
||||
|
||||
<div class="modal-header">
|
||||
<h6 class="modal-title" id="myModalLabel2">Are you sure you want to delete</h6>
|
||||
|
||||
@ -3,6 +3,14 @@
|
||||
div.dataTables_wrapper div.dataTables_filter{
|
||||
margin-top: -30px !important;
|
||||
}
|
||||
.btn .btn-sm .btn-secondary{
|
||||
margin-top:-8px;
|
||||
}
|
||||
.btn .btn-sm .btn-primary{
|
||||
margin-top:-10px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css'>
|
||||
</head>
|
||||
|
||||
@ -84,7 +84,7 @@
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<br />
|
||||
<form id="" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Expence/rise_expence_request" enctype="multipart/form-data">
|
||||
<form id="expenceForm" data-parsley-validate class="form-horizontal form-label-left" method="post" action="<?php echo base_url();?>Expence/rise_expence_request" enctype="multipart/form-data">
|
||||
|
||||
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name();?>" value="<?php echo $this->security->get_csrf_hash();?>">
|
||||
|
||||
@ -259,7 +259,7 @@
|
||||
flatpickr(datepickerInput, {
|
||||
dateFormat: 'd-m-Y',
|
||||
maxDate: new Date(),
|
||||
allowInput: false,
|
||||
allowInput: true,
|
||||
autoclose:true,
|
||||
|
||||
onChange: function(selectedDates, dateStr) {
|
||||
@ -418,7 +418,7 @@ function createAndAppendFormGroup() {
|
||||
dateFormat: 'd-m-Y',
|
||||
maxDate: new Date(),
|
||||
autoclose:true,
|
||||
allowInput: false,
|
||||
allowInput: true,
|
||||
|
||||
onChange: function(selectedDates, dateStr) {
|
||||
console.log('Selected date: ', dateStr);
|
||||
@ -464,3 +464,21 @@ function remove_row(id)
|
||||
}
|
||||
|
||||
</script>
|
||||
<script>
|
||||
let formSubmitted = false;
|
||||
|
||||
document.getElementById('expenceForm').addEventListener('submit', function(event) {
|
||||
if (formSubmitted) {
|
||||
event.preventDefault(); // Prevent the form from being submitted again
|
||||
return false;
|
||||
}
|
||||
|
||||
formSubmitted = true;
|
||||
document.getElementById('submitBtn').setAttribute('disabled', 'disabled');
|
||||
|
||||
// You might want to show a message or change button text to indicate submission
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@ -577,7 +577,24 @@ function calculateDateDifference() {
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
let formSubmitted = false;
|
||||
|
||||
document.getElementById('myForm').addEventListener('submit', function(event) {
|
||||
if (formSubmitted) {
|
||||
event.preventDefault(); // Prevent the form from being submitted again
|
||||
return false;
|
||||
}
|
||||
|
||||
formSubmitted = true;
|
||||
document.getElementById('submitBtn').setAttribute('disabled', 'disabled');
|
||||
|
||||
// You might want to show a message or change button text to indicate submission
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user