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

  1. <html>
  2. <head>
  3. <title>Olive Branch, MS</title>
  4. </head>
  5. <link rel=stylesheet href=/styles/basic.css type=text/css>
  6. <body>
  7. <?
  8. print("<form method=\"post\" action=\"bsearchbody.php3\">");
  9. switch($bsact)
  10. {
  11. case " < ":
  12. $begin -= $linesperpage;
  13. if($begin < 0) { $begin = 0; $page = 1; }
  14. else $page--;
  15. break;
  16. case " > ":
  17. $begin += $linesperpage;
  18. if($begin > ($total_rows - $linesperpage))
  19. {
  20. $begin = $total_rows - $linesperpage;
  21. $page = $total_pages;
  22. }
  23. else $page++;
  24. break;
  25. case ">>":
  26. $begin = $total_rows - $linesperpage;
  27. $page = $total_pages;
  28. break;
  29. default:
  30. $begin = 0;
  31. $page = 1;
  32. break;
  33. }
  34. $last_row = $begin + $linesperpage;
  35. if($last_row > $total_rows) $last_row = $total_rows;
  36. print("<input type=\"hidden\" name=\"foobar\" value=\"" . $bsact . "\">\n");
  37. print("<input type=\"hidden\" name=\"linesperpage\" value=\"" . $linesperpage . "\">\n");
  38. print("<input type=\"hidden\" name=\"total_pages\" value=\"" . $total_pages . "\">\n");
  39. print("<input type=\"hidden\" name=\"total_rows\" value=\"" . $total_rows . "\">\n");
  40. print("<input type=\"hidden\" name=\"begin\" value=\"" . $begin . "\">\n");
  41. print("<input type=\"hidden\" name=\"page\" value=\"" . $page . "\">\n");
  42. print("<input type=\"hidden\" name=\"category\" value=\"" . $category . "\">\n");
  43. print("<input type=\"hidden\" name=\"wordsearch\" value=\"" . $wordsearch . "\">\n");
  44. print("<input type=\"hidden\" name=\"wordoption\" value=\"" . $wordoption . "\">\n");
  45. print("<input type=\"hidden\" name=\"contactsearch\" value=\"" . $contactsearch . "\">\n");
  46. print("<input type=\"hidden\" name=\"contactoption\" value=\"" . $contactoption . "\">\n");
  47. print("<table border=0 width=\"450\" cellspacing=0 cellpadding=0><tr>");
  48. if($total_rows > $linesperpage && $begin > 0)
  49. {
  50. print("<td align=left width=\"100\"><input type=\"submit\" name=\"bsact\" value=\"<<\">\n");
  51. print("<input type=\"submit\" name=\"bsact\" value=\" < \"></td>\n");
  52. }
  53. else print("<td width=\"100\"></td>\n");
  54. print("<th align=center><b>Page $page of $total_pages</b></th>\n");
  55. if($total_rows > $linesperpage && $begin != ($total_rows - $linesperpage))
  56. {
  57. print("<td align=right width=\"100\"><input type=\"submit\" name=\"bsact\" value=\" > \">\n");
  58. print("<input type=\"submit\" name=\"bsact\" value=\">>\"></td>\n");
  59. }
  60. else print("<th width=\"100\"></th>\n");
  61. print("</tr></table><br>\n");
  62. print("</form>\n");
  63. ?>
  64. </body>
  65. </html>