| 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';
$total_givesback_count = 200;
$tres = $db->get_results("SELECT COUNT(*) as total_count,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);
$total_givesback_count = $tres[0]->total_count;
//check if they are already entered in the givesback entered table
$givesback_entered = false;
//check if all steps are done, and put them in the givesback entered if so
$res = $db->get_results("SELECT ts FROM grdb.givesback_entered
WHERE site_code='".$db->clean($siteCode)."'
AND client_id='".$db->clean($user)."'");
if(!empty($res)) {
$givesback_entered = true;
}
$givesback_won = false;
$res = $db->get_results("SELECT date_picked,amount,money_sent FROM grdb.givesback_winners
WHERE site_code='".$db->clean($siteCode)."'
AND client_id='".$db->clean($user)."'");
if(!empty($res)) {
$givesback_won = true;
$givesback_won_date = date('M, j, Y',strtotime($res[0]->date_picked));
$givesback_won_amount = $res[0]->amount;
$givesback_won_money_sent = $res[0]->money_sent;
}
$givesback_next_awards = array();
$res = $db->get_results("SELECT winner_date,winner_amount
FROM grdb.givesback_new_winners
WHERE 1 ORDER BY winner_date ASC");
if(!empty($res)) {
foreach($res as $r) {
$givesback_next_awards[] = $r;
}
}
// Get database stats
$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;
// Get main categories
$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;
}
?>
<link rel="stylesheet" href="index-Pr3IhY4a.css">
<style>
/* Additional custom styles for tool cards and other elements */
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
}
.tool-card {
background: white;
border: 2px solid transparent;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
cursor: pointer;
text-decoration: none;
color: inherit;
}
.tool-card:hover {
border-color: #22c55e;
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
transform: translateY(-2px);
}
.tool-icon {
width: 56px;
height: 56px;
background: #f0fdf4;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}
.tool-icon svg {
width: 28px;
height: 28px;
}
.categories-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin: 2rem 0;
}
.category-card {
background: white;
border: 2px solid transparent;
border-radius: 12px;
padding: 1.5rem;
text-align: center;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
cursor: pointer;
text-decoration: none;
color: inherit;
}
.category-card:hover {
border-color: #22c55e;
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
transform: translateY(-2px);
}
.category-icon {
width: 40px;
height: 40px;
margin: 0 auto 1rem;
color: #22c55e;
}
.stats-overview {
background: white;
border-radius: 12px;
padding: 2rem;
margin: 2rem 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin: 1.5rem 0;
}
.stat-box {
text-align: center;
padding: 1rem;
}
.stat-number {
font-size: 1.5rem;
font-weight: bold;
color: #22c55e;
margin-bottom: 0.5rem;
}
.stat-label {
font-size: 0.875rem;
color: #6b7280;
}
.search-box {
max-width: 400px;
margin: 0 auto 2rem;
}
.search-input {
width: 100%;
padding: 0.75rem 1rem 0.75rem 2.5rem;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 1rem;
background: white;
}
.search-icon {
width: 1.5rem;
position: absolute;
left: 0.75rem;
top: 50%;
transform: translateY(-50%);
color: #6b7280;
pointer-events: none;
z-index: 10;
}
.search-wrapper {
position: relative;
}
.search-wrapper:focus-within .search-icon {
color: #22c55e;
}
.tool-icon {
float:left;
margin-right:10px;
}
.stat-box .stat-number {
font-size:2.5rem;
}
.stat-box .stat-label {
font-size:1.25rem;
}
.stats-grid {
grid-template-columns: repeat(auto-fit, 23%);
}
.countdown-timer {
margin-bottom:10px;
}
.countdown-timer .text-lg, .countdown-timer .text-xs, .countdown-timer .text-sm {
font-size:12px;
}
.max-w-7xl {
max-width:112rem;
}
.min-h-400px {
min-height:350px;
}
.grid-cols-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mobile_version_only {
display:none !important;
}
@media only screen and (max-width: 960px) {
.stats-grid {
grid-template-columns: repeat(auto-fit, 47%);
}
}
@media only screen and (max-width: 650px) {
.categories-grid {
grid-template-columns: repeat(auto-fit, 47%);
}
.w-4 {
width:1.5rem;
}
.h-4 {
height:1.5rem;
}
.w-8 {
width:3rem;
}
.h-8 {
height:3rem;
}
.mobile_version_only {
display:block !important;
}
.desktop_version_only {
display:none !important;
}
}
</style>
<div id="root">
<div id="real_members_home_container" class="container mx-auto px-4 py-8 space-y-12">
<?php if(true /*$is_businessy*/) { ?>
<!-- Professional Services Video -->
<a href="/vx/usa/professional-grant-services/?autoplay=1" class="desktop_version_only">
<div class="tool-card" style="grid-column: 1 / -1; border-color: #f59e0b;max-width:1120px;margin:0px auto;">
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center;">
<div style="position: relative;max-width:400px;">
<img src="https://surfcrm.com/training_calls/videos/usa_professional_services_thumb.png" alt="Professional Grant Writing Services Video" style="width: 100%; height: auto; border-radius: 8px;">
<div style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;">
<div style="width: 64px; height: 64px; background: rgba(245, 158, 11, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;">
<div style="width: 0; height: 0; border-left: 20px solid white; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 4px;"></div>
</div>
</div>
</div>
<div style="space-y: 1rem;">
<div style="display: flex; align-items: center; gap: 0.5rem;">
<svg style="width: 42px; height: 42px; color: #f59e0b;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<h3 class="text-2xl font-bold" style="font-size:2rem;">Professional Services for Business Funding</h3>
</div>
<p style="color: #6b7280; font-size: 1.25rem; line-height: 1.6;">Professional grant writing services for business, non-profit, and real estate projects.</p>
<button style="border: 1px solid #d1d5db; background: white; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.3s ease;">
Watch Video & Learn More
</button>
</div>
</div>
</div>
</a>
<a href="/vx/usa/professional-grant-services/?autoplay=1" class="mobile_version_only">
<div class="tool-card" style="border-color: #f59e0b;margin:0px auto;">
<div style="display: block; text-align:center;">
<div style="position: relative;width:100%;">
<img src="https://surfcrm.com/training_calls/videos/usa_professional_services_thumb.png" alt="Professional Grant Writing Services Video" style="width: 100%; height: auto; border-radius: 8px;">
<div style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;">
<div style="width: 64px; height: 64px; background: rgba(245, 158, 11, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;">
<div style="width: 0; height: 0; border-left: 20px solid white; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 4px;"></div>
</div>
</div>
</div>
<div style="margin-top:20px;">
<div style="display: flex; align-items: center; gap: 0.5rem;text-align:left;">
<svg style="width: 42px; height: 42px; color: #f59e0b;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<h3 class="text-2xl font-bold" style="font-size:2rem;">Professional Services for Business Funding</h3>
</div>
<p style="color: #6b7280; font-size: 1.25rem; line-height: 1.6;">Professional grant writing services for business, non-profit, and real estate projects.</p>
<button style="border: 1px solid #d1d5db; background: white; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.3s ease;">
Watch Video & Learn More
</button>
</div>
</div>
</div>
</a>
<?php } ?>
<?php if(empty($givesback_won) && empty($givesback_entered)) { ?>
<!-- Givesback Hero Section -->
<section class="text-center space-y-6 px-2 sm:px-0">
<a href="/vx/usa/givesback/">
<div class="rounded-lg bg-card text-card-foreground max-w-7xl mx-auto border-2 border-primary/20 shadow-xl bg-gradient-to-br from-card to-primary/5 hover:shadow-2xl transition-all duration-300 cursor-pointer group">
<div class="p-4 sm:p-6 lg:p-8">
<div class="countdown-timer">
<div class="bg-gradient-to-r from-red-500 to-red-600 text-white py-3 px-4 text-center animate-fade-in">
<div class="max-w-6xl mx-auto flex items-center justify-center gap-4 flex-wrap">
<div class="flex items-center gap-2">
<i class="fas fa-clock h-5 w-5 animate-pulse"></i>
<span class="font-semibold">Next Weekly Award in:</span>
</div>
<div class="flex items-center gap-1 text-sm sm:text-base">
<div class="bg-white/20 rounded px-2 py-1 min-w-3rem text-center">
<div class="font-bold text-lg leading-tight countdown-number" id="days">5</div>
<div class="text-xs uppercase tracking-wide opacity-90">Days</div>
</div>
<span class="text-xl font-bold mx-1">:</span>
<div class="bg-white/20 rounded px-2 py-1 min-w-3rem text-center">
<div class="font-bold text-lg leading-tight countdown-number" id="hours">22</div>
<div class="text-xs uppercase tracking-wide opacity-90">Hours</div>
</div>
<span class="text-xl font-bold mx-1">:</span>
<div class="bg-white/20 rounded px-2 py-1 min-w-3rem text-center">
<div class="font-bold text-lg leading-tight countdown-number" id="minutes">42</div>
<div class="text-xs uppercase tracking-wide opacity-90">Min</div>
</div>
<span class="text-xl font-bold mx-1">:</span>
<div class="bg-white/20 rounded px-2 py-1 min-w-3rem text-center">
<div class="font-bold text-lg leading-tight animate-pulse countdown-number" id="seconds">36</div>
<div class="text-xs uppercase tracking-wide opacity-90">Sec</div>
</div>
</div>
<span class="text-sm font-medium bg-white/20 rounded-full px-3 py-1">
🎯 Don't miss out!
</span>
</div>
</div>
</div>
<div class="grid lg:grid-cols-3 gap-6 lg:gap-8 items-start">
<div class="lg:col-span-2 text-left space-y-4 sm:space-y-6">
<div>
<h1 class="text-3xl sm:text-4xl lg:text-5xl xl:text-6xl font-bold text-foreground mb-3 sm:mb-4 lg:mb-6 leading-tight break-words">🎉
<span class="text-green-600">Givesback Awards:</span>
<br>Win Up to
<span class="text-green-600 text-4xl sm:text-5xl lg:text-6xl xl:text-7xl">$1,000</span>
Weekly!</h1>
<p class="text-base sm:text-lg lg:text-xl xl:text-2xl text-muted-foreground mb-4 sm:mb-6 lg:mb-8 font-medium">The USA Givesback Cash Award Program rewards members each week with cash awards to help clients achieve funding goals. <strong>To become eligible</strong>, simply search the grant database, select and <strong>“heart” three favorite grants</strong>, and <strong>verify your contact information</strong>. Winners are notified by email and text and featured on the website.</p>
</div>
<div class="grid grid-cols-<?= (count($givesback_next_awards)>1) ? '4' : '3';?> gap-2 sm:gap-4 lg:gap-6 mb-4 sm:mb-6">
<div class="text-center">
<div class="w-8 h-8 sm:w-10 sm:h-10 lg:w-12 lg:h-12 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-dollar-sign w-4 h-4 sm:w-5 sm:h-5 lg:w-6 lg:h-6 text-green-600">
<line x1="12" x2="12" y1="2" y2="22"></line>
<path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>
</svg>
</div>
<div class="sm:text-2xl lg:text-3xl font-bold text-green-600"><?= $total_givesback;?></div>
<div class="sm:text-sm text-muted-foreground">Total Awarded</div>
</div>
<div class="text-center">
<div class="w-8 h-8 sm:w-10 sm:h-10 lg:w-12 lg:h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users w-4 h-4 sm:w-5 sm:h-5 lg:w-6 lg:h-6 text-blue-600">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
</div>
<div class="sm:text-2xl lg:text-3xl font-bold text-blue-600"><?= $total_givesback_count;?></div>
<div class="sm:text-sm text-muted-foreground">Happy Winners</div>
</div>
<div class="text-center">
<div class="w-8 h-8 sm:w-10 sm:h-10 lg:w-12 lg:h-12 bg-orange-100 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar w-4 h-4 sm:w-5 sm:h-5 lg:w-6 lg:h-6 text-orange-600">
<path d="M8 2v4"></path>
<path d="M16 2v4"></path>
<rect width="18" height="18" x="3" y="4" rx="2"></rect>
<path d="M3 10h18"></path>
</svg>
</div>
<div class="sm:text-2xl lg:text-3xl font-bold text-orange-600"><?= date('M d', strtotime($givesback_next_awards[0]->winner_date));?></div>
<div class="sm:text-sm text-muted-foreground">Next Award</div>
<div class="font-bold text-green-600">$<?= number_format($givesback_next_awards[0]->winner_amount);?></div>
</div>
<?php if(count($givesback_next_awards)>1) { ?>
<div class="text-center">
<div class="w-8 h-8 sm:w-10 sm:h-10 lg:w-12 lg:h-12 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-1 sm:mb-2">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar w-4 h-4 sm:w-5 sm:h-5 lg:w-6 lg:h-6 text-purple-600">
<path d="M8 2v4"></path>
<path d="M16 2v4"></path>
<rect width="18" height="18" x="3" y="4" rx="2"></rect>
<path d="M3 10h18"></path>
</svg>
</div>
<div class="sm:text-2xl lg:text-3xl font-bold text-purple-600"><?= date('M d', strtotime($givesback_next_awards[1]->winner_date));?></div>
<div class="sm:text-sm text-muted-foreground">Upcoming</div>
<div class="font-bold text-green-600">$<?= number_format($givesback_next_awards[1]->winner_amount);?></div>
</div>
<?php } ?>
</div>
<div class="text-center">
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 h-10 bg-green-600 hover:bg-green-700 hover:scale-105 text-white px-4 sm:px-6 lg:px-8 py-2 sm:py-3 text-sm sm:text-base lg:text-lg font-medium group w-full sm:w-auto min-h-[44px] transition-all duration-300">
<span>Get Started with Givesback Awards</span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right w-4 h-4 sm:w-5 sm:h-5 ml-2 group-hover:translate-x-2 transition-transform duration-300">
<path d="M5 12h14"></path>
<path d="m12 5 7 7-7 7"></path>
</svg>
</button>
</div>
</div>
<div class="lg:col-span-1 flex justify-center mt-4 sm:mt-6 lg:mt-0">
<div class="relative h-full w-full min-h-400px overflow-hidden">
<div class="absolute bg-blue-600 text-white px-2 sm:px-3 py-0.5 sm:py-1 rounded-full text-sm font-semibold" style="z-index:2;top:.5rem;right:.5rem;">$1,000 Winner</div>
<img src="https://surfcrm.com/bin/ajax/load_file_from_amazon_open.php?file=givesback_winners%2Fwinner_171.jpg" alt="Natacha D - $1,000 Givesback Winner" class="absolute inset-0 w-full h-full object-cover">
</div>
</div>
</div>
</div>
</div>
</a>
</section>
<hr style="border: none; height: 1px; background: #e5e7eb; margin: 3rem 0;">
<?php } ?>
<!-- Grant Seeker Tools Section -->
<section class="space-y-8">
<div class="text-center space-y-4">
<h2 class="text-3xl lg:text-4xl font-bold">🚀 Grant Seeker Tools</h2>
<p class="text-lg lg:text-xl text-muted-foreground max-w-2xl mx-auto">
Essential tools to get you started with grant applications
</p>
</div>
<div class="tools-grid">
<a href="/vx/usa/favorites/" class="tool-card">
<div class="tool-icon" style="background: rgba(239, 68, 68, 0.1);">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="color: #ef4444;">
<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"></path>
</svg>
</div>
<h3 class="tracking-tight text-xl font-bold group-hover:text-primary transition-colors duration-300">Favorite Applications</h3>
<p class="text-muted-foreground text-base leading-relaxed">Click the heart to favorite applications. View yours—and others'—in the Favorites section.</p>
</a>
<a href="/vx/usa/organizer/" class="tool-card">
<div class="tool-icon" style="background: rgba(59, 130, 246, 0.1);">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="color: #3b82f6;">
<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path>
<path d="M14 2v4a2 2 0 0 0 2 2h4"></path>
<path d="M10 9H8"></path>
<path d="M16 13H8"></path>
<path d="M16 17H8"></path>
</svg>
</div>
<h3 class="tracking-tight text-xl font-bold group-hover:text-primary transition-colors duration-300">Application Organizer</h3>
<p class="text-muted-foreground text-base leading-relaxed">Keep your grants organized—update stages, track progress, and view all favorites anytime.</p>
</a>
<a href="/vx/usa/calendar/" class="tool-card">
<div class="tool-icon" style="background: rgba(245, 158, 11, 0.1);">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="color: #f59e0b;">
<path d="M8 2v4"></path>
<path d="M16 2v4"></path>
<rect width="18" height="18" x="3" y="4" rx="2"></rect>
<path d="M3 10h18"></path>
</svg>
</div>
<h3 class="tracking-tight text-xl font-bold group-hover:text-primary transition-colors duration-300">Deadline Calendar</h3>
<p class="text-muted-foreground text-base leading-relaxed">Never miss a deadline. Track all your grant application deadlines in one place.</p>
</a>
<a href="/vx/usa/teleseminars/" class="tool-card">
<div class="tool-icon" style="background: rgba(168, 85, 247, 0.1);">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="color: #a855f7;">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
</div>
<h3 class="tracking-tight text-xl font-bold group-hover:text-primary transition-colors duration-300">Grant Writer Teleseminars</h3>
<p class="text-muted-foreground text-base leading-relaxed">Weekly teleseminars with a grant writer plus around-the-clock email support.</p>
</a>
<a href="/vx/usa/applications/top.php" class="tool-card">
<div class="tool-icon" style="background: rgba(234, 179, 8, 0.1);">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="color: #eab308;">
<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"></path>
<path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"></path>
<path d="M4 22h16"></path>
<path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"></path>
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"></path>
<path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"></path>
</svg>
</div>
<h3 class="tracking-tight text-xl font-bold group-hover:text-primary transition-colors duration-300">Top Applications</h3>
<p class="text-muted-foreground text-base leading-relaxed">Apply first to these top sources. View tutorials or see all funding options for this category.</p>
</a>
<a href="/vx/usa/master/" class="tool-card">
<div class="tool-icon" style="background: rgba(99, 102, 241, 0.1);">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="color: #6366f1;">
<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse>
<path d="M3 5V19A9 3 0 0 0 21 19V5"></path>
<path d="M3 12A9 3 0 0 0 21 12"></path>
</svg>
</div>
<h3 class="tracking-tight text-xl font-bold group-hover:text-primary transition-colors duration-300">AI Application Questions Vault</h3>
<p class="text-muted-foreground text-base leading-relaxed">One vault, all your answers — ready for any funding application, anytime.</p>
</a>
</div>
<?php if(false /*!$is_businessy*/) { ?>
<!-- Professional Services Video -->
<a href="/vx/usa/professional-grant-services/?autoplay=1" style="display:block;">
<div class="tool-card" style="grid-column: 1 / -1; border-color: #f59e0b;max-width:685px;margin:0px auto;">
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center;">
<div style="position: relative;max-width:250px;">
<img src="https://surfcrm.com/training_calls/videos/usa_professional_services_thumb.png" alt="Professional Grant Writing Services Video" style="width: 100%; height: auto; border-radius: 8px;">
<div style="position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;">
<div style="width: 64px; height: 64px; background: rgba(245, 158, 11, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;">
<div style="width: 0; height: 0; border-left: 20px solid white; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 4px;"></div>
</div>
</div>
</div>
<div style="space-y: 1rem;">
<div style="display: flex; align-items: center; gap: 0.5rem;">
<svg style="width: 28px; height: 28px; color: #f59e0b;" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M22 21v-2a4 4 0 0 0-3-3.87"></path>
<path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
</svg>
<h3 class="text-2xl font-bold">Professional Services for Business Funding</h3>
</div>
<p style="color: #6b7280; font-size: 1.125rem; line-height: 1.6;">Professional grant writing services for business, non-profit, and real estate projects.</p>
<button style="border: 1px solid #d1d5db; background: white; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; transition: all 0.3s ease;">
Watch Video & Learn More
</button>
</div>
</div>
</div>
</a>
<?php } ?>
</section>
<hr style="border: none; height: 1px; background: #e5e7eb; margin: 3rem 0;">
<!-- Funding Categories Section -->
<section class="space-y-8">
<div class="text-center space-y-4">
<h2 class="text-3xl lg:text-4xl font-bold">Browse Funding Categories</h2>
<p class="text-lg lg:text-xl text-muted-foreground max-w-2xl mx-auto">
Over 26 billion dollars in funding opportunities
</p>
<div class="search-box">
<form action="/vx/usa/search/" method="GET" class="search-wrapper">
<input type="hidden" name="page" value="0">
<input type="hidden" name="submit" value="submit">
<svg class="search-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.3-4.3"></path>
</svg>
<input type="text" name="search" class="search-input" placeholder="Search funding categories..." aria-label="Search funding categories" required>
</form>
</div>
</div>
<div class="stats-overview">
<div class="stats-grid">
<div class="stat-box">
<div class="stat-number" style="color: #8b5cf6;"><?= number_format($last_7_days);?></div>
<div class="stat-label">Applications Added<br>Last 7 Days</div>
</div>
<div class="stat-box">
<div class="stat-number" style="color: #f59e0b;"><?= number_format($last_30_days);?></div>
<div class="stat-label">Applications Added<br>Last 30 Days</div>
</div>
<div class="stat-box">
<div class="stat-number" style="color: #10b981;"><?= number_format($last_90_days);?></div>
<div class="stat-label">Applications Added<br>Last 90 Days</div>
</div>
<div class="stat-box">
<div class="stat-number" style="color: #f59e0b;">$<?= number_format($all_grants_money/1000000000, 1);?>B+</div>
<div class="stat-label">Total Database</div>
</div>
</div>
<div class="categories-grid">
<?php
$cat_colors = array('#8b5cf6', '#3b82f6', '#10b981', '#f59e0b', '#ef4444', '#ec4899', '#06b6d4', '#84cc16', '#f97316', '#6366f1');
$cat_color_id = -1;
foreach($main_cats as $category) {
$cat_color_id++;
if($cat_color_id >= count($cat_colors)) {
$cat_color_id = 0;
}
?>
<a href="/vx/usa/applications/?page=1&ct=<?= $category->id;?>" class="category-card">
<div class="category-icon" style="color: <?= $cat_colors[$cat_color_id]; ?>;">
<?php
// Use the same icon logic as the original index.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');
} else {
// Fallback icon
?><svg fill="none" stroke="currentColor" viewBox="0 0 24 24" style="width: 40px; height: 40px;">
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 6.34l-1.41 1.41M19.07 19.07l-1.41 1.41"></path>
</svg><?php
}
}
?>
</div>
<div style="font-weight: 600; margin-bottom: 0.25rem;"><?= $category->category_name;?></div>
<div style="font-size: 0.875rem; color: #6b7280;">(<?= number_format($category->count);?> applications)</div>
</a>
<?php } ?>
</div>
</div>
</section>
<hr style="border: none; height: 1px; background: #e5e7eb; margin: 3rem 0;">
<?php if(!empty($givesback_won)) { ?>
<!-- Givesback Winner Celebration Section -->
<section class="text-center space-y-4 px-2 sm:px-0">
<div class="bg-green-100 border border-green-300 text-green-800 rounded-lg p-4 max-w-2xl mx-auto">
<div class="text-center space-y-3">
<h2 class="text-2xl font-bold text-black">🎉 Congratulations! You Won $<?= number_format($givesback_won_amount);?>!</h2>
<p class="text-black">You were selected as a winner on <?= $givesback_won_date; ?>.</p>
<?php if($givesback_won_money_sent != '0000-00-00 00:00:00') { ?>
<div class="bg-green-100 border border-green-300 text-green-800 rounded px-3 py-2 text-sm">
âś“ Check mailed on <?= date('M j, Y', strtotime($givesback_won_money_sent)); ?>
</div>
<?php } else { ?>
<div class="bg-blue-100 border border-blue-300 text-blue-800 rounded px-3 py-2 text-sm">
⏳ Your check is being processed
</div>
<?php } ?>
<a href="/vx/usa/givesback/" class="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 h-10 bg-green-600 hover:bg-green-700 hover:scale-105 text-white px-4 sm:px-6 lg:px-8 py-2 sm:py-3 text-sm sm:text-base lg:text-lg font-medium group w-full sm:w-auto min-h-[44px] transition-all duration-300">
<span>View Givesback Awards</span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right w-4 h-4 sm:w-5 sm:h-5 ml-2 group-hover:translate-x-2 transition-transform duration-300">
<path d="M5 12h14"></path>
<path d="m12 5 7 7-7 7"></path>
</svg>
</a>
</div>
</div>
</section>
<hr style="border: none; height: 1px; background: #e5e7eb; margin: 3rem 0;">
<?php } elseif($givesback_entered) { ?>
<!-- Givesback Already Entered Section -->
<section class="text-center space-y-4 px-2 sm:px-0">
<div class="bg-green-100 border border-green-300 text-green-800 rounded-lg p-4 max-w-5xl mx-auto">
<div class="text-center space-y-3">
<h2 class="text-2xl font-bold text-black">🎉Congrats! You've been entered into the <span style="color: #16a34a;">Givesback Cash Program</span>!</h2>
<p class="text-black">As a client, you're now eligible for ALL upcoming weekly awards.</p>
<p class="text-green-600">Next Award on <strong><?= date('l, M d', strtotime('next monday'));?></strong></p>
<p class="text-green-600">Upcoming Award on <strong><?= date('l, M d', strtotime('+1 week',strtotime('next monday')));?></strong></p>
<!-- Compact Countdown Timer -->
<div class="bg-red-500 text-white rounded-lg p-3">
<div class="text-center space-y-2">
<div class="flex items-center justify-center space-x-1">
<div class="px-2">
<i class="fas fa-clock h-5 w-5 animate-pulse"></i>
</div>
<div class="bg-white/20 rounded px-2 py-1 flex items-baseline space-x-1">
<span class="countdown-number-entered font-bold">0</span>
<span>D</span>
</div>
<span>•</span>
<div class="bg-white/20 rounded px-2 py-1 flex items-baseline space-x-1">
<span class="countdown-number-entered font-bold">0</span>
<span>H</span>
</div>
<span>•</span>
<div class="bg-white/20 rounded px-2 py-1 flex items-baseline space-x-1">
<span class="countdown-number-entered font-bold">0</span>
<span>M</span>
</div>
<span>•</span>
<div class="bg-white/20 rounded px-2 py-1 flex items-baseline space-x-1">
<span class="countdown-number-entered font-bold">0</span>
<span>S</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<hr style="border: none; height: 1px; background: #e5e7eb; margin: 3rem 0;">
<?php }?>
<!-- Survey Banner Section -->
<section class="space-y-8">
<div style="max-width: 42rem; margin: 0 auto;">
<div style="cursor: pointer; transition: all 0.3s ease;">
<img src="survey-banner-Cqfpv5SK.jpg" alt="Rate Our Service - Your Feedback Matters" style="width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);" onclick="load_testimonial_form(); return false;">
</div>
</div>
</section>
</div>
</div>
<script>
//load testimonial form
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);
}
});
}
// Countdown timer functionality
function updateCountdown() {
const now = new Date();
const nextMonday = new Date('<?= date('Y-m-d',strtotime('next monday')).'T11:10:00';?>');
const diff = nextMonday - now;
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((diff % (1000 * 60)) / 1000);
// Update countdown display for main givesback section
const countdownNumbers = document.querySelectorAll('.countdown-number');
if (countdownNumbers.length >= 4) {
countdownNumbers[0].textContent = days;
countdownNumbers[1].textContent = hours;
countdownNumbers[2].textContent = minutes;
countdownNumbers[3].textContent = seconds;
}
// Update countdown display for already entered section
const countdownNumbersEntered = document.querySelectorAll('.countdown-number-entered');
if (countdownNumbersEntered.length >= 4) {
countdownNumbersEntered[0].textContent = days;
countdownNumbersEntered[1].textContent = hours;
countdownNumbersEntered[2].textContent = minutes;
countdownNumbersEntered[3].textContent = seconds;
}
}
// Update countdown every second
setInterval(updateCountdown, 1000);
updateCountdown(); // Initial call
</script>
<?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 >= 5 && $num_logins_when_shown % 5 == 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(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');
}
}*/
?>
<?
$body = ob_get_clean();
$title = "Home : ".$_SESSION['site_name'];
include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/layout/non_angular_layout.php');
?>