CSV Download and Notes highlight

This commit is contained in:
2025-03-16 17:17:42 +00:00
parent 82f2c5c16c
commit 935e13d44b
7 changed files with 141 additions and 115 deletions

View File

@@ -148,6 +148,7 @@ require_db_auth();
</select>
<select id="yearSelect"></select>
<button onclick="selectMonthYear()">Submit</button>
<button onclick="downloadCSV()">Download CSV</button>
<p id="output"></p>
</div>
@@ -186,6 +187,11 @@ require_db_auth();
selectMonth();
populateYearDropdown();
function downloadCSV() {
let year = document.getElementById("yearSelect").value;
let month = document.getElementById("monthSelect").value;
window.location.href = `download.php?year=${year}&month=${month}`;
}
</script>
<?php