<?php
//=================================================================\\
// navbar1.php v1.4.1 \\
//----------------------------------------------------------------------------------------------------------------------\\
// This file is part of Accessories Me PHP Affiliate Script. \\
//----------------------------------------------------------------------------------------------------------------------\\
// File purpose: Include file. Contains sort options and results pages navigation \\
//-----------------------------------------------------------------------------------------------------------------------\\
// COPYRIGHT: (C) 2004, 2005 Len Johnson \\
// Website: http://www.accessories.me.uk \\
// Email: hide@address.com \\
// Mail: GB WEBS, 4 Leominster Walk, West Midlands, B45 9SW, UK \\
// SUPPORT: http://www.accessories.me.uk/forum-2.htm \\
//------------------------------------------------------------------------------------------------------------------------\\
// DONATIONS: If you have found this script useful you can make a donation to support \\
// it's continued development at http://www.accessories.me.uk/about12.htm \\
//------------------------------------------------------------------------------------------------------------------------\\
// COPYING/LICENSE: Accessories Me PHP Affiliate Script is free software; \\
// you can redistribute it and/or modify it under the terms of the GNU General Public License \\
// as published by the Free Software Foundation; either version 2 \\
// of the License, or (at your option) any later version. See LICENSE.TXT \\
//------------------------------------------------------------------------------------------------------------------------\\
// Accessories Me PHP Affiliate Script is distributed in the hope that it will be useful, \\
// but WITHOUT ANY WARRANTY; \\
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. \\
// See the GNU General Public License for more details. \\
//-------------------------------------------------------------------------------------------------------------------------\\
// You should have received a copy of the GNU General Public License along with this program; \\
// if not, write to: \\
// Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. \\
// http://www.opensource.org/licenses/gpl-license.html \\
//-------------------------------------------------------------------------------------------------------------------------\\
//=================================================================\\
?>
<div id="description">
<table cellpadding="0" cellspacing="0" border="0" width="95%">
<tr><form method="get" action="browse.php">
<td style="padding-left:10px;" height="35">
<table cellspacing='0' cellpadding='0'><tr><td class='small'>
<span class="default">Sort By:</span>
<input type="hidden" name="BrowseNode" value="<?php echo $BrowseNode; ?>">
<input type="hidden" name="SearchIndex" value="<?php echo $SearchIndex; ?>">
<select name="sort">
<?php
// Sort function Displays different sort options depending on SearchIndex
$SearchIndex();
?>
</select></td><td width='5'></td><td valign='middle'>
<input name="Go" type="submit" value="Submit"></td></tr></table>
</td></form><td style="padding-right:15px;" align="right" class='small'>
<div align="right"><span class="default">
<?php if($page>=$arxIndex['TotalPages']) { ?>
<strong>No more products: <a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=1<?php if($sort) { echo '&sort=' . $sort; } ?>">First Page</a></strong> -
<strong><a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($arxIndex['TotalPages']); if($sort) { echo '&sort=' . $sort; } ?>">Last Page</a></strong>
<?php } else {
if($page>1 && $page<=$arxIndex['TotalPages']) { ?>
<strong><a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($page-1); if($sort) { echo '&sort=' . $sort; } ?>">Prev</a></strong> -
<?php } if($page>1 && $page<=$arxIndex['TotalPages']) { ?>
<a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($page-1); if($sort) { echo '&sort=' . $sort; } ?>"><?php echo ($page-1); ?></a>
<?php } echo '<strong>(' . $page . ')</strong>';
if(($page+1)<=($arxIndex['TotalPages'])) { ?>
<a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($page+1); if($sort) { echo '&sort=' . $sort; } ?>"><?php echo ($page+1); ?></a>
<?php } if(($page+2)<=($arxIndex['TotalPages'])) { ?>
<a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($page+2); if($sort) { echo '&sort=' . $sort; } ?>"><?php echo ($page+2); ?></a>
<?php } if(($page+3)<=($arxIndex['TotalPages'])) { ?>
<a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($page+3); if($sort) { echo '&sort=' . $sort; } ?>"><?php echo ($page+3); ?></a>
<?php } if(($page+1)<=($arxIndex['TotalPages'])) { ?>
-
<a href="browse.php?SearchIndex=<?php echo $SearchIndex; ?>&BrowseNode=<?php echo $BrowseNode; ?>&page=<?php echo ($page+1); if($sort) { echo '&sort=' . $sort; } ?>"><b>Next</b></a>
<?php } ?>
| <strong>Pages</strong>: <?php echo ($arxIndex['TotalPages']) . ' ';
} ?></span></div></td>
</tr>
</table>
</div>