Location: PHPKode > scripts > Free PHP Recipes Plug-n-Play Website Script > free-php-recipes-plug-n-play-website-script/template.php
<?php
/************* Recipe *****************************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Recipe *****************************/

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=$META_TITLE; if($cat_title){ echo ' .:. '.$cat_title;}if($rec_title){ echo ' .:. '.stripslashes($rec_title);};?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="keywords" content="<?=$META_KEYS;?>">
<meta http-equiv="description" content="<?=$META_DESCRIPTION;?>">
<style type="text/css">
/* General Fonts */
*{
	font-family:Verdana, Arial, Helvetica, sans-serif;
}
/* General Links */
a{
	color:#0000FF;
	text-decoration:none;
}
/* General Links on Hover */
a:hover {
	text-decoration:underline;
	background-color:#DFDFFF;
}
/* Tables */
.tablerow {
	border:1px solid #E4E4C9;
}
/* Tds */
.tdblack {
	border:1px solid #999999;
}
</style>
</head>
<body marginheight="0" marginwidth="0" topmargin="0" rightmargin="0">
<table width="<?=$PAGE_WIDTH;?>" border="0" align="center" cellpadding="3" cellspacing="0" style="border:1px solid #FFDBCA; ">
  <tr>
    <td><a href="<?=$SITE_URL;?>"><img src="<?=$SITE_URL;?>images/logo.jpg" alt="<?=$META_KEYS;?>" border="0"></a>      <div align="center">
      </div></td>
  <td><div align="center"><?=$ADVERTISEMENT;?></div></td>
  </tr>
</table>
<table width="<?=$PAGE_WIDTH;?>" border="0" align="center" cellpadding="3" cellspacing="0" style="border:1px solid #FFDBCA; ">
  <tr>
    <td><div align="center">
      <form name="search" id="search" method="post" action="<?=$SITE_URL;?>?S*" style="display:inline;">
        <div align="right"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">	  Search: 
            <input type="text" name="rec_key" id="rec_key" value="<?=$rec_key;?>">
	      In: 
	      <select name="cat_key" id="cat_key">
		  <option value="">All</option>
		  <?php
		  $get_cats = mysql_query("SELECT * FROM `recp_cat_list`");
		  while($each = mysql_fetch_assoc($get_cats)){
		  	if($each['cat_title'] == $cat_key || $each['cat_title'] == $cat_title){ $sel=' selected';}else{$sel=NULL;}
		  	echo '<option value="'.$each['cat_title'].'"'.$sel.'>'.$each['cat_title'].'</option>';
		  }
		  ?>
            </select>
	      <input type="submit" name="Submit" value="Search">
          </font>
          </strong>
        </div>
      </form>
      </div></td>
  </tr>
</table>
<br/>
<div align="center"><?=$ADVERTISEMENT_XL;?></div>
<br/>
<?php if($message != NULL){?>
<table width="<?=$PAGE_WIDTH;?>" border="0" align="center" cellpadding="3" cellspacing="0" style="border:1px solid #FFDBCA; ">
  <tr>
    <td bgcolor="#FFDDDD"><div align="left"><strong><font color="#FF0000" size="2"><?=$message;?></font></strong></div></td>
  </tr>
</table>
<br/>
<?php }
echo $MAIN_BODY;
?>
<br/>
<table width="<?=$PAGE_WIDTH;?>" border="0" align="center" cellpadding="3" cellspacing="0" style="border:1px solid #FFDBCA; ">
  <tr>
    <td><div align="center"><strong><font size="1">All rights reserved for <?=$SITE_NAME;?> (&copy;) <?=date("Y");?>
	 - [<a href="<?=$SITE_URL;?>?Privacy">Privacy Policy</a>]</font></strong><font size="1"><a href="http://www.awesomephp.com" target="_blank"><br/>
      Powered by AwesomePHP</a></font></div></td>
  </tr>
</table>
</body>
</html>
Return current item: Free PHP Recipes Plug-n-Play Website Script