Adds range to slider, and links it to year choice.

This commit is contained in:
Jonathan Rosenbaum
2015-01-24 03:33:17 +00:00
parent 2593c6fe9b
commit 9d4ec10312
3 changed files with 78 additions and 14 deletions
+11
View File
@@ -87,6 +87,17 @@ $change_fund = CHANGE_FUND;
$result = mysql_query($query, $YBDB) or die(mysql_error());
}
// populate transaction slider for accounting programs
if (isset($_POST['transaction_slider'])) {
$query = 'SELECT transaction_id, IF(amount > 0, "yes", "no") AS "deposited", date
FROM transaction_log WHERE transaction_type= "Deposit";';
$sql = mysql_query($query, $YBDB) or die(mysql_error());
while ( $result = mysql_fetch_assoc($sql) ) {
$slider_range[] = $result;
}
echo json_encode($slider_range);
}
// Deposit Calculator
if (isset($_POST['deposit'])) {