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

<html>
<head><title>Creating a new 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> Adding a new record</font></center><br>
<font face=verdana size=2 color=navy>Choose which record you wish to create:</font>
<form action = "add_menu.php" method = "post">
<select name="location">
<option value="show_addrecord.html">Create products record</option>
<option value="show_addrecord1.html">Create contacts record</option>
<option value="show_addrecord2.html">Create stocks record</option>
<option value="show_addrecord3.html">Create category record</option>
<option value="show_addstockcat.php">Create stocks[user] record</option>
</select>
<input type="submit" name="submit" value="Go">
</form><br><p align=justify><img src=images/bullets.gif border=0><font face = Verdana size = 2>There are two modes for creating stocks records. The first option will use default categories. The second option creat stocks[user] record will permit you to create stocks record with your own caterogies.</font></p>

<?php include("./your-footer.inc");?>
</body>
</html>


