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

<html>
<head><title>Updating a record</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> Updating a new record</font></center><br>
<font face=verdana size=2>Choose which record you wish to create:</font>
<form action = "upd_menu.php" method = "post">
<select name="location">
<option value="do_update.php">Updating products record</option>
<option value="do_update1.php">Updating contacts record</option>
<option value="do_update2.php">Updating stocks record</option>
<option value="do_update3.php">Updating category record</option>
<option value="do_update4.php">Updating stocks[user] record</option>
<option value="upd_review.php">Update reviews record</option>
</select>
<input type="submit" name="submit" value="Go">
</form>
<br><center><font face = Verdana size = 2><p align=justify><img src=images/bullets.gif border=0>There are two modes for updating stocks records. The first option will use default categories. The second option update stocks[user] record will permit you to update stocks record with your own caterogies.</p></font></center>
<?php include("./your-footer.inc");?>
</body>
</html>


