Browse Source

When membership expires, date turns red. Noted in #1.

devel
Jonathan Rosenbaum 6 years ago
parent
commit
ec886a967d
  1. 9
      stats/paid_members.php

9
stats/paid_members.php

@ -93,7 +93,14 @@ $num_member_rows = mysql_num_rows($purchased_membership);
?> ?>
<tr> <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"><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_visits'],0); ?></td>
<td class="yb_standardRIGHT"><?php echo number_format($purchased_membership_dictionary[$result['contact_id']]['sort_hours'],0); ?></td> <td class="yb_standardRIGHT"><?php echo number_format($purchased_membership_dictionary[$result['contact_id']]['sort_hours'],0); ?></td>
</tr> </tr>

Loading…
Cancel
Save