| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/governmentgrants.us/vx/usa/calendar/ |
Upload File : |
<div class="deadline_table_container">
<div class="results_text">Results showing next <?= $num_months_showing;?> months</div>
<h3>Upcoming Deadlines</h3>
<div class="deadline_filters">
<?php for($i=0;$i<=$num_months_showing;$i++) {
$month_date = ($i==0) ? date('Y_m') : date('Y_m',strtotime('+'.$i.' month'));
?>
<div class="deadline_month_filter <?= ($_REQUEST['date']==$month_date) ? 'deadline_month_filter_select' : '';?>" onclick="filter_deadline_month(this,'<?= $month_date;?>'); return false;">
<?= ($i==0) ? date('F Y') : date('F Y',strtotime('+'.$i.' month'));?>
</div>
<?php } ?>
<div><i>**This list only show grants with deadlines. Many grants don't have deadlines so you can apply for them throughout the year.</i></div>
</div>
<table class="deadline_table">
<tr>
<th>Deadline Date</th>
<th>Grant Name</th>
<th>Amount</th>
<th></th>
<th>Description</th>
<th>View Grant</th>
</tr>
<?php foreach($grants as $grant) {
$grant['description'] = strip_tags($grant['description']);
?>
<tr class="deadline_month deadline_month_<?= date('Y_m',strtotime($grant['deadline']));?>">
<td style="width:150px;"><?= date('m/d/Y',strtotime($grant['deadline']));?></td>
<td class="f14 bold"><?= (!$monthlySubscription) ? 'XXXXXXXX' : $grant['name'];?></td>
<td class="f14 bold"><?= ($grant['amount']*1<=1) ? 'Varies' : '$'.number_format($grant['amount'],2);?></td>
<td>
<?php if(!empty($grant['logo'])) { ?>
<div style="background:<?= $grant['logo']['bg_color_hex'];?>">
<img src="<?= $grant['logo']['logo_url'];?>" class="grant_logo_image" onerror="this.style.display='none'" />
</div>
<?php } ?>
</td>
<td><?= (strlen($grant['description'])>200) ? substr($grant['description'],0,200).'...' : $grant['description'];?></td>
<td>
<form method="post" action="/vx/usa/grant/" target="_blank">
<input type="hidden" name="grant" value="<?= $grant['grants_id'];?>" />
<button type="submit" class="no_border white-bg">
<span class="glyphicons glyphicons-invoice f28"></span>
View
</button>
</form>
</td>
</tr>
<?php } ?>
</table>
</div>