<?php
session_start();
ob_start();
include_once("../dbconnect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="../js/thickbox.css" type="text/css" media="screen" />
   <script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/thickbox.js"></script>
</head>

<body bgcolor="#FFFFFF">
 <td width="163" align="center" valign="top"> <?php if($_GET['action']=="add"){?>
         <table width="325" border="0" align="center">
        <form action="allinsert.php?action=add" method="post"  target="_parent" enctype="multipart/form-data">
          <tr>
            <td width="319" colspan="3" align="center"><table width="322" border="0">
              <tr>
                <td colspan="3" align="center"><strong>Add image</strong></td>
              </tr>
              <tr>
                <td width="80"><em><strong>image</strong></em></td>
                <td width="4"><em><strong>:</strong></em></td>
                <td width="218"><input type="file" name="image" />
                <input type="hidden" name="cid" value="<?php echo $_GET['g_id'];?>" />
                </td>
              </tr>
              <tr>
                <td><em><strong>Description</strong></em></td>
                <td><em><strong>:</strong></em></td>
                <td><textarea name="data"></textarea></td>
              </tr>
			  <tr>
                <td><em><strong>price</strong></em></td>
                <td><em><strong>:</strong></em></td>
                <td><input type="text" name="price"  /></td>
              </tr>
              <tr>
                <td colspan="3" align="center">
                
                <input type="image" src="images/add.gif" name="submit2" />
               
                
                </td>
              </tr>
            </table>              </td>
          </tr>
        </form>
      </table>
       <?php }?>
</body>
</html>