diff --git a/app/Views/attendance.php b/app/Views/attendance.php index 087d0abb..bbf633ae 100755 --- a/app/Views/attendance.php +++ b/app/Views/attendance.php @@ -237,28 +237,48 @@ $currentday = date('d');
-
+
+
+ 'atten'); echo form_open('attendance', $attributes); ?> -
- -
- - + +
+ +
+ +
+ +
+ + + + + + + + + + +
+ + + +
@@ -284,7 +304,7 @@ $currentday = date('d'); ?> -
+
@@ -570,7 +590,7 @@ $currentday = date('d'); var totaldata = 0; - $('#loader').show(); + showMessage('Processing , Please wait a moment....'); $.ajax({ data: { param1: alldata, @@ -584,12 +604,8 @@ $currentday = date('d'); success: function(data) { if (data) { - $('#loader').hide(); - alert(data); - //totaldata = totaldata + parseFloat(data); - //console.log(data); - - + showMessage(data); + } } @@ -1018,4 +1034,55 @@ $(document).ready(function () { } } + + function toggleDivFullscreen() { + let div = document.getElementById("fullscreenDiv"); + let tableResponsive = document.getElementById("table-responsive"); // Select the table container inside div + + + + if (!document.fullscreenElement) { + div.requestFullscreen().then(() => { + div.style.width = "100vw"; // Full viewport width + div.style.height = "100vh"; // Full viewport height + + // If .table-responsive exists, set its height to 90vh + if (tableResponsive) { + tableResponsive.style.maxHeight = "90vh"; + tableResponsive.style.overflowY = "auto"; // Allow scrolling if needed + } + }).catch(err => console.log("Error enabling fullscreen:", err)); + } else { + document.exitFullscreen().then(() => { + div.style.width = "100%"; + div.style.height = "100%"; + + // Reset .table-responsive height when exiting fullscreen + if (tableResponsive) { + tableResponsive.style.height = "auto"; + } + }).catch(err => console.log("Error exiting fullscreen:", err)); + } +} + + +function showMessage(msg) { + let msgBox = document.getElementById("successMessage"); + msgBox.innerText = msg; // Set API message + msgBox.style.display = "block"; + + // Hide message after 3 seconds + setTimeout(() => { + msgBox.style.display = "none"; + }, 3000); +} + +$("#searchInput").on("keyup", function () { + let value = $(this).val().toLowerCase(); // Convert input to lowercase for case-insensitive search + + $("#table-responsive tbody tr").filter(function () { + $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1); + }); +}); + \ No newline at end of file diff --git a/app/Views/monthlypayinputs.php b/app/Views/monthlypayinputs.php index f3dca305..66a885c1 100755 --- a/app/Views/monthlypayinputs.php +++ b/app/Views/monthlypayinputs.php @@ -128,22 +128,7 @@
- -
-
- -
- - -
- - -