<?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">
 <?php if($_GET['action']=="del"){?>
      <table width="443" height="148" border="0" align="center">
        <form action="allinsert.php?action=edit" method="post" enctype="multipart/form-data" target="_parent">
          <tr>
            <td width="319" colspan="3" align="center"><table width="438" height="131" border="0">
              <tr>
                <td colspan="4" align="center"><strong>Edit image</strong></td>
              </tr>
              <?php $res=mysql_fetch_array(mysql_query("select * from editphotos where p_id='".$_GET['pid']."'"));?>
              
              <tr>
                <td width="82"><em><strong>image</strong></em></td>
                <td width="5"><em><strong>:</strong></em></td>
                <td width="218"><input type="file" name="image" />
                <input type="hidden" name="pid"  value="<?php echo $_GET['pid']; ?>"/>
                <input type="hidden" name="cid" value="<?php echo $res['g_id'];?>" />
                </td>
                <td width="115" rowspan="3"><img src="../gallery/<?php echo $res['p_id'];?>.jpg?rand=<?php rand(0,1000);?>"  width="135" height="75"/></td>
              </tr>
              
			 
              <tr>
                <td colspan="3" align="center"><input type="submit"  name="submit3" value="Submit" /></td>
              </tr>
            </table>
              <strong></strong></td>
          </tr>
        </form>
      </table>
      <?php }?>
</body>
</html>