mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 17:05:36 -04: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>            |             <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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user