From dac2812848d28637f17a2285ac6859e40055a03c Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Thu, 7 Nov 2024 12:09:19 +0530 Subject: [PATCH] GWM : navigation menu --- app/Views/factoryDieselMachineDetails.php | 835 +++++++++++++--------- 1 file changed, 494 insertions(+), 341 deletions(-) diff --git a/app/Views/factoryDieselMachineDetails.php b/app/Views/factoryDieselMachineDetails.php index d1041e2d..46d456c9 100644 --- a/app/Views/factoryDieselMachineDetails.php +++ b/app/Views/factoryDieselMachineDetails.php @@ -1,183 +1,228 @@ - - + + + + + + + + + +
@@ -187,11 +232,11 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
-
+
@@ -208,28 +253,55 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y');
+ +
- - + +
- +
- - + +
- +
+
+ +
+
+ + + - -
- +
+ - - - - - - - - - - - +
Total Diesel
- - - - - - - + + + + + + + + + + + + + + + + + + + + $row): ?> + + $column): ?> - - $row): ?> - - $column): ?> - - + - + - + - + - + - + - + - + - + - + + + - - - + -
+ Total Diesel
format('d-m-Y'); ?> + format('d-m-Y'); ?> + style="padding: 5px;"> + style="padding: 5px;"> + + style="padding: 5px;"> + style="padding: 5px;"> +
+ -
+
-
-
- +
+
+ +
-
- +
@@ -324,172 +417,232 @@ $datefordropdown = format_date($datefordropdown, 0, 'M-Y'); + targetColumnIndex = targetColumnIndex - 2; + targetColumnIndex = targetColumnIndex * 6; + targetColumnIndex = targetColumnIndex + 5; + targetRow.cells[targetColumnIndex].scrollIntoView({ + behavior: 'smooth', + inline: 'center', + block: 'center' + }); + + const highlightDuration = 10000; + for (let i = targetColumnIndex; i < targetColumnIndex + 6; i++) { + const cell = targetRow.cells[i]; + if (cell) { + + // Scroll the table to ensure the highlighted cell is visible + // table.scrollTop = targetRow.offsetTop - table.clientHeight / 2; // Adjust vertical scroll + // table.scrollLeft = cell.offsetLeft - table.clientWidth / 2; // Adjust horizontal scroll + + cell.style.transition = "background-color 0.5s"; + cell.style.backgroundColor = "#df9675"; + + setTimeout(() => { + cell.style.backgroundColor = ""; + }, highlightDuration); + } + } + + +} + \ No newline at end of file