| 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/applications/ |
Upload File : |
<?php if(!$phone && empty($top_apps_only)) { ?>
<h2><span class="fas fa-trophy" style="color:#004f63;"></span> Top Applications</h2>
<div style="margin:0px 0px 0px 42px;">
<div><span style="font-size:30px;font-family:Helvetica;font-weight:bold;color:#004e63;">Start Applying to these Top Applications Today</span></div>
<div style="padding-bottom:10px;">
<div><i>Here are the top applications for this category from our grant research team. <strong>These are the application sources you should start applying to FIRST.</strong> Click on the "<strong>Video Tutorial</strong>" button <i class="fas fa-circle-play f20" style="color:red;"></i> to watch a short video about each funding source. You can also view ALL the grant sources below in the "<strong>All Funding Sources</strong>" for this category.</i></div>
</div>
</div>
<?php } ?>
<div id="popular_grants_list">
<div id="popular_grants_real_list">
<?php if(!empty($popular_list)) {
$pi = 0; foreach($popular_list as $grant) { $pi++;
$my_favorites_count = 0;
$mfres = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_usa_saved_grants WHERE grants_id='".$db->clean($grant->grants_id)."'");
if(!empty($mfres)) {
$my_favorites_count = $mfres[0]->c;
}
$is_popular = $db->get_results("SELECT id FROM grdb.popular_grants WHERE grants_id='".$db->clean($grant->grants_id)."'");
$pop_grant_border = '1px solid black;border-radius:0px;';
if(!empty($is_popular)) {
$pop_grant_border = '1px solid #024e63;border-radius:0px;';
} elseif(strtotime($grant->ts) >= strtotime('-30 day')) {
$pop_grant_border = '1px solid #ffa732;border-radius:0px;';
}
if($pi==3) {
$total_givesback = 'Over $23,000';
$tres = $db->get_results("SELECT SUM(amount) as total_amount
FROM grdb.givesback_winners
WHERE money_sent<>'0000-00-00 00:00:00'");
$total_givesback = '$'.number_format($tres[0]->total_amount);
?>
<div class="pop_grant" style="height:auto;border:1px solid black;border-radius:0px;">
<a href="/vx/usa/givesback/" class="section_box_link">
<center>
<div><img src="/vx_/images/LogoB.png" style="width:60%;" /></div>
<div><img src="/vx/usa/givesback/givesback_black.png" style="width:100%;margin:-30px 0px 10px -15px;" /></div>
</center>
<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <div style="display:inline-block;vertical-align:middle;width:calc(100% - 30px);"><strong>Weekly Cash Awards</strong></div></div>
<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <div style="display:inline-block;vertical-align:middle;width:calc(100% - 30px);"><strong>Favorite 3 Grants to Qualify</strong></div></div>
<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <div style="display:inline-block;vertical-align:middle;width:calc(100% - 30px);"><strong><?= $total_givesback;?> has been Awarded</strong></div></div>
<br />
<center>
<div style="background: #dfedd6; padding:10px 20px; border-radius:20px; border:1px solid black;display:inline-block;"><strong>Click Here</strong> to Learn More</div>
</center>
</a>
</div>
<?php
}
?>
<div class="pop_grant real_app_container" <?= (!empty($grant->brief_summary)) ? 'style="height:auto;border:'.$pop_grant_border.'"' : 'style="border:'.$pop_grant_border.'"';?>>
<div style="position:absolute;top:0px;left:0px;">
<div style="display:inline-block;vertical-align:top;">
<?php if(!empty($is_popular)) { ?>
<div style="width:40px;height:40px;background:#024e63;color:white;padding:5px 10px;">
<div><i class="fas fa-trophy" style="font-size:18px;color:white;"></i></div>
<div style="text-align:center;font-size:10px;">Top</div>
</div>
<?php } elseif(strtotime($grant->ts) >= strtotime('-30 day')) { ?>
<div style="width:40px;height:40px;background:#ffa732;color:white;padding:5px 10px;">
<div><i class="fas fa-star" style="font-size:18px;"></i></div>
<div style="text-align:center;font-size:10px;">New</div>
</div>
<?php } ?>
</div>
<div style="display:inline-block;vertical-align:top;">
<?php if(!empty($grant->logo_url)) { ?>
<img src="<?= $grant->logo_url;?>" loading="lazy" style="max-width:90%;max-height:45px;margin-top:5px;margin-bottom:10px;<?= (!empty($grant->bg_color_hex)) ? 'background:'.$grant->bg_color_hex : '';?>" onerror="$(this).remove();" />
<?php } else { ?>
<img src="https://surfcrm.com/images/grdb/<?= $grant->base_url;?>.jpg" loading="lazy" style="max-width:90%;height:45px;margin-top:5px;margin-bottom:10px;" onerror="$(this).remove();" />
<?php } ?>
</div>
</div>
<div style="position:absolute;top:0px;right:5px;">
<div style="display:inline-block;" onclick="mark_as_favorite(this,'<?= $grant->grants_id;?>'); return false;">
<i class="glyphicons <?= (!empty($grant->favorite)) ? 'favoriteSelected glyphicons-heart' : 'favorite glyphicons-heart-empty';?>" style="color:red;vertical-align:middle;"></i> <i style="color:gray;vertical-align:middle;margin-left:-8px;"><?= number_format($my_favorites_count);?></i>
</div>
<?php if($grant->has_additional_fee_to_apply=='Yes') { ?>
<div style="display:inline-block;">
<i class="fas fa-circle-dollar" style="color:#8c8525;font-size:20px;cursor:pointer;" onmouseover="$(this).parents('.pop_grant').find('.has_additional_fee').show();" onmouseout="$(this).parents('.pop_grant').find('.has_additional_fee').hide();" onclick="$(this).parents('.pop_grant').find('.has_additional_fee').toggle(); return false;"></i>
<div class="has_additional_fee" style="display:none;position:absolute;top:-50px;left:10px;font-size:10px;padding:10px;border:1px solid black;background:white;z-index:2;width:135px;">This funding source may ask for a fee to apply.</div>
</div>
<?php } ?>
</div>
<div style="height:40px;"> </div>
<div style="font-size:14px;padding:0px 0px 10px 0px;font-weight:bold;">
<?php
$grant_name = strip_imported_junk($grant->name);
if(strlen($grant_name) >= 64) {
echo '<span style="font-size:10px;">'.$grant_name.'</span>';
} elseif(strlen($grant_name) >= 48) {
echo '<span style="font-size:12px;">'.$grant_name.'</span>';
} else {
echo $grant_name;
}
?>
</div>
<?php if(!empty($grant->brief_summary)) { ?>
<p style="<?= ($phone) ? '' : 'font-size:11px;';?>"><?= $grant->brief_summary;?></p>
<?php } ?>
<div style="margin-top:10px;padding:10px;">
<div class="row">
<div class="col-xs-6">
<div class="f10">Deadline</div>
<h4><?= ($grant->deadline=='0000-00-00' || strtotime($grant->deadline) <= strtotime('2001-01-01')) ? 'No Deadline' : date('M d, Y',strtotime($grant->deadline));?></h3>
<div class="f10" style="color:#7ea62f;">Amount</div>
<h4 style="color:#7ea62f;"><?= (empty($grant->amount*1)) ? 'Amount Varies' : '$'.number_format(round($grant->amount));?></h3>
<div class="f10 gray">Funding Type</div>
<h4 class="gray" title="<?= $grant->grant_type;?>">
<div class="rib" style="margin-left:2px;">
<?= $grant->grant_type;?>
</div>
<?php
switch($grant->grant_type) {
case 'Investor':
?><i class="fa fa-fw fa-diamond f22"></i><?php
break;
case 'Grant':
default:
?><i class="fa fa-fw fa-gift f22"></i><?php
break;
case 'Loan':
case 'Forgivable Loan':
?><i class="fa fa-fw fa-money f22"></i><?php
break;
case 'Other':
case 'Assistance Program':
?><i class="fa fa-fw fa-life-ring f22"></i><?php
break;
case 'Contract':
?><i class="fa fa-fw fa-file-text-o f22"></i><?php
break;
case 'Scholarship':
?><i class="fa fa-fw fa-user-graduate f22"></i><?php
break;
}
?>
</h4>
</div>
<div class="col-xs-6" style="padding-top:5px;">
<?php $has_video = $db->get_results("SELECT grants_id,folder,filename FROM grdb.grd_grant_video_tutorials WHERE grants_id='".$db->clean($grant->grants_id)."'");
if(!empty($has_video)) { ?>
<div onclick="play_tutorial_video('<?= $has_video[0]->folder.$has_video[0]->filename;?>','<?= $has_video[0]->grants_id;?>'); return false;" style="text-align:left;color:red;">
<div class="row">
<div class="col-xs-4">
<span class="fas fa-circle-play f32" style="vertical-align:middle;padding:0px 8px;"></span>
</div>
<div class="col-xs-8">
<div class="rib text" style="font-size:12px;font-weight:bold;color:gray;vertical-align:middle;padding-top:8px;">
Video Tutorial
</div>
</div>
</div>
</div>
<?php } ?>
<div onclick="mark_as_favorite(this,'<?= $grant->grants_id;?>'); return false;" style="text-align:left;margin-top:5px;">
<div class="row">
<div class="col-xs-4">
<span class="glyphicons gray f32 <?= (!empty($grant->favorite)) ? 'favoriteSelected glyphicons-heart' : 'favorite glyphicons-heart-empty';?>" style="vertical-align:middle;"></span>
</div>
<div class="col-xs-8">
<div class="rib text" style="font-size:12px;font-weight:bold;vertical-align:middle;padding-top:14px;">
Favorite
</div>
</div>
</div>
</div>
<div style="text-align:left;margin-top:-2px;">
<a href="<?= $grant->url;?>" class="btn btn-lg" target="_blank" style="display:block;text-align:left;padding:5px;">
<div class="row">
<div class="col-xs-4">
<img src="/vx/usa/images/gotosite.png" style="width:32px;vertical-align:middle;margin:0px 2px;" />
</div>
<div class="col-xs-8">
<div class="rib text" style="font-size:12px;font-weight:bold;color:#0093d9;vertical-align:middle;">
Go To Site
</div>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
<div style="margin-top:10px;padding:10px;text-align:center;">
<a href="#" style="color:#666666;font-style:italic;" onclick="load_full_grant_info(this,'<?= $grant->grants_id;?>'); return false;">Show More Information</a>
</div>
</div>
<?php }
} ?>
</div>
</div>