| 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/members/ |
Upload File : |
<?
session_start();
include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/sanitize.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/ua.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/func.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/vx_/site_info.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/mysql.php');
track_member_action('Page Visit','Home');
$user = $_SESSION['user'];
ob_start();
if(!empty($_GET['subscribe'])) {
if($_GET['subscribe']=='no') {
$foo = file_get_contents('https://surfcrm.com/lcapi/TrackUpsellButton.php?site_code='.$siteCode.'&client_id='.$user.'&response=No&upsell_version='.urlencode($_SESSION['upsell_tracking_version']).'&upsell_version_description='.urlencode($_SESSION['upsell_tracking_version_description']));
header("Location: /vx/usa/members/");
}
}
if(empty($_SESSION['site_phone'])) {
$site_info = $db->get_results("SELECT refund_email,phone,site_name
FROM lc2admin.site
WHERE site_code='".$db->clean($siteCode)."'");
$_SESSION['site_phone'] = $site_info[0]->phone;
$_SESSION['site_email'] = $site_info[0]->refund_email;
$_SESSION['site_name'] = $site_info[0]->site_name;
}
$site_info = $db->get_results("SELECT refund_email,phone,site_name
FROM lc2admin.site
WHERE site_code='".$db->clean($siteCode)."'");
$siteName = $site_info[0]->site_name;
$grants_found_in_the_last_30_days = 0;
$res = $db->get_results("SELECT COUNT(*) as c
FROM grdb.grd_grants
WHERE DATE(ts) >= '".date('Y-m-d',strtotime('-30 day'))."'");
$grants_found_in_the_last_30_days = $res[0]->c;
//Started giving them different info on the home page for Businessy type people vs non business 04/04/2022
$is_businessy = false;
$date_ordered = '2001-01-01 00:00:00';
if(!empty($user)) {
$res = $db->get_results("SELECT r.date_ordered,p.profile_category_id
FROM lc2{$siteCode}_lc.lc_reseller r
LEFT JOIN lc2{$siteCode}_lc.lc_leads l ON l.customerID=r.id
LEFT JOIN lc2{$siteCode}_lc.lead_profile p ON p.lead_id=l.id
WHERE r.id='".$db->clean($user)."'");
if(!empty($res)) {
if(in_array($res[0]->profile_category_id,array('10','2','113','13','9'))) {
//Is Business, Non-Profit, Community Assistance, Real Estate, Inventions
$is_businessy = true;
}
}
}
$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);
?>
<style>
.section_box {
padding:10px;
border:2px solid #d8d8d8;
border-radius:6px;
margin:20px;
}
.section_box_link {
display:block;
text-decoration:none;
color:inherit;
}
.section_header {
font-size:20px;
font-weight:bold;
}
.video {
margin:10px auto;
width:100%;
position:relative;
}
.video img {
width:100%;
}
#play_button {
position: absolute;
left: 42%;
top: 37%;
background: rgba(255,255,255,0.7);
width: 100px;
height: 100px;
padding: 0px;
border-radius: 60px;
cursor: pointer;
color: black;
padding: 14px;
}
.category_box {
text-align:center;
}
.category_box .iconItem {
width:130px;
height:100px;
}
.category_box .iconCell {
height:50px;
}
.category_box .iconCell svg {
width:48px;
}
.section_subheader {
font-size:16px;
}
.center_image {
display:block;
width:80%;
margin:5px auto;
}
#email_alerts_box, #teleseminars_box {
text-align:center;
}
#coronavirus_box {
border: 2px solid #c93156;
color: #c93156;
}
#coronavirus_box .sicon {
text-align:center;
color: #c93156;
}
.vault_seen_new_page {
border-radius:7px;
padding:5px 10px;
border:1px solid #A1A1A1;
display:inline-block;
color:white;
font-weight:bold;
font-size:12px;
font-family:Arial;
background-color: #752d15;
position:relative;
top:-4px;
}
</style>
<script type="text/javascript">
function load_testimonial_form() {
$.ajax({
url:"/vx/usa/members/rate_the_site_from_popup_new.php",
cache: false,
type: "POST",
data: '',
success: function(results) {
$('#bodyContainer').append(results);
window.scrollTo(0, 0);
window.setTimeout(function() {
$('#showOverlayMessage').hide();
},200);
}
});
}
$('document').ready(function() {
window.setTimeout(function() {
$('#play_button').css('left',$('#professional_funding_services_box .video').width()/2 - $('#play_button').width()/2 - 10);
$('#play_button').css('top',$('#professional_funding_services_box .video').height()/2 - $('#play_button').height()/2 - 10);
},1000);
});
</script>
<div class="relative block" id="Members" style="min-height:400px; margin:0px auto; max-width:1000px; background: white;">
<h1 style="font-size:34px;">Welcome to <?= $siteName;?></h1>
<div class="row">
<div class="col-sm-8">
<?php ob_start(); ?>
<?php if($phone) { ?>
<div class="section_box">
<a href="/vx/usa/givesback/" class="section_box_link">
<div class="section_header sicon" style="font-size:18px;">Givesback Registration</div>
<div><img src="/vx/usa/givesback/givesback_black.png" class="center_image"></div>
<p style="font-size:12px;color:gray;">Register for the Givesback Program by clicking on the following button! <strong><?= $total_givesback;?></strong> has been awarded!</p>
<p style="font-size:12px;color:red;font-weight:bold;"><i>Next Award Date: <?= date('M d, Y',strtotime('next monday'));?></p>
<div style="margin:5px 0px;">
<img src="/vx/usa/members/givesback_winners_3x3.png" style="width:100%;" />
</div>
</a>
</div>
<div class="section_box">
<a href="/vx/usa/favorites/" class="section_box_link">
<div class="section_header sicon">Favorite Applications</div>
<center style="margin:10px 0px;">
<i class="fas fa-heart" style="font-size:60px;color:red;"></i>
</center>
<p style="font-size:12px;color:gray;">Once you find an application you like, <strong>Favorite it</strong> by clicking on the heart icon. All your favorites are in the Favorites section.</p>
</a>
</div>
<div class="section_box">
<a href="/vx/usa/master/" class="section_box_link">
<div class="section_header sicon">A.I. Answer Vault</div>
<center><img src="/vx/usa/master/ai_logo.png" style="width:80px;margin:13px;" /></center>
<p style="font-size:12px;color:gray;">Most grant and other funding applications ask the same types of questions, but reword them a little differently. Over the years we've gathered, grouped, and stored these questions in our "Master Application Questions Vault." After you unlock it and start answering these questions, your answers are saved for you in a safe and secure location, where ONLY YOU can access them to COPY AND PASTE into applications you want to apply to now and in the future</p>
</a>
</div>
<div class="section_box">
<a href="/vx/usa/applications/top.php" class="section_box_link">
<div class="section_header sicon">Focus on "Top Apps" First</div>
<center><i class="fas fa-trophy" style="color:#004f63;font-size:80px;margin:13px;"></i></center>
<p style="font-size:12px;color:gray;">Be sure to focus on the <strong>top applications</strong> in each category from our grant research team. These are the application sources you should start applying to FIRST.</p>
<p style="font-size:12px;color:gray;">Each <strong>Top App</strong> has a <strong>"Video Tutorial"</strong> button <i class="fas fa-circle-play f18" style="color:red;"></i> to watch a short video about each <strong>Top Funding source</strong>.</p>
</a>
</div>
<div class="row">
<div class="col-xs-6">
<div class="section_box" style="margin:20px 5px;height:275px;text-align:center;">
<a href="/vx/usa/organizer/" class="section_box_link">
<div class="section_header sicon" style="font-size:18px;">Focus on "Top Apps" First</div>
<div><i class="fas fa-cabinet-filing" style="color:#0844a4;font-size:60px;margin:10px;"></i></div>
<p style="font-size:12px;color:gray;">Organize your favorite applications into each of the following status: Filling Out, Submitted, Denied, or Approved using our Application Organizer.</p>
</a>
</div>
</div>
<div class="col-xs-6">
<div class="section_box" style="margin:20px 5px;height:275px;text-align:center;">
<a href="/vx/usa/calendar/" class="section_box_link">
<div class="section_header sicon" style="font-size:18px;">Check Deadlines</div>
<img src="/vx/usa/calendar/calendar.png" class="center_image" style="width:98px;">
<p style="font-size:12px;color:gray;">There's no number on the limit of grants you can apply for. Apply for as many as you can.</p>
</a>
</div>
</div>
</div>
<?php } else { ?>
<div class="row">
<div style="margin:10px 0px;">
<div class="section_box">
<a href="/vx/usa/givesback/" class="section_box_link">
<div class="section_header sicon">Givesback Registration</div>
<div><img src="/vx/usa/givesback/givesback_black.png" style="width:230px;"></div>
<p style="color:gray;">Register for the Givesback Program by clicking on the following button! <strong><?= $total_givesback;?></strong> has been awarded!</p>
<p style="color:red;font-weight:bold;"><i>Next Award Date: <?= date('M d, Y',strtotime('next monday'));?></p>
<center>
<div><img src="/vx/usa/members/givesback_winners_2x4.png" style="width:100%;" /></div>
<p style="text-align:center;margin-top:10px;padding:5px;border-radius:5px;border:1px solid black;background:#c9f1fd;cursor:pointer;width:150px;"><i>Register for</i><br /><img src="/vx/usa/givesback/givesback_black.png" style="width:110px;" /></p>
</center>
</a>
</div>
</div>
<center style="margin:10px 0px;">
<div class="section_box" style="display:inline-block;vertical-align:top;width:45%;margin:0px 10px;">
<a href="/vx/usa/favorites/" class="section_box_link">
<div class="section_header sicon">Favorite Applications</div>
<center style="margin:10px 0px;">
<i class="fas fa-heart" style="font-size:120px;color:red;"></i>
</center>
<p style="color:gray;">Once you find an application you like, <strong>Favorite it</strong> by clicking on the heart icon. All your favorites are in the Favorites section.</p>
<p style="color:gray;">You can even <strong>see other people's favorites</strong> on the Favorites page.</p>
</a>
</div>
<div class="section_box" style="display:inline-block;vertical-align:top;width:45%;margin:0px 10px;">
<a href="/vx/usa/master/" class="section_box_link">
<div class="section_header sicon">A.I. Answer Vault</div>
<div><img src="/vx/usa/master/ai_logo.png" style="width:98px;" /></div>
<p style="font-size:12px;color:gray;">Most grant and other funding applications ask the same types of questions, but reword them a little differently. Over the years we've gathered, grouped, and stored these questions in our "Master Application Questions Vault." After you unlock it and start answering these questions, your answers are saved for you in a safe and secure location, where ONLY YOU can access them to COPY AND PASTE into applications you want to apply to now and in the future</p>
</a>
</div>
</center>
<center style="margin:10px 0px;">
<div class="section_box" style="display:inline-block;vertical-align:top;width:45%;min-height:330px;margin:0px 10px;">
<a href="/vx/usa/applications/top.php" class="section_box_link">
<div class="section_header sicon">Focus on "Top Apps" First</div>
<div><i class="fas fa-trophy" style="color:#004f63;font-size:100px;margin:13px;"></i></div>
<p style="font-size:13px;color:gray;">Be sure to focus on the <strong>top applications</strong> in each category from our grant research team. These are the application sources you should start applying to FIRST.</p>
<p style="font-size:13px;color:gray;">Each <strong>Top App</strong> has a <strong>"Video Tutorial"</strong> button <i class="fas fa-circle-play f18" style="color:red;"></i> to watch a short video about each <strong>Top Funding source</strong>.</p>
</a>
</div>
<div class="section_box" style="display:inline-block;vertical-align:top;width:45%;min-height:330px;margin:0px 10px;">
<a href="/vx/usa/organizer/" class="section_box_link">
<div class="section_header sicon">App Organizer</div>
<div><i class="fas fa-cabinet-filing" style="color:#0844a4;font-size:96px;margin:10px;"></i></div>
<p style="color:gray;">Organize your favorite applications into each of the following status: Filling Out, Submitted, Denied, or Approved using our Application Organizer.</p>
</a>
</div>
</center>
</div>
<?php } ?>
<?php $welcome_steps = ob_get_clean(); ?>
<?php
ob_start();
?>
<div class="section_box" id="new_funding_applications_box">
<a href="/vx/usa/applications/" class="section_box_link">
<div class="section_header sicon">Database by Category</div>
<p>Click on one of the funding categories to view our newest funding applications. <strong>We have added <?= (!empty($grants_found_in_the_last_30_days)) ? $grants_found_in_the_last_30_days : 0;?> applications in the last month.</strong> See the newest apps and be the first to start applying for them! Deadlines are approaching fast.</p>
</a>
<div class="category_box">
<?php
$main_cats = array();
$res = $db->get_results("SELECT gc.id,gc.category_name,gc.icon,gc.grant_count as c
FROM grdb.grant_categories_new gc
WHERE gc.active=1
AND gc.parent_id=0
GROUP BY gc.id
ORDER BY category_name ASC");
foreach($res as $r) {
$r->count = $r->c;
$main_cats[$r->id] = $r;
}
$cat_colors = array('#5C5CFF','#95AAEF','#ADCDFF','#DADCD1','#FFDE85','#FECA72','#FCBA73','#FE9686','#FF7096','#FF5C8A');
$cat_color_id = -1;
foreach($main_cats as $category) {
$cat_color_id++;
if($cat_color_id >= count($cat_colors)) {
$cat_color_id = 0;
}
$new_link = 'https://'.$_SERVER['SERVER_NAME'].'/vx/usa/applications/?page=1&ct='.$category->id;
?>
<div class="iconItem top" onclick="window.location = '<?= $new_link;?>';">
<div class="aib" style="top:0px; right:0px;">
</div>
<div class="rb top" <?= (strlen($category->category_name) >= 12) ? '' : 'style="padding-top:7px;"';?>>
<table style="width:100%; height:100%">
<tr>
<td class="iconCell">
<div class="iconHolder">
<div>
<?php
if(strpos($category->icon,'fa-')!==false) {
?><i class="<?= $category->icon;?>" style="font-size:42px;color:<?= $cat_colors[$cat_color_id];?>;"></i><?php
} elseif(strpos($category->icon,'glyphicons')!==false) {
?><i class="glyphicons <?= $category->icon;?>" style="font-size:42px;color:<?= $cat_colors[$cat_color_id];?>;"></i><?php
} else {
if(file_exists($_SERVER['DOCUMENT_ROOT'].'/vx/svgs/'.$category->icon.'.svg')) {
include($_SERVER['DOCUMENT_ROOT'].'/vx/svgs/'.$category->icon.'.svg');
}
}
?>
</div>
</div>
</td>
</tr>
<tr>
<td class="displayText">
<div class="text <?= (strlen($category->category_name) >= 16) ? 'long_category_text' : '';?>">
<center>
<?= $category->category_name;?><br />
<span class="f10 italic normal">(<?= number_format($category->count);?>)</span>
</center>
</div>
</td>
</tr>
</table>
</div>
</div>
<?php } ?>
</div>
<a href="/vx/usa/applications/" class="section_box_link">
<center><i class="sicon">Click Here to View All the Categories</i></center>
</a>
</div>
<?php $funding_stuff_box = ob_get_clean(); ?>
<?php ob_start(); ?>
<div class="section_box" id="professional_funding_services_box">
<a href="/vx/usa/professional-grant-services/?autoplay=1" class="section_box_link">
<div class="section_header sicon">Professional Services for Business Funding</div>
<p>Professional Services are available for those looking for money for business, non-profit organizations, community assistance, and real estate projects.</p>
<div class="video">
<img src="https://surfcrm.com/training_calls/videos/usa_professional_services_thumb.png" />
<div id="play_button"><span class="glyphicons glyphicons-play glyphicons-fw f64"></span></div>
</div>
</a>
</div>
<?php $professional_services_box = ob_get_clean(); ?>
<?php ob_start(); ?>
<?php if($phone) { ?>
<div class="row">
<div class="col-xs-6">
<div class="section_box" id="teleseminars_box" style="margin:20px 5px;height:210px;">
<a href="/vx/usa/teleseminars/" class="section_box_link">
<div class="section_header sicon" style="font-size:18px;">Tele-Seminars</div>
<img src="/vx/usa/images/teleseminars.png" class="center_image" style="width:67px;" />
<p style="font-size:12px;text-align:center;">Get help from our <strong>Grant Writer</strong> during our <strong>Weekly Tele-Seminars</strong>.</p>
</a>
</div>
</div>
<div class="col-xs-6">
<div class="section_box" id="calendar_box" style="margin:20px 5px;height:210px;">
<a href="/vx/usa/calendar/" class="section_box_link">
<div class="section_header sicon" style="font-size:14px;">Deadline Calendar</div>
<img src="/vx/usa/calendar/calendar.png" class="center_image" style="width:89px;" />
<p style="font-size:12px;text-align:center;"><strong>Don't miss another deadline!!</strong> Let us keep track of them!</p>
</a>
</div>
</div>
</div>
<div class="row">
<div class="section_box" style="border-color:red;">
<a href="/vx/usa/favorites/" class="section_box_link">
<div class="row">
<div class="col-xs-6">
<i class="fas fa-heart" style="font-size:54px;padding:10px;color:red;"></i>
</div>
<div class="col-xs-6">
<p style="font-size:12px;text-align:center;padding-top:10px;">View your<br /><strong>Favorite Grants</strong><br />all in one place.</p>
</div>
</div>
</a>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<div class="section_box" id="bp_template_box" style="margin:20px 5px;text-align:center;height:210px;">
<a href="/vx/usa/business-plan-template/" class="section_box_link">
<div class="section_header sicon" style="font-size:14px;">Business Plan Template</div>
<img src="/vx/usa/business-plan-template/business-plan-template.png" class="center_image" style="width:78px;" />
<p style="font-size:12px;text-align:center;">Download the Microsoft Word, Excel, & PDF templates.</p>
</a>
</div>
</div>
<div class="col-xs-6">
<div class="section_box" id="calendar_box" style="margin:20px 5px;text-align:center;height:210px;">
<a href="/vx/usa/alerts/" class="section_box_link">
<div class="section_header sicon">Email Alerts</div>
<div class="relative iblock fas fa-bell" style="font-size:54px;padding:20px;"></div>
<p style="font-size:12px;text-align:center;">Get notified weekly on when we post new applications.</p>
</a>
</div>
</div>
</div>
<?php } else { ?>
<center>
<div class="section_box" id="teleseminars_box" style="display:inline-block;vertical-align:top;width:45%;margin:0px 10px;">
<a href="/vx/usa/teleseminars/" class="section_box_link">
<div class="section_header sicon">Tele-Seminars</div>
<div class="section_subheader sicon">with a grant writer</div>
<img src="/vx/usa/images/teleseminars.png" class="center_image" style="margin:19px auto;" />
<p>Get live help from our Grant Experts every Tuesday & Thursday evening. During each 60-Minute tele-seminar, you will learn "How to Research" & "How to fill out the Applications", & "How to Properly Apply"</p>
</a>
</div>
<div class="section_box" id="calendar_box" style="display:inline-block;vertical-align:top;width:45%;margin:0px 10px;">
<a href="/vx/usa/calendar/" class="section_box_link">
<div class="section_header sicon">Grant Deadline Calendar</div>
<img src="/vx/usa/calendar/calendar.png" class="center_image" />
<p><strong>Don't miss another deadline!!</strong></p>
<p>Let our Grant Deadline Calendar help keep track of the upcoming deadlines so you won't be caught unprepared. New Grant Sources are being added all the time. Check back often to view new deadlines. Remember, NEW Sources are being added all the time!</p>
</a>
</div>
</center>
<?php } ?>
<?php $teleseminars_and_calendar_box = ob_get_clean(); ?>
<?php ob_start(); ?>
<?php if($phone) { ?>
<div class="row">
<div class="col-xs-6">
<div class="section_box" id="funding_found_recently" style="border-color:#4d7a34;margin:20px 5px;height:226px;">
<a href="/vx/usa/applications/" class="section_box_link">
<?php
$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-7 day'))." 00:00:00'");
$last_7_days = $gs[0]->c;
$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-30 day'))." 00:00:00'");
$last_30_days = $gs[0]->c;
$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-90 day'))." 00:00:00'");
$last_90_days = $gs[0]->c;
?>
<div style="max-width:230px;margin:0px auto;text-align:right;">
<center><div style="font-size:18px;font-weight:bold;color:#4d7a34;">Applications Added To Database</div></center>
<?php if($last_7_days >= 50) { ?>
<div style="font-size:14px;color:#5125ad;">Last <strong>7</strong> Days: <strong><?= number_format($last_7_days);?></strong></div>
<?php } ?>
<div style="font-size:14px;color:#d68226;">Last <strong>30</strong> Days: <strong><?= number_format($last_30_days);?></strong></div>
<div style="font-size:14px;color:#4d7a34;">Last <strong>90</strong> Days: <strong><?= number_format($last_90_days);?></strong></div>
</div>
<br />
<center><i>Click to View Database</i></center>
</a>
</div>
</div>
<div class="col-xs-6">
<div class="section_box" id="givesback_box" style="border-color:#c0392b;margin:20px 5px;height:226px;">
<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:5px 0px 9px 0px;" /></div>
<div class="f14"><strong>WEEKLY CASH AWARDS<br />$250 - $1,000</strong></div>
</center>
<br />
<center><i>Click to Enter</i></center>
</a>
</div>
</div>
</div>
<?php } else { ?>
<div class="section_box" id="givesback_box" style="border-color:#c0392b;">
<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>
<?php
$total_amount = 0;
$tres = $db->get_results("SELECT SUM(amount) as total_amount
FROM grdb.givesback_winners
WHERE money_sent<>'0000-00-00 00:00:00'");
$total_amount = $tres[0]->total_amount;
?>
<div style="font-size:14px;color:red;font-weight:bold;">Total Awarded: $<?= number_format($total_amount);?></div>
<?php $next_date = date('M d, Y',strtotime('next monday'));?>
<div style="font-size:14px;color:red;font-weight:bold;">Next Award: <?= $next_date;?></div>
</center>
<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <strong>Weekly Cash Awards</strong></div>
<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <strong>Favorite 3 Grants to Qualify</strong></div>
<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <strong><?= $total_givesback;?> has been Awarded</strong></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>
<div style="font-size:12px;margin-top:20px;text-align:center;">
<img src="/vx/usa/members/givesback_winners_3x3.png" style="width:100%;" />
</div>
<br />
<center><i>Click to Enter</i></center>
</a>
</div>
<?php } ?>
<?php $givesback_box = ob_get_clean(); ?>
<?php ob_start(); ?>
<div class="section_box" id="funding_found_recently" style="border-color:#4d7a34;">
<a href="/vx/usa/applications/" class="section_box_link">
<?php
$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-7 day'))." 00:00:00'");
$last_7_days = $gs[0]->c;
$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-30 day'))." 00:00:00'");
$last_30_days = $gs[0]->c;
$gs = $db->get_results("SELECT COUNT(*) as c,SUM(amount) as s FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-90 day'))." 00:00:00'");
$last_90_days = $gs[0]->c;
$last_90_days_money = $gs[0]->s;
$gs = $db->get_results("SELECT SUM(amount) as s FROM grdb.grd_grants WHERE deadline='0000-00-00' OR deadline >= CURDATE()");
$all_grants_money = $gs[0]->s;
?>
<div style="max-width:230px;margin:0px auto;text-align:right;">
<center><div style="font-size:22px;text-decoration:underline;font-weight:bold;color:#4d7a34;">Applications Added</div></center>
<?php if($last_7_days >= 50) { ?>
<div style="font-size:18px;color:#5125ad;">Last <strong>7</strong> Days: <strong><?= number_format($last_7_days);?></strong></div>
<?php } ?>
<div style="font-size:18px;color:#d68226;">Last <strong>30</strong> Days: <strong><?= number_format($last_30_days);?></strong></div>
<div style="font-size:18px;color:#4d7a34;">Last <strong>90</strong> Days: <strong><?= number_format($last_90_days);?></strong></div>
</div>
<div style="font-size:15px;color:black;margin:20px 0px;text-align:center;">
<div>Total $$ in Last <strong>90</strong> Days: <strong>$<?= number_format($last_90_days_money);?></strong></div>
<div>Total $$ in Database: <strong>$<?= number_format($all_grants_money);?></strong></div>
</div>
<center><i>Click to View Database</i></center>
</a>
</div>
<?php $applications_added_box = ob_get_clean(); ?>
<?php
if(strtotime($date_ordered) < strtotime('2022-02-18 15:30:00')) {
$is_a_lead = false;
$a_cats = array('1','3','5');
$cat_res = $db->query("SELECT p.profile_category_id
FROM lc2{$siteCode}_lc.lead_profile p
LEFT JOIN lc2{$siteCode}_lc.lc_leads l ON l.id=p.lead_id
WHERE l.customerID='{$user}'");
if(!empty($cat_res)) {
if(in_array($siteCode,array('nusaf','usagaorg','usft'))) {
if(in_array($cat_res[0]['profile_category_id'],array('8','13','2'))) {
$cat_res[0]['profile_category_id'] = '1';
} elseif(in_array($cat_res[0]['profile_category_id'],array('15'))) {
$cat_res[0]['profile_category_id'] = '2';
} elseif(in_array($cat_res[0]['profile_category_id'],array('11'))) {
$cat_res[0]['profile_category_id'] = '6';
} elseif(in_array($cat_res[0]['profile_category_id'],array('10','17','14','12','18'))) {
$cat_res[0]['profile_category_id'] = '4';
}
}
if(in_array($cat_res[0]['profile_category_id'],$a_cats)) {
$is_a_lead = true;
}
}
if($is_a_lead) {
$is_businessy = true;
} else {
$is_businessy = false;
}
}
//if($is_businessy) {
//10/25/2022 always show the professional services box
//12/01/2022 show the funding box on top of the professional services box
//01/05/2023 went back to businessy ones showing jason first
//01/19/2023 Jason always on top
//}
/*if($is_businessy) {
echo $professional_services_box;
echo $funding_stuff_box;
} else {
echo $funding_stuff_box;
echo $professional_services_box;
}*/
if($phone) {
//if($is_businessy) {
echo $professional_services_box;
//}
echo $funding_stuff_box;
echo $welcome_steps;
//echo $applications_added_box;
echo $givesback_box;
echo $teleseminars_and_calendar_box;
?>
<center>
<div style="margin:10px 0px;">
<div style="display:flex;flex-direction:row;width:100%;margin:10px 0px;">
<div style="flex:50%;"><a href="/vx/usa/grant-writing/top-ten-tips/" style="display:block;border-radius:10px;width:150px;padding:10px 5px;text-align:center;color:white;background:#00045d;">Top 10 Tips</a></div>
<div style="flex:50%;"><a href="/vx/usa/grant-writing/how-to-apply-for-a-grant/" style="display:block;border-radius:10px;width:150px;padding:10px 5px;text-align:center;color:white;background:#00045d;">How to Apply</a></div>
</div>
<div style="display:flex;flex-direction:row;width:100%;margin:10px 0px;">
<div style="flex:50%;"><a href="/vx/usa/grant-writing/how-to-research/" style="display:block;border-radius:10px;width:150px;padding:10px 5px;text-align:center;color:white;background:#00045d;">How to Research</a></div>
<div style="flex:50%;"><a href="/vx/usa/grant-writing/submitting-proposals/" style="display:block;border-radius:10px;width:150px;padding:10px 5px;text-align:center;color:white;background:#00045d;">How to Submit</a></div>
</div>
<div style="display:flex;flex-direction:row;width:100%;margin:10px 0px;">
<div style="flex:50%;"><a href="/vx/usa/grant-writing/winning-proposals/" style="display:block;border-radius:10px;width:150px;padding:10px 5px;text-align:center;color:white;background:#00045d;">Winning Proposals</a></div>
<div style="flex:50%;"><a href="/vx/usa/grant-writing/after-submitting/" style="display:block;border-radius:10px;width:150px;padding:10px 5px;text-align:center;color:white;background:#00045d;">After Submitting</a></div>
</div>
</div>
<div class="section_box" id="course_box" style="display:inline-block;vertical-align:top;border-color:#bb285c;background:#fde9f0;<?= ($phone) ? '' : 'width:45%;margin:0px 10px;';?>">
<a href="/vx/usa/course/" class="section_box_link">
<div style="display:inline-block;vertical-align:top;width:39%;color:#bb285c;">
<div class="section_header sicon" style="color:#bb285c;">Training Courses</div>
<div class="relative iblock fas fa-person-running" style="font-size:54px;padding:10px;"></div>
<div><i>Click to Start</i></div>
</div>
<div style="display:inline-block;vertical-align:top;width:59%;padding-top:10px;text-align:left;">
<div style="margin:5px 0px;">- Business</div>
<div style="margin:5px 0px;">- Education</div>
<div style="margin:5px 0px;">- First Time Home</div>
<div style="margin:5px 0px;">- Real Estate</div>
<div style="margin:5px 0px;">- Personal Assistance</div>
</div>
</a>
</div>
<div class="item rib center-center pointer" style="margin-right:12px; top:-2px" onclick="load_feedback_form();" title="Ask a question">
<div><span class="fas fa-circle-question f26"></span></div>
<div>Support</div>
</div>
<div style="margin-bottom:10px;">
<a href="tel:<?= $_SESSION['site_phone'];?>" title="Call us now at <?= phone_number($_SESSION['site_phone']);?>">
<?= phone_number($_SESSION['site_phone']);?>
</a>
</div>
</center>
<?php
} else {
//if($is_businessy) {
echo $professional_services_box;
//}
echo $funding_stuff_box;
echo $welcome_steps;
echo $teleseminars_and_calendar_box;
}
?>
</div>
<div class="col-sm-4">
<?php if(!$phone) {
echo $vault_html;
echo $applications_added_box;
echo $givesback_box;
} ?>
<?php /*
<div class="section_box" id="coronavirus_box">
<a href="/vx/usa/coronavirus/" class="section_box_link">
<img src="/vx/usa/images/covid19.png" class="center_image" />
<div class="section_header sicon">Coronavirus<br />COVID-19<br />Assistance</div>
</a>
</div>
*/ ?>
<div class="section_box" id="rate_my_site_box" style="border-color:#47817d;">
<center><a href="#testimonial" onclick="load_testimonial_form(); return false;"><img src="/vx/usa/members/testimonial_header.png" style="width:100%;cursor:pointer;" title="Rate the Site" /><div style="margin-top:10px;">Rate Our Site</div></a></center>
</div>
<?php /*
<div style="margin:10px 0px;">
<center><a href="https://starfishteams.com/Team007/" target="_blank"><img src="/vx/usa/members/starfishteams.png" style="cursor:pointer;" title="Starfish Teams" /></a></center>
</div>
*/ ?>
<?php /*
<?php
if(!empty($user)) {
$is_there = $db->get_results("SELECT id
FROM asap_leads.assetprotectionasap_impressions
WHERE site_code='".$db->clean($siteCode)."'
AND client_id='".$db->clean($user)."'
AND ts >= '".date('Y-m-d H:i:s',strtotime('-5 minute'))."'
LIMIT 1");
if(empty($is_there)) {
//$ab = rand(0,1);
$ab = 0;
if($ab==0) {
$real_ab = 'a';
} else {
$real_ab = 'b';
}
$db->query("INSERT INTO asap_leads.assetprotectionasap_impressions
(
site_code
,client_id
,ab_testing
,ip_address
,ts
) VALUES (
'".$db->clean($siteCode)."'
,'".$db->clean($user)."'
,'".$db->clean($real_ab)."'
,'".$db->clean($_SERVER['REMOTE_ADDR'])."'
,NOW()
)");
}
}
?>
<div class="section_box" id="assetprotectionasap_box">
<?php if($ab==0) { ?>
<center>
<a href="https://assetprotectionasap.com/?ab=a" target="_blank" rel="nofollow" class="section_box_link">
<div class="section_header sicon" style="color:black;font-family:Helvetica;font-size:26px;font-weight:normal;">Who will make <strong>YOUR</strong> medical decisions when you can't?</div>
<img src="https://assetprotectionasap.com/images/DriversSeat.gif" style="width:100%;" class="center_image" />
<p style="color:black;font-family:Helvetica;font-size:26px;font-weight:bold;">Decide Now!</p>
</a>
</center>
<?php } elseif($ab==1) { ?>
<center>
<a href="https://assetprotectionasap.com/?ab=b" target="_blank" rel="nofollow" class="section_box_link">
<img src="https://assetprotectionasap.com/images/DriversSeat.jpg" style="width:100%;" class="center_image" />
</a>
</center>
<?php } else { ?>
<center>
<a href="https://assetprotectionasap.com/" target="_blank" rel="nofollow" class="section_box_link">
<div class="section_header sicon" style="color:#0c45a2;font-family:Helvetica;font-size:30px;font-weight:normal;">Got Assets<br />to Protect?</div>
<img src="https://assetprotectionasap.com/images/logo_bigger.png" class="center_image" />
<p style="color:#0c45a2;font-family:Helvetica;font-size:16px;">Click here to learn<br />how to protect them</p>
</a>
</center>
<?php } ?>
</div>
<?php */ ?>
</div>
</div>
</div>
<?php
//have they ever submitted the testimonial
$num_logins = $db->get_results("SELECT id FROM lc2admin.usa_testimonials
WHERE site_code='".$db->clean($siteCode)."'
AND client_id='".$db->clean($user)."'");
if(empty($num_logins)) {
$num_logins_when_shown = 0;
$num_logins = $db->get_results("SELECT COUNT(*) as c FROM lc2{$siteCode}_lc.lc_logins WHERE lead_id='".$db->clean($user)."'");
if(!empty($num_logins)) {
$num_logins_when_shown = $num_logins[0]->c;
}
if($num_logins_when_shown >= 3 && $num_logins_when_shown % 3 == 0) {
$popups_seen = 0;
$popup_seen_res = $db->get_results("SELECT COUNT(*) as c FROM lc2admin.usa_testimonials_impressions WHERE site_code='".$db->clean($siteCode)."' AND client_id='".$db->clean($user)."' ORDER BY ts DESC LIMIT 1");
if(!empty($popup_seen_res)) {
$popups_seen = $popup_seen_res[0]->c;
}
if($popups_seen < 5) {
$db->query("INSERT INTO lc2admin.usa_testimonials_impressions
(
site_code
,client_id
,ts
,num_logins_when_shown
) VALUES (
'".$db->clean($siteCode)."'
,'".$db->clean($user)."'
,NOW()
,'".$db->clean($num_logins_when_shown)."'
)");
include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/rate_the_site.php');
}
}
}
/*if($_SESSION['email']=='demo@demo.com') {
include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/tour.php');
}*/
if(empty($_SESSION['showed_tour'])) {
$num_logins = $db->get_results("SELECT COUNT(*) as c FROM lc2{$siteCode}_lc.lc_logins WHERE lead_id='".$db->clean($user)."'");
$show_tour = 0;
if(empty($num_logins)) {
$show_tour = 1;
} elseif($num_logins[0]->c*1<=1) {
$show_tour = 1;
}
if($show_tour) {
include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/tour.php');
}
}
/*if(!empty($_GET['retake_tour'])) {
include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/tour.php');
}*/
?>
<?
$body = ob_get_clean();
$title = "Home : ".$_SESSION['site_name'];
include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/layout/non_angular_layout.php');
?>