CSV Download and Notes highlight
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user