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

<html>
<head><title>Viewing 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='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();
}
?>

<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> Viewing records</font></center><br>
<font face=verdana size=2>Choose which records you wish to view:</font>
<form action = "view_menu.php" method = "post">
<select name="location">
<option value="do_showall.php"><font face=verdana size=2>View all products records</font></option>
<option value="do_showall1.php"><font face=verdana size=2>View all contacts records</font></option>
<option value="do_showall2.php"><font face=verdana size=2>View all stocks records</font></option>
<option value="do_showall3.php"><font face=verdana size=2>View all orders records</font></option>
<option value="do_showall4.php"><font face=verdana size=2>View all users records</font></option>
<option value="do_showall5.php"><font face=verdana size=2>View all HISTORY records</font></option>
<option value="do_showall6.php"><font face=verdana size=2>View all CUSTOMER ORDERS records</font></option>
<option value="view_rating.php"><font face=verdana size=2>View all RATING records</font></option>
<option value="view_cat.php"><font face=verdana size=2>View all CATEGORY records</font></option>
<option value="view_review.php"><font face=verdana size=2>View all REVIEWS records</option>
<option value="view_shipping.php"><font face=verdana size=2>View all SHIPPING records</option>
</select>
<input type="submit" name="submit" value="Go">
</form>
<?php 
include ("./your-footer.inc");
?>
</body>
</html>


