| 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/search_old/ |
Upload File : |
<?
if(!empty($grantPages) && count($grantPages) > 1)
{
$selectedSubCategories = (!empty($_POST['postSubCategories'])) ? $_POST['postSubCategories'] : array();
?>
<div class="relative block center">
<?
if($pageSpreadFloor > 0)
{
?>
<div class="relative iblock">
<form action="" method="post" enctype="multipart/form-data">
<div class="relative iblock">
<input type="hidden" value="<?=$ogKeyword?>" name="keyword" />
<input type="hidden" value="<?=$searchState?>" name="state" />
<input type="hidden" value="<?=$searchCategory?>" name="category" />
<input type="hidden" value="0" name="page" />
<button type="submit" class="btn btn-lg none" style="margin-top:-5px; width:25px; padding:0px;">
<i class="fa fa-angle-double-left f18"></i>
</button>
<input type="hidden" value="1" name="grantPage"/>
<?
foreach($selectedSubCategories as $key => $value)
{
if(($value * 1) > 0)
{
?>
<input type="hidden" value="<?=$value?>"
name="postSubCategories[<?=$key?>]"
id="subCategoryFilter<?=$value?>"
class="subcategories" />
<?
}
}
?>
</div>
</form>
</div>
<?
}
if($pageSpreadFloor > 0)
{
?>
<div class="relative iblock">
<form action="" method="post" enctype="multipart/form-data">
<div class="relative iblock">
<input type="hidden" value="<?=$ogKeyword?>" name="keyword" />
<input type="hidden" value="<?=$searchState?>" name="state" />
<input type="hidden" value="<?=$searchCategory?>" name="category" />
<input type="hidden" value="<?=($page-1)?>" name="page" />
<button type="submit" class="btn btn-lg none" style="margin-top:-5px; width:25px; padding:0px;">
<i class="fa fa-angle-left f18"></i>
</button>
<input type="hidden" value="1" name="grantPage"/>
<?
foreach($selectedSubCategories as $key => $value)
{
if(($value * 1) > 0)
{
?>
<input type="hidden" value="<?=$value?>"
name="postSubCategories[<?=$key?>]"
id="subCategoryFilter<?=$value?>"
class="subcategories" />
<?
}
}
?>
</div>
</form>
</div>
<?
}
for($i=0; $i<count($grantPages); $i++)
{
if($i >= $pageSpreadFloor && $i < $pageSpreadLimit)
{
?>
<div class="relative iblock">
<form action="" method="post" enctype="multipart/form-data">
<div class="relative iblock">
<input type="hidden" value="<?=(!empty($ogKeyword)) ? $ogKeyword : '';?>" name="keyword" />
<input type="hidden" value="<?=(!empty($searchState)) ? $searchState : '';?>" name="state" />
<input type="hidden" value="<?=(!empty($searchCategory)) ? $searchCategory : '';?>" name="category" />
<input type="hidden" value="<?=$i?>" name="page" />
<input type="submit" value="<?=($i + 1)?>" name="grantPage"
class="pointer noborder noselect none f16 bold <?=(($i == $page||(empty($page) && $i == 0))?"bblue underline":"dark-gray")?>"
style="" />
<?
if(!empty($selectedSubCategories)) {
foreach($selectedSubCategories as $key => $value)
{
if(($value * 1) > 0)
{
?>
<input type="hidden" value="<?=$value?>"
name="postSubCategories[<?=$key?>]"
id="subCategoryFilter<?=$value?>"
class="subcategories" />
<?
}
}
}
?>
</div>
</form>
</div>
<?
}
}
if(count($grantPages) > $pageSpreadLimit)
{
?>
<div class="relative iblock">
<form action="" method="post" enctype="multipart/form-data">
<div class="relative iblock">
<input type="hidden" value="<?=(!empty($ogKeyword)) ? $ogKeyword : '';?>" name="keyword" />
<input type="hidden" value="<?=(!empty($searchState)) ? $searchState : '';?>" name="state" />
<input type="hidden" value="<?=(!empty($searchCategory)) ? $searchCategory : '';?>" name="category" />
<input type="hidden" value="<?=($page+1)?>" name="page" />
<button type="submit" class="btn btn-lg none" style="margin-top:-5px; width:25px; padding:0px;">
<i class="fa fa-angle-right f18"></i>
</button>
<input type="hidden" value="1" name="grantPage"/>
<?
if(!empty($selectedSubCategories)) {
foreach($selectedSubCategories as $key => $value)
{
if(($value * 1) > 0)
{
?>
<input type="hidden" value="<?=$value?>"
name="postSubCategories[<?=$key?>]"
id="subCategoryFilter<?=$value?>"
class="subcategories" />
<?
}
}
}
?>
</div>
</form>
</div>
<?
}
if(count($grantPages) > $pageSpreadLimit)
{
?>
<div class="relative iblock">
<form action="" method="post" enctype="multipart/form-data">
<div class="relative iblock">
<input type="hidden" value="<?=(!empty($ogKeyword)) ? $ogKeyword : '';?>" name="keyword" />
<input type="hidden" value="<?=(!empty($searchState)) ? $searchState : '';?>" name="state" />
<input type="hidden" value="<?=(!empty($searchCategory)) ? $searchCategory : '';?>" name="category" />
<input type="hidden" value="<?=(count($grantPages)-1)?>" name="page" />
<button type="submit" class="btn btn-lg none" style="margin-top:-5px; width:25px; padding:0px;">
<i class="fa fa-angle-double-right f18"></i>
</button>
<input type="hidden" value="1" name="grantPage"/>
<?
if(!empty($selectedSubCategories)) {
foreach($selectedSubCategories as $key => $value)
{
if(($value * 1) > 0)
{
?>
<input type="hidden" value="<?=$value?>"
name="postSubCategories[<?=$key?>]"
id="subCategoryFilter<?=$value?>"
class="subcategories" />
<?
}
}
}
?>
</div>
</form>
</div>
<?
}
?>
</div>
<?
}
?>