home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #12 / Amiga Plus CD - 2002 - No. 12.iso / AmigaOS / Aplus_Dev / AP-Website / links / themes / original / header.php < prev    next >
Encoding:
PHP Script  |  2002-10-28  |  2.2 KB  |  70 lines

  1. <?
  2. // *******************************************************************
  3. //  themes/original/header.php
  4. // *******************************************************************
  5.  
  6. $radio_array = array(
  7.     "or"        =>    $common_1,
  8.     "and"        =>    $common_2,
  9.     "phrase"    =>    $common_3
  10. );
  11.  
  12. $html = "" . $table2 . "\t\t\r\n\t\t<tr><form target=\"_top\" method=\"post\" action=\"index.php?" . session_name() . "=";
  13. $html .= session_id() . "\">\r\n\t\t\t<td ";
  14. $html .= "class=\"title\" nowrap=\"nowrap\" valign=\"bottom\"><a href=\"index.php?";
  15. $html .= session_name() . "=" . session_id() . "\" target=\"_top\"><img src=\"themes/";
  16. $html .= $theme . "/apluslogo_new_corner.gif\" align=\"left\" width=\"189\" height=\"54\" ";
  17. $html .= "border=\"0\" ";
  18. $html .= "alt=\"" . $gl["SiteTitle"] . "\" title=\"" . $gl["SiteTitle"];
  19. $html .= "\" /></a></td>\r\n\t\t\t<td align=\"right\" nowrap=\"nowrap\"> ";
  20. $html .= "<font class=\"searchText\">Search:</font> <input ";
  21. $html .= "class=\"textBox\" type=\"text\" name=\"term\" value=\"";
  22. $html .= stripslashes($term) . "\" size=\"20\" /><br /><font ";
  23. $html .= "class=\"searchLogic\"> ";
  24.  
  25.  
  26. if(
  27.     (isset($PID) && strlen($PID)>0) ||
  28.     (isset($search_cat) && $search_cat != 0)
  29. ){
  30.     $html .= "<img src=\"images/pixel.gif\" width=\"3\" height=\"1\" ";
  31.     $html .= "alt=\"\" /><select name=\"search_cat\" ";
  32.     $html .= "class=\"textBox\"><option value=\"";
  33.             
  34.     if(isset($PID)){
  35.         $html .= $PID;
  36.     } else {
  37.         $html .= $search_cat;
  38.     }
  39.             
  40.     $html .= "\" selected=\"selected\"> -- This Category -- </option><option ";
  41.     $html .= "value=\"0\"> -- All Categories -- </option></select><br />";
  42. }
  43.         
  44. if(!isset($logic)){
  45.     $logic = "or";
  46. }
  47.  
  48. while(list($key, $value) = each($radio_array)){
  49.             
  50.     $html .= "<input type=\"radio\" name=\"logic\" value=\"" . $key . "\"";
  51.                 
  52.     if($logic == $value){
  53.         $html .= " checked=\"checked\"";
  54.     }
  55.     
  56.     $html .= " /> " . $value . " ";
  57. }
  58.  
  59. if(isset($ns)){
  60.     echo "<input type=\"hidden\" name=\"ns\" value=\"1\" />";
  61. }
  62.             
  63. $html .= "</font><input type=\"submit\" value=\"Go!\" align=\"top\" ";
  64. $html .= "alt=\"Search\" title=\"Search\" /></td></form>\r\n\t\t</tr>\r\n\t\t";
  65. $html .= "\r\n\t\t</table>\r\n\t\t\r\n";
  66.  
  67. echo table("100%", "center", "", $html);
  68.  
  69. ?>
  70.