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:
parent
3d02473e03
commit
3e9c23c676
@ -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']; ?> </td>
|
||||
<td><?php echo $row_Recordset1['payment_type']; ?> </td>
|
||||
<td><?php echo $row_Recordset1['format_amount']; ?> </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']; ?> </td>
|
||||
<td><?php $record_trans_id = $row_Recordset1['transaction_id'];
|
||||
foreach ($_GET as $i => $value) {
|
||||
if ($i != "trans_id") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user