<? ob_start();
session_start();
require_once("../dbconnect.php");
//include_once("checklogin.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>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php include_once("title.php")?>

<script language="javascript" type="text/javascript" src="js/mootools.js"></script>
<script language="javascript" type="text/javascript" src="js/bumpbox.js"></script>
<script language="javascript" type="text/javascript" src="js/flowplayer.min.js"></script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><? require_once("header.php"); ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
				  
					
                    <td height="30" class="cate_pro">Slides</td>
                    <td>&nbsp;</td>
                    <td class="index_text" align="right">&nbsp;</td>
                    <td width="20">&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td valign="top"><table width="700" height="200" border="0">
                  <tr>
                    <td width="521">&nbsp;</td>
                    <td width="169">
                  
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2" valign="top" gcolor="#D7D6CC" class="dataTableHeadingContent">
                    <table width="518" border="0" bgcolor="#F2F1EE">
                      <tr bgcolor="#D7D6CC" class="dataTableHeadingContent"><span class="style2">
                        <td width="84" align="center">id</td>
                        <td width="250" align="center">Images</td>
                        <td width="170" align="center">Action</td>
                        </span>
                      </tr>
                      <?php include_once("../dbconnect.php");
				 $res=mysql_query("select * from editphotos where g_id=".$_GET['g_id']);
					while($all=mysql_fetch_array($res)){
					?>
                      <tr>
                        <td align="center"><?php echo $all['p_id'];?></td>
                        <td align="center"> <img src="../gallery/<?php echo $all['p_id'];?>.jpg?rand=<?php rand(0,1000);?>" alt="" width="90" height="90" border="0"></td>
                        <td align="center"><a href="edit.php?action=del&amp;pid=<?php echo $all['p_id'];?>&height=200&amp;width=350" 
                    title=" Edit Image" class="bumpbox"> <img src="images/icon_edit.gif" alt=""  border="0"/></a>&nbsp; <?php if($_GET['g_id']!=3){ ?><a href="allinsert.php?action=delete&amp;pid=<?php echo $all['p_id'];?>&amp;g_id=<?php echo $all['g_id'];?>"
                    onclick="return confirm('Do you really want to remove this product?');"> </a> <? } ?></td>
                      </tr>
                      <?php }?>
                    </table></td>
                  </tr>
                  </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
        <?php require_once("footer.php"); ?>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
