<?php
/***************************************************************************
 *			del_menu.php	                                   *
 *                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~	                   *
 *   File Info:		  Delete Menu                                      *
 *   Copyright:       Copyright 2003 http://www.128concepts.com            *
 *						                           *
 ***************************************************************************/
 if ($_SERVER['REQUEST_METHOD'] == "POST") 
  {
     
        $location = $_POST["location"];
       Header("Location:$location");
        exit();
}
?>

<html>
<head><title>Deleting records</title></head>
<body>
<?php  
	include("./config.php");
	include("./header.inc");
	include("./tests.php");
 if ($_SESSION['admin'] == NULL)
{
 echo "<br><br><center><img src=images/line.gif border=0 height=1 width=400></center><p align=\"center\"><img src=images/keybord1.gif border=0><b><strong><font face = Verdana size = 3>   Sorry you are not the administrator!</strong></font></b><br>Click here to return to log in screen  <a href='shop_showall.php'>here.</a>
<br><br><img src=images/line.gif border=0 height=1 width=400><br><br><br><br></p>";
	include("./your-footer.inc");  
	exit();
}
 if ((session_is_registered("admin")) and ($_SESSION['admin'] != "admin"))
{
 echo "<br><br><center><img src=images/line.gif border=0 height=1 width=400></center><p align=\"center\"><img src=images/keybord1.gif border=0><b><strong><font face = Verdana size = 3>   Sorry you are not the administrator!</strong></font></b><br>Click here to return to log in screen  <a href='reglog.php'>here.</a>
<br><br><img src=images/line.gif border=0 height=1 width=400><br><br><br><br></p>";
	include("./your-footer.inc");  
	exit();
}
?>
<center>
<table width="500" border=1><tr align="justify" class="subtitle"><td>
  <p align="center">
  <img border="0" src="images/database.GIF" width="24" height="24"><font face=Verdana size=1><a href="./create_db.php">Create database</a>&nbsp;
  <img border="0" src="images/database.GIF" width="24" height="24"></font><a href="./delete_db.php"><font face=Verdana size=1>Delete database</font></a><font face="Verdana" size="1">&nbsp;
  <img border="0" src="images/Records.GIF" width="24" height="24"><a href="./create_menu.php">Create table</a>&nbsp;&nbsp;&nbsp;&nbsp;
  <img border="0" src="images/Records.GIF" width="24" height="24">&nbsp;
  </font> <a href="./add_menu.php"><font face=Verdana size=1>Add Record </font></a>  
  </p>
  <p align="center">&nbsp;<font face="Verdana" size="1"><img border="0" src="images/Records.GIF" width="24" height="24"></font><a href="./view_menu.php"><font face=verdana size=1>View Records</font></a>&nbsp;
  <font face="Verdana" size="1">&nbsp;&nbsp;&nbsp;
  <img border="0" src="images/Records.GIF" width="24" height="24"></font><a href="./del_menu.php"><font face=verdana size=1>Delete Record</font></a>
  <font face="Verdana" size="1">&nbsp;&nbsp;&nbsp;
  <img border="0" src="images/Records.GIF" width="24" height="24"></font> <a href="./upd_menu.php"><font face=verdana size=1>Update Record</font></a>&nbsp;
  <img border="0" src="images/home-to.GIF" width="24" height="24"><font face=verdana size=1>&nbsp; <a href="./index.php">Home</a></font>  </a></td></tr></table><br></center>
<img src=images/line.gif border=0 width=100% height=1><br><br>
<center><img src=images/computer.gif border=0><font face=verdana size=3 color=darkred> Deleting Records</font></center><br>
<font face=verdana size=2>Choose which record you wish to delete:</font>
<form action = "del_menu.php" method = "post">
<select name="location">
<option value="do_delete.php">Delete products records</option>
<option value="do_delete1.php">Delete contacts records</option>
<option value="do_delete2.php">Delete stocks records</option>
<option value="do_ord_menu.php">Orders Delete Menu</option>
<option value="do_delete4.php">Delete users records</option>
<option value="del_setting.php">Delete SETTING</option>
<option value="del_history.php">Delete HISTORY</option>
<option value="del_custord.php">Delete CUSTOMER ORDERS</option>
<option value="del_rating.php">Delete Rating</option>
<option value="del_cat.php">Delete All Category</option>
<option value="del_scat.php">Delete Single Category</option>
<option value="del_review.php">Delete Customer Reviews</option>
<option value="del_ship_menu.php">Shipping Delete Menu</option>
</select>
<input type="submit" name="submit" value="Go">
</form>
<?php include("./your-footer.inc");?>
</body>
</html>


