| 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/coronavirus_old/ |
Upload File : |
<?
/**
* This framework has been created for a multitude of grant research websites.
*
* @copyright 2016-2021 Synergy Pro Marketing
* @author Aaron Campbell <aaron@synergymentoring.com>
* @license None, All Rights Reserved
* @package Business
*/
include_once($_SERVER['DOCUMENT_ROOT']."/vx/lib/inc.php");
track_member_action('Page Visit','Coronavirus');
include_once('../lib/formalizeGrants.php');
$favoriteList = $db->query("
SELECT
gg.*,
gusg.id AS favorite,
gga.did_apply,
gga.how_much_applied_for,
gt.name AS grant_type,
IF(gg.deadline='0000-00-00',1,0) as no_deadline
FROM grdb.bread_crumbs_grants gbg
LEFT JOIN grdb.grd_grants AS gg ON gbg.grants_id=gg.grants_id
LEFT JOIN grdb.grd_usa_saved_grants AS gusg
ON gg.grants_id = gusg.grants_id
AND gusg.client_id = '$user'
AND gusg.site_code = '$siteCode'
LEFT JOIN grdb.grd_grants_applied AS gga
ON
gga.grants_id = gg.grants_id
AND
gga.user = gusg.client_id
AND
gga.site_code = gusg.site_code
LEFT JOIN grdb.grd_types AS gt
ON gt.types_id = gg.types_id
WHERE
gbg.bread_crumbs_id='153'
AND (gg.deadline='0000-00-00' OR gg.deadline >= CURDATE())
GROUP BY gg.grants_id
ORDER BY no_deadline ASC,gg.deadline ASC, gg.amount DESC
");
$favoriteList = formalizeGrants($favoriteList, $userDB, $states, $db, $user);
$grantList = array();
$expiredFavorites = array();
for($i=0; $i<count($favoriteList); $i++)
{
$deadline = $favoriteList[$i]['deadline'];
$grantList[] = $favoriteList[$i];
}
?>
<div class="rb p20 top">
<div class="rb">
<div class="rb <?=$phone ? 'pt20' : ''?> f24 bold left">
<div class="relative iblock glyphicons f26" style="top:-4px;"><img src="/vx/usa/images/covid19.png" style="width:32px;" /></div>
<div class="relative iblock" style="top:-1px; margin-left:7px;">
Coronavirus COVID-19
</div>
</div>
</div>
<div class="rb cc" style="width:100%; min-height:500px;" ng-show="grantList.length == 0">
<div class="cd">
<div class="rb light-gray-bg p10 left dropshadow-light" style="max-width:500px;">
<div class="rb white-bg p20 left">
<div class="f18 bold">
Wait! No grants matched the criteria.
</div>
<div class="rb pt20">
<div class="container-fluid">
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
<div class="rb cc"
style="">
<div class="cd gray">
<span class="favorite glyphicons glyphicons-heart f50 pointer"></span>
</div>
<div class="cdl" style="width:0px; height:100%; margin-left:-3px;">
</div>
</div>
<div class="rb cc pt10">
<div class="relative iblock fa fa-hand-pointer-o f26"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
<span class="f16 bblue bold">
Keeping track of the grants you like is easy. To add a grant to your favorites list, click the star icon found in the grant details.
</span>
</div>
</div>
</div>
</div>
<hr>
<div class="f18 bold">
Start now by searching our database of thousands of grants to find the grant that is right for you.
<br>
<br>
<div class="rb cc">
<span class="glyphicons glyphicons-database-search <?=$phone ? 'f40' : 'f26'?>" style="margin-top:-10px;"></span>
<?=$phone ? '<br>' : ''?>
<a href="/vx/usa/search/">
<span class="rollover-underline bblue bold pointer">
Search Our Database
</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="cdl" style="min-height:500px"></div>
</div>
<?
if($phone)
{
$field = 'grantList';
$fieldType = 'Loading';
include($_SERVER['DOCUMENT_ROOT'] . '/vx/usa/layout/inc/m.grant.php');
}
else
{
$field = 'grantList';
$fieldType = 'Loading';
include($_SERVER['DOCUMENT_ROOT'] . '/vx/usa/layout/inc/grant.php');
}
?>
</div>
<?
$title = "Coronavirus : ".$siteName;
include_once($_SERVER['DOCUMENT_ROOT']."/vx/usa/layout/body.php");
?>