1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Provides more information in amount title if has paid history.

* Original Price
* Paid
* Redeemed Hours
This commit is contained in:
Jonathan Rosenbaum 2017-11-11 22:47:50 +00:00
parent 3d02473e03
commit 3e9c23c676

View File

@ -688,7 +688,19 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
<td <?php echo "title='Description: " . htmlspecialchars($row_Recordset1['description_with_locations'], ENT_QUOTES) . "'"; ?> ><?php echo $row_Recordset1['description_with_locations']; ?>&nbsp;</td>
<td><?php echo $row_Recordset1['payment_type']; ?>&nbsp;</td>
<td><?php echo $row_Recordset1['format_amount']; ?>&nbsp;</td>
<td <?php
$history = json_decode($row_Recordset1['history']);
if ($history) {
end($history);
$key = key($history);
$title = "Original Price: " . $history[$key]->original_price . "\r\n" .
"Paid: " . $history[$key]->amount . "\r\n" .
"Redeemed Hours: " . $history[$key]->redeemed_hours;
echo "title='" . $title . "'";
}
?>
><?php echo $row_Recordset1['format_amount']; ?>&nbsp;</td>
<td><?php $record_trans_id = $row_Recordset1['transaction_id'];
foreach ($_GET as $i => $value) {
if ($i != "trans_id") {