mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-21 08:34:27 -05:00
When membership expires, date turns red. Noted in #1.
This commit is contained in:
parent
97f02b6788
commit
ec886a967d
@ -93,7 +93,14 @@ $num_member_rows = mysql_num_rows($purchased_membership);
|
||||
?>
|
||||
<tr>
|
||||
<td class="yb_standardRIGHTred"><a href="<?php echo "{$page_individual_history_log}?contact_id=" . $result['contact_id']; ?>"><?php echo $result['full_name']; ?></a></td>
|
||||
<td class="yb_standardRIGHTred"><?php echo $result['expiration_date']; ?></td>
|
||||
<td class="yb_standardRIGHTred"><?php
|
||||
if( strtotime($result['expiration_date']) <= local_datetime() ) {
|
||||
echo $result['expiration_date'];
|
||||
} else {
|
||||
echo "<span style='color:blue;'>" . $result['expiration_date'] . "</span>";
|
||||
}
|
||||
|
||||
?></td>
|
||||
<td class="yb_standardRIGHT"><?php echo number_format($purchased_membership_dictionary[$result['contact_id']]['sort_visits'],0); ?></td>
|
||||
<td class="yb_standardRIGHT"><?php echo number_format($purchased_membership_dictionary[$result['contact_id']]['sort_hours'],0); ?></td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user