Olive Branch MS Chamber of Commerce (circa Oct 1999)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

76 lines
2.6 KiB

<html>
<head>
<title>Olive Branch, MS</title>
</head>
<link rel=stylesheet href=/styles/basic.css type=text/css>
<body>
<?
print("<form method=\"post\" action=\"bsearchbody.php3\">");
switch($bsact)
{
case " < ":
$begin -= $linesperpage;
if($begin < 0) { $begin = 0; $page = 1; }
else $page--;
break;
case " > ":
$begin += $linesperpage;
if($begin > ($total_rows - $linesperpage))
{
$begin = $total_rows - $linesperpage;
$page = $total_pages;
}
else $page++;
break;
case ">>":
$begin = $total_rows - $linesperpage;
$page = $total_pages;
break;
default:
$begin = 0;
$page = 1;
break;
}
$last_row = $begin + $linesperpage;
if($last_row > $total_rows) $last_row = $total_rows;
print("<input type=\"hidden\" name=\"foobar\" value=\"" . $bsact . "\">\n");
print("<input type=\"hidden\" name=\"linesperpage\" value=\"" . $linesperpage . "\">\n");
print("<input type=\"hidden\" name=\"total_pages\" value=\"" . $total_pages . "\">\n");
print("<input type=\"hidden\" name=\"total_rows\" value=\"" . $total_rows . "\">\n");
print("<input type=\"hidden\" name=\"begin\" value=\"" . $begin . "\">\n");
print("<input type=\"hidden\" name=\"page\" value=\"" . $page . "\">\n");
print("<input type=\"hidden\" name=\"category\" value=\"" . $category . "\">\n");
print("<input type=\"hidden\" name=\"wordsearch\" value=\"" . $wordsearch . "\">\n");
print("<input type=\"hidden\" name=\"wordoption\" value=\"" . $wordoption . "\">\n");
print("<input type=\"hidden\" name=\"contactsearch\" value=\"" . $contactsearch . "\">\n");
print("<input type=\"hidden\" name=\"contactoption\" value=\"" . $contactoption . "\">\n");
print("<table border=0 width=\"450\" cellspacing=0 cellpadding=0><tr>");
if($total_rows > $linesperpage && $begin > 0)
{
print("<td align=left width=\"100\"><input type=\"submit\" name=\"bsact\" value=\"<<\">\n");
print("<input type=\"submit\" name=\"bsact\" value=\" < \"></td>\n");
}
else print("<td width=\"100\"></td>\n");
print("<th align=center><b>Page $page of $total_pages</b></th>\n");
if($total_rows > $linesperpage && $begin != ($total_rows - $linesperpage))
{
print("<td align=right width=\"100\"><input type=\"submit\" name=\"bsact\" value=\" > \">\n");
print("<input type=\"submit\" name=\"bsact\" value=\">>\"></td>\n");
}
else print("<th width=\"100\"></th>\n");
print("</tr></table><br>\n");
print("</form>\n");
?>
</body>
</html>