GWM : code merge

This commit is contained in:
Gowtham M 2025-04-07 15:27:28 +05:30
parent cfc3745d98
commit 7291373b39

View File

@ -259,6 +259,8 @@ $currentday = date('d');
<input type="text" id="searchInput" placeholder="Search..." style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;border-radius: 5px;margin-right:15px;"> <input type="text" id="searchInput" placeholder="Search..." style="padding: 8px;margin-bottom: 10px;width: 250px;border: 1px solid #ccc;border-radius: 5px;margin-right:15px;">
<i id="exportButton" class="fas fa-download download-icon" style="margin-right: 15px;margin-top: 8px;font-size:25px;" title="Export Excel"></i> <i id="exportButton" class="fas fa-download download-icon" style="margin-right: 15px;margin-top: 8px;font-size:25px;" title="Export Excel"></i>
<i class="fe-maximize noti-icon" onclick="toggleDivFullscreen()" style="margin-right: 15px;margin-top: 5px;font-size: 28px;" title="Full screen view"></i> <i class="fe-maximize noti-icon" onclick="toggleDivFullscreen()" style="margin-right: 15px;margin-top: 5px;font-size: 28px;" title="Full screen view"></i>
@ -267,15 +269,6 @@ $currentday = date('d');
</div> </div>
<!--
<div class="col-1 text-right">
<i id="exportButton" class="fas fa-download download-icon" style="font-size: x-large; margin-top:12px;" title="Export Excel"></i>
</div>
<div class="col-8 text-right">
<input type="button" class="btn btn-success" id="c" value="save" style="margin-top:0px;">
</div> -->
</div> </div>
<?php echo form_close(); ?> <?php echo form_close(); ?>
@ -561,11 +554,7 @@ $currentday = date('d');
</div><!-- End table-responsive --> </div><!-- End table-responsive -->
<!-- <div class="row">
<div class="col-md-12 text-right">
<input type="button" class="btn btn-success" id="c" value="save">
</div>
</div> -->
</div> </div>
</div> <!-- End card-body --> </div> <!-- End card-body -->
@ -583,7 +572,7 @@ $currentday = date('d');
<!-- <script type="text/javascript" src="<?php echo base_url(); ?>public/assets/js/common.js" charset="utf-8"></script> -->
<script type="text/javascript"> <script type="text/javascript">
@ -640,7 +629,8 @@ $currentday = date('d');
} else { } else {
alert('Plesae Provide Working Hrs and OT Hrs Correctly..!'); alert('Plesae Provide Working Hrs and OT Hrs Correctly..!');
} }
}); }); });
});
</script> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js"></script>
@ -711,10 +701,7 @@ $(document).ready(function () {
$(document).ready(function() { $(document).ready(function() {
// $("#attendance").CongelarFilaColumna({ $('table').bind('keypress', function(e) {
// lboHoverTr: true
// });
$('html').bind('keypress', function(e) {
if (((e.which || e.keyCode) == 8) || ((e.which || e.keyCode) == 9) || ((e.which || e.keyCode) == if (((e.which || e.keyCode) == 8) || ((e.which || e.keyCode) == 9) || ((e.which || e.keyCode) ==
@ -1102,6 +1089,11 @@ function showMessage(msg) {
msgBox.style.display = "none"; msgBox.style.display = "none";
}, 3000); }, 3000);
} }
$(document).ready(function() {
document.getElementById("searchInput").addEventListener("input", function () {
this.value = this.value.replace(/[^a-zA-Z0-9 ]/g, ''); // Allows letters, numbers, and spaces
});
});
$("#searchInput").on("keyup", function () { $("#searchInput").on("keyup", function () {
let value = $(this).val().toLowerCase(); // Convert input to lowercase for case-insensitive search let value = $(this).val().toLowerCase(); // Convert input to lowercase for case-insensitive search