<? ob_start();
session_start();
require_once("../dbconnect.php");


 $view="Select * from tblcategories1 where categiry_id=".$_GET['categiry_id']; 
 $exeview=mysql_query($view);
 $viewrow=mysql_fetch_array($exeview);

$view1="Select * from tblsubcategories1 where subcot_id=".$_GET['subcat']; 

 $exeview1=mysql_query($view1);

 $viewrow1=mysql_fetch_array($exeview1);
 
 //$res=mysql_fetch_array(mysql_query("select * from products1 where pdid=".$_GET['prodid']))
require_once("sesurl.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=iso-8859-1" />
<title>Welcome to Sir Box and Plastics</title>
<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" />
<script language="javascript" src="ajaxvalid.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="70%" border="0" align="left" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr>
                        <td class="index_text" align="center" valign="top" width="150">LEGEND: </td>
                        <td class="index_text" align="center" valign="top" width="150">Status OFF <br />
                            <img src="images/icon_red_on.gif" alt="Status - Disabled" title=" Status - Disabled " border="0" /></td>
                        <td class="index_text" align="center" valign="top" width="150">Status ON <br />
                            <img src="images/icon_green_on.gif" alt="Status - Enabled" title=" Status - Enabled " border="0" /></td>
                        <td class="index_text" align="center" valign="top" width="11"><br /></td>
                        <td class="index_text" align="center" valign="top" width="150">Meta Tags Defined:<br />
                          Yes&nbsp;No<br />
                          <img src="images/icon_edit_metatags_on.gif" alt="Meta Tags Defined" title="Meta Tags Defined" border="0" />&nbsp;<img src="images/icon_edit_metatags_off.gif" alt="Meta Tags Undefined" title=" Meta Tags Undefined " border="0" /></td>
                      </tr>
                    </tbody>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="30" class="cate_pro">Categories / Products&nbsp;-&nbsp;<? echo $viewrow['categoryname']; ?></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="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="65%" valign="top" style="padding-right:1px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="35" colspan="5">
						
						
						<table border="0" cellpadding="2" cellspacing="0" width="100%">
                            <tr class="dataTableHeadingRow">
                                <td width="34" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">ID</td>
                                <td width="198" bgcolor="#D7D6CC" class="dataTableHeadingContent">Categories / Products</td>
                                <td width="124" align="right" bgcolor="#D7D6CC" class="dataTableHeadingContent">Price/Special/Sale</td>
                                <td width="2" align="right" bgcolor="#D7D6CC" class="dataTableHeadingContent">Itemno</td>
                                <td width="67" align="right" bgcolor="#D7D6CC" class="dataTableHeadingContent">Quantity&nbsp;&nbsp;&nbsp;</td>
                                <td width="48" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Status</td>
                                <td width="169" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Action&nbsp;</td>
                                <td width="169" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Display Order</td>
                            </tr>
                          
						  

							<?
	$sqlpro="Select * from products1 where categeryid=".$_GET['categiry_id']." and subcetid=".$_GET['subcat'];
				 $exesqlpro=mysql_query($sqlpro);
		  while($prodrow=mysql_fetch_array($exesqlpro))
			 {						
				?>
								      <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
                                <td class="dataTableContent" align="center" width="34"><? echo $prodrow['pdid'];?></td>
                                <td class="dataTableHeadingContent" style="padding-left:15px;"><a href="editproduct1.php?catid=<? echo $_GET['categiry_id'];?>&subcat=<? echo $prodrow['subcetid'];?>&prodid=<? echo $prodrow['pdid'];?>">
				<img src="images/preview.gif" alt="Preview" title=" Preview " border="0" /></a>
				
				&nbsp;<?php echo stripslashes($prodrow['pdname']) ?></td>
                                <td class="dataTableContent" align="center"  style="padding-left:35px;">$<?php echo stripslashes($prodrow['price']) ?>&nbsp;</td>
                                <td class="dataTableContent" align="center"  style="padding-left:35px;"><?php echo stripslashes($prodrow['itemno']) ?></td>
                                <td class="dataTableContent" align="center"  style="padding-left:35px;"><a href="quantity_zeap_listing.php?prid=<? echo $prodrow['pdid'];?>"> Quantity  </a></td>
                                <!--<td class="dataTableContent" align="center"  style="padding-left:5px;"><?php echo stripslashes($prodrow['pqty']) ?>&nbsp;</td>-->
                                <td class="dataTableContent" align="center" width="48">
                                
                                
                              <? if($prodrow['status']==0){?>
    <a href="productinsert1.php?action=status&catid=<? echo $prodrow['categeryid']; ?>&subcat=<? echo $prodrow['subcetid'] ?>&prodid=<? echo $prodrow['pdid']; ?>&status=1">
			<img src="images/icon_red_on.gif" alt="Status - Disabled" title=" Status - Disabled" border="0" />			</a> 
			<? } else {?>
            
             <a href="productinsert1.php?action=status&catid=<? echo $prodrow['categeryid']; ?>&subcat=<? echo $prodrow['subcetid'] ?>&prodid=<? echo $prodrow['pdid']; ?>&status=0">
			<img src="images/icon_green_on.gif" alt="Status - Disabled" title=" Status - Enabled" border="0" />			</a> 
            <? } ?>                                 </td>
                                <td class="dataTableContent" align="center" >
<a href="editproduct1.php?catid=<? echo $_GET['categiry_id'];?>&subcat=<? echo $_GET['subcat'];?>&prodid=<? echo $prodrow['pdid'];?>">	
<img src="images/icon_edit.gif" alt="Edit" title=" Edit " border="0" style="padding-left:5px; padding-right:5px;" /></a> 
	
<a href="subcategory1.php?delete=delete&catid=<? echo $_GET['categiry_id'];?>&subcat=<? echo $_GET['subcat'];?>&prodid=<? echo $prodrow['pdid'];?>">	
	<img src="images/icon_delete.gif" alt="Delete" title=" Delete " border="0" style="padding-left:5px; padding-right:5px;" />	</a>
	
       <? if($prodrow['mtitle']==""){?>
 <a href="subsubcategory.php?seop=seop&catid=<? echo $prodrow['catid']; ?>&subcat=<? echo $prodrow['subcatid']; ?>&prodid=<? echo $prodrow['pdid']; ?>">
         <img src="images/icon_edit_metatags_off.gif" alt="Meta Tags Undefined" title=" Meta Tags Undefined " border="0" style="padding-left:5px; padding-right:5px;" />          </a>	
          <? } 
		     else
		     {?>
           
 <a href="subsubcategory.php?seopedit=seopedit&catid=<? echo $prodrow['categiry_id'];?>&subcat=<? echo $prodrow['subcatid']; ?>&prodid=<? echo $prodrow['pdid']; ?>">
         <img src="images/icon_edit_metatags_on.gif" alt="Meta Tags Defined" title="Meta Tags Defined" border="0" style="padding-left:5px; padding-right:5px;" />         </a>
         <? } ?>     </td>
                                <td class="dataTableContent" align="center" >
							
							
<? if($_GET['pid']==$prodrow['pdid'])
 {

$selrow=mysql_fetch_array(mysql_query("select count(*) as lax from products1 where categeryid=".$_GET['catid']." 
and subcatid=".$_GET['subcat']."  and subsubcatid=0"));
		      $cou=$selrow['lax'];
				
		   ?> 
		   <form name="form1" action="productinsert1.php?action=seld" method="post" enctype="multipart/form-data">
		    
		     <input type="hidden" name="catid" value="<? echo $prodrow['catid']; ?>"  />
			  <input type="hidden" name="subcat" value="<? echo $prodrow['subcatid']; ?>"  />
		
			  
			 
			<input type="hidden" name="pid" value="<? echo $prodrow['pid'];?>" />			 
		 <select name="selid" class="index_text"  style="width:50px;" onChange="document.form1.submit()">
                <? for($i=0;$i<=$cou;$i++)  
				{
				?>
           <option value="<?  echo $i; ?>"><? echo $i;?></option>
              <? }  ?>
              </select>
			  </form>
			  
			  <? } else
			     {
		       ?>
			  
<a href="subsubcategory.php?edit=yes&catid=<? echo $prodrow['catid'];?>&subcat=<? echo $prodrow['subcatid'];?>&pid=<?  echo $prodrow['pid']; ?>" class="cate">
			  <? echo  $prodrow['deselect'] ?>	</a>
		 
	          <? } ?>
								
								
			</td>
								      </tr>
							
				<? }?>
							
							
							  <!---->
                        </table>						</td>
                      </tr>
                      <tr>
                        <td width="16%" height="35">&nbsp;</td>
                        <td width="13%" align="center">
						<a href="addcategory.php">
                           <img src="images/button_back.gif" alt="Back" border="0" title="Back" /></a></td>
                <?php /*?>        <td width="17%" align="left"><a href="subsubcategory.php?subsub=subsub&catid=<? echo $_GET['catid'] ?>&subcat=<? echo $_GET['subcat'] ?>"><img src="images/button_new_category1.gif" alt="New Sub Category" border="0" title="New Sub Category"/></a></td><?php */?>
                        <td width="18%">
					<a href="addproduct1.php?catid=<? echo $_GET['categiry_id'] ?>&subcat=<?php echo $_GET['subcat'];?>">	
					<img src="images/button_new_product.gif" alt="New Product" border="0" title="New Product" />					</a></td>
                        <td width="36%">&nbsp;</td>
                      </tr>
                    </table></td>
                    <td width="30%" valign="top">
				   
			
				   
				 <?php /*?>  <? if($_GET['subsub']=='subsub' && $_GET['meta']!='meta')
				    {?><?php */?>
				    	
 					<?php /*?><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
             <form method="post" action="subsubcategoryinsert.php?action=add&catid=<? echo $_GET['catid'] ?>&subcat=<? echo $_GET['subcat'] ?>" enctype="multipart/form-data" onsubmit="return validate(this);">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Add New SubSub Category</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span id="errorMessage"></span></strong>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;"><strong><span class="dataTableHeadingContent"> Sub</span>Sub Category Name:</strong></td>
                        </tr>
                        <tr>
                          <td align="center"><span style="padding-left:25px;">
   <input type="text" name="subsubcategory" id="category1"
   value="<?php echo htmlspecialchars(stripslashes($_GET['subcategory']),ENT_QUOTES) ?>" size="18" />
                          </span></td>
                        </tr>
                        <tr>
                          <td align="left"><?php if($_GET['error'])
				  {
				  echo "<font color=#FF0000>";
				     echo 'Sub Category Already Exists';
					  echo "</font>";
					 
					 } ?>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span class="dataTableHeadingContent"> Sub</span>Sub Category Discription: </strong></td>
                        </tr>
                        <tr>
                          <td align="center">
				<textarea name="subsubcatdes" id="description1" wrap="soft" cols="35" rows="10"></textarea></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><label>
                          <input name="image" type="image" src="images/button_save.gif" width="65" height="22" />
                          </label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table><?php */?>
				
					<?php /*?><? }  elseif($_GET['ssadd']=='ssadd'){?>
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
             <form method="post" action="subcategoryinsert.php?action=add&catid=<? echo $_GET['catid'] ?>" enctype="multipart/form-data">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Add New SubSub Category</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                          <tr>
                          <td height="20" align="center" style="padding-left:5px;"><span class="style2"><img src="images/tick.gif" />SubSub Category Added Successfully</span></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><a href="addsubcategory.php?subcat=subcat&catid=<? echo $_GET['catid'] ?>">	
					<img src="images/button_new_category1.gif" alt="New Sub Category" border="0" title="New Sub Category"/></a></td>
                        </tr>
                    
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table><?php */?>
					
					
							<? if($_GET['padd']=='padd'){?>
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
       
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Add New Product</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                          <tr>
                          <td height="20" align="center" style="padding-left:5px;"><span class="style2"><img src="images/tick.gif" />Product Added Successfully</span></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">
						<a href="addproduct1.php?catid=<? echo $_POST['catid'] ?>&subcat=<? echo $_POST['subcat']?>">	
					<img src="images/button_new_product.gif" alt="New Product" border="0" title="New Product" />
					</a></td>
                        </tr>
                    
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	
                    </table>
					
								<?  }  elseif($_GET['pedit']=='pedit'){?>
					
					
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
             <form method="post" action="subcategoryinsert1.php?action=add&catid=<? echo $_GET['categiry_id'] ?>" enctype="multipart/form-data">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Edit  <span class="style2">successfully</span></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                          <tr>
                          <td height="20" align="center" style="padding-left:5px;"><span class="style2"><img src="images/tick.gif" />Product Modified successfully</span></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"></td>
                        </tr>
                    
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table>
		
		<?php /*?>	<? } elseif($_GET['edit']=='edit')
			         {
			$sql="Select * from subsub_cat where subsubid=".$_GET['subsub']; 
					  $sqlexe=mysql_query($sql);
					  $row=mysql_fetch_array($sqlexe);?>	<?php */?>	
					<!---->
					<?php /*?><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
      <form method="post" action="subsubcategoryinsert.php?action=edit" enctype="multipart/form-data" 
	  onsubmit="return editcat(this);">
                        <tr>
             <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent"> Edit SubSub Category</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span id="errorMessage"></span></strong>&nbsp;</td>
                        </tr>
                        <tr>
                         <td height="20" align="center" style="padding-left:5px;">
			<span class="style2"><?php if($_GET['suc'])
				  {
				 
				     echo "<img src=\"images/tick.gif\" />";
					 
					 echo 'Modified successfully';
					
					 
					 } ?></span></td>
                        </tr>
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;"><strong><span class="dataTableHeadingContent">SubSub </span>Category Name:</strong></td>
                        </tr>
                        <tr>
                          <td align="center"><span style="padding-left:25px;">
			 <input type="text" name="subsubcategory" id="category1"  
	  value="<?php echo $row['subsubname'] ?>" size="22" />
	  
	  <input type="hidden" name="catid" value="<? echo $_GET['catid']; ?>"  />
	  
	   <input type="hidden" name="subcat" value="<? echo  $_GET['subcat']; ?>"  />
	   
	   
	    <input type="hidden" name="subsub" value="<? echo  $_GET['subsub']; ?>"  />
	   
	    
	   
	  </span></td>
	  
                        </tr>
                        <tr>
                          <td align="left"><?php if($_GET['error'])
				  {
				  echo "<font color=#FF0000>";
				     echo 'Category Already Exists';
					  echo "</font>";
					 
					 } ?>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span class="dataTableHeadingContent">SubSub </span> Category Discription: </strong></td>
                        </tr>
                        <tr>
                          <td align="center">
				<textarea name="subsubcatdes" id="description1" wrap="soft" cols="35" rows="10"><? echo stripslashes($row['subsubdes']); ?></textarea></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><label>
                          <input name="image" type="image" src="images/button_edit.gif" width="65" height="22" />
                          </label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table><?php */?>
					
					<? } elseif($_GET['delete']=='delete')
			      
				   {?>
					
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
               <form method="post" action="productinsert1.php?action=delete" enctype="multipart/form-data">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Delete Product</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">
						  <input type="hidden" name="catid" value="<?  echo $_GET['categiry_id']; ?>"/>
						  
						    <input type="hidden" name="subcat" value="<? echo $_GET['subcat']; ?>" />
						  
				
							
							<input type="hidden" name="pdid" value="<? echo $_GET['prodid']; ?>" />
						  
						  &nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;">Are you sure you want to delete this Product?&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">
					   
					  
					   <input type="image" src="images/button_delete.gif" border="0" />
						
						
						
					</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                      
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
						</form>
                    	
                    </table>	
					<? } elseif($_GET['pdel']=='pdel')
			      
				   {?>
					
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
               
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Delete Product</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><span class="style2"><img src="images/delete.gif"/>Delete successfully</span></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                      
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
					
                    	
                    </table>
					
					<?php /*?><? } elseif($_GET['sdelete']=='sdelete')
			         {?><?php */?>
					
				<?php /*?><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
               <form method="post" action="subsubcategoryinsert.php?action=delete" enctype="multipart/form-data">
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Delete subsub Category</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">
					  <input type="hidden" name="catid" value="<?  echo $_GET['catid']; ?>"/>
						  
						    <input type="hidden" name="subcat" value="<? echo $_GET['subcat']; ?>" />
						  
						    <input type="hidden" name="subsub" value="<? echo $_GET['subsub']; ?>" />
							
						
						  
						  &nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;">Are you sure you want to delete this subsub category?&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">
					   
					  
					   <input type="image" src="images/button_delete.gif" border="0" />
						
						
						
					</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                      
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
						</form>
                    	
                    </table><?php */?>	
					
				<?php /*?>	<? } elseif($_GET['cdel']=='cdel')
			      
				   {?><?php */?>
					
					<?php /*?><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
               
                        <tr>
                          <td height="17" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Delete Subsub Category</td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center"><span class="style2"><img src="images/delete.gif"/>Delete successfully</span></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                      
                        <tr>
                          <td align="center"><label></label></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
					
                    	
                    </table><?php */?>
					
				<?php /*?>	<? } elseif($_GET['seo']=='seo')
					
					{?><?php */?>
                    
         <!---->   
         <?php /*?><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
     <form method="post" action="subsubcategoryinsert.php?action=metatag" enctype="multipart/form-data">
                        <tr>
                          <td height="18" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent"> Categories Meta Tags Definitions</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span id="errorMessage"></span></strong>&nbsp;</td>
                        </tr>
                       
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left"><span style="padding-left:45px;">
			 <strong>Title:</strong>
			 <input type="text" name="mtitle" id="mtitle" size="22" />
	  
	  <input type="hidden" name="catid" value="<? echo $_GET['catid']; ?>"  />
      <input type="hidden" name="subcat" value="<? echo $_GET['subcat']; ?>"  />
      <input type="hidden" name="subsub" value="<? echo  $_GET['subsub']; ?>"  />
       
      
      
                          </span></td>
                        </tr>
                        <tr>
                          <td align="left"></td>
                        </tr>
                        <tr>
                          <td align="left" style="padding-left:45px;"><strong>Keywords:</strong> </td>
                        </tr>
                        <tr>
                          <td align="right"><textarea name="mkeywords" id="mkeywords" wrap="soft" cols="35" rows="10"></textarea></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                          <tr>
                          <td align="left" style="padding-left:45px;"><strong>Description: </strong></td>
                        </tr>
                        <tr>
                          <td align="right">
				<textarea name="mdescription" id="mdescription" wrap="soft" cols="35" rows="10"></textarea></td>
                        </tr>


                        <tr>
                          <td align="center">
                            <p>&nbsp;                              </p>
                            <p>
                            <input name="image" type="image" src="images/button_save.gif" width="65" height="22" />
                            
                                         <a href="addsubcategory.php?catid=<? echo $_GET['catid']; ?>&subcat=<? echo $_GET['subcat']; ?>"><img src="images/button_cancel.gif"  border="0"/></a>
                              
    
                            
                            </p></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table><?php */?>
                 <?php /*?>   <? } elseif($_GET['seoedit']=='seoedit' && $_GET['meta']=='meta')
					
					{
						
				$sql="Select * from subsub_cat where subsubid=".$_GET['subsub']; 
					  $sqlexe=mysql_query($sql);
					  $row=mysql_fetch_array($sqlexe);	
						
						
						?><?php */?>
   <!---->
    
    <?php /*?><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
     <form method="post" action="subsubcategoryinsert.php?action=metatag" enctype="multipart/form-data">
                        <tr>
                          <td height="18" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Categories Meta Tags Definitions</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span id="errorMessage"></span></strong>&nbsp;</td>
                        </tr>
                       
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;"><?php if($_GET['suc'])
				  {
				 
				     echo "<img src=\"images/tick.gif\" />";
					 
					echo 'Meta Tag Added Successfully';
					
					 
					 } ?>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left"><span style="padding-left:45px;">
			 <strong>Title:</strong>
			 <input type="text" name="mtitle" id="mtitle" size="22"
               value="<?php echo htmlspecialchars(stripslashes($row['mtitle']),ENT_QUOTES)  ?>"/>
	  
		  <input type="hidden" name="catid" value="<? echo $_GET['catid']; ?>"  />
       <input type="hidden" name="subcat" value="<? echo $_GET['subcat']; ?>"  />
       <input type="hidden" name="subsub" value="<? echo  $_GET['subsub']; ?>"  />
                          </span></td>
                        </tr>
                        <tr>
                          <td align="left"></td>
                        </tr>
                        <tr>
                          <td align="left" style="padding-left:45px;"><strong>Keywords:</strong> </td>
                        </tr>
                        <tr>
                          <td align="right">
                    <textarea name="mkeywords" id="mkeywords" wrap="soft" cols="35" rows="10">
                    <? echo stripslashes($row['mkeywords']); ?></textarea></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                          <tr>
                          <td align="left" style="padding-left:45px;"><strong>Description: </strong></td>
                        </tr>
                        <tr>
                          <td align="right">
				<textarea name="mdescription" id="mdescription" wrap="soft" cols="35" rows="10">
                <? echo stripslashes($row['mdescription']); ?></textarea></td>
                        </tr>


                        <tr>
                          <td align="center">
                            <p>&nbsp;                              </p>
                            <p>
                            
                            
                              <input name="image" type="image" src="images/button_save.gif" width="65" height="22" />
                              
     <a href="addsubcategory.php?catid=<? echo $_GET['catid']; ?>&subcat=<? echo $_GET['subcat']; ?>"><img src="images/button_cancel.gif"  border="0"/></a>
                              
                            </p></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table><?php */?>
                    <? } elseif($_GET['seop']=='seop')
					
					{?>
    
    <!---->
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
     <form method="post" action="productinsert.php?action=metatag" enctype="multipart/form-data">
                        <tr>
                          <td height="18" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent"> Products Meta Tags Definitions</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span id="errorMessage"></span></strong>&nbsp;</td>
                        </tr>
                       
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;">&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left"><span style="padding-left:45px;">
			 <strong>Title:</strong>
			 <input type="text" name="mtitle" id="mtitle" size="22" />
	  
	  <input type="hidden" name="catid" value="<? echo $_GET['catid']; ?>"  />
      <input type="hidden" name="subcat" value="<? echo $_GET['subcat']; ?>"  />
      
       <input type="hidden" name="prodid" value="<? echo $_GET['prodid']; ?>"  />
      
      
                          </span></td>
                        </tr>
                        <tr>
                          <td align="left"></td>
                        </tr>
                        <tr>
                          <td align="left" style="padding-left:45px;"><strong>Keywords:</strong> </td>
                        </tr>
                        <tr>
                          <td align="right"><textarea name="mkeywords" id="mkeywords" wrap="soft" cols="35" rows="10"></textarea></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                          <tr>
                          <td align="left" style="padding-left:45px;"><strong>Description: </strong></td>
                        </tr>
                        <tr>
                          <td align="right">
				<textarea name="mdescription" id="mdescription" wrap="soft" cols="35" rows="10"></textarea></td>
                        </tr>


                        <tr>
                          <td align="center">
                            <p>&nbsp;                              </p>
                            <p>
                            <input name="image" type="image" src="images/button_save.gif" width="65" height="22" />
               <a href="addsubcategory1.php?catid=<? echo $_GET['catid']; ?>&subcat=<? echo $_GET['subcat']; ?>"><img src="images/button_cancel.gif"  border="0"/></a>
                              
    
                            
                            </p></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table>
    
       <? } elseif($_GET['seopedit']=='seopedit')
					
					{
						
				$sql="select * from products1 where pdid=".$_GET['prodid'];
			 $result = mysql_query($sql) or die('Cannot get product. ' . mysql_error());
			 $row    = mysql_fetch_assoc($result);	
						
						
						?>
   <!---->
    
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
     <form method="post" action="productinsert1.php?action=metatag" enctype="multipart/form-data">
                        <tr>
                          <td height="18" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent"> Products Meta Tags Definitions</td>
                        </tr>
                        <tr>
                          <td align="center"><strong><span id="errorMessage"></span></strong>&nbsp;</td>
                        </tr>
                       
                        <tr>
                          <td height="20" align="center" style="padding-left:5px;"><?php if($_GET['suc'])
				  {
				 
				     echo "<img src=\"images/tick.gif\" />";
					 
					echo 'Meta Tag Added Successfully';
					
					 
					 } ?>&nbsp;</td>
                        </tr>
                        <tr>
                          <td align="left"><span style="padding-left:45px;">
			 <strong>Title:</strong>
			 <input type="text" name="mtitle" id="mtitle" size="22"
               value="<?php echo htmlspecialchars(stripslashes($row['mtitle']),ENT_QUOTES)  ?>"/>
	  
		  <input type="hidden" name="catid" value="<? echo $_GET['catid']; ?>"  />
          <input type="hidden" name="subcat" value="<? echo $_GET['subcat']; ?>"  />
       <input type="hidden" name="prodid" value="<? echo $_GET['prodid']; ?>"  />
                          </span></td>
                        </tr>
                        <tr>
                          <td align="left"></td>
                        </tr>
                        <tr>
                          <td align="left" style="padding-left:45px;"><strong>Keywords:</strong> </td>
                        </tr>
                        <tr>
                          <td align="right">
                    <textarea name="mkeywords" id="mkeywords" wrap="virtual" cols="35" rows="10">
                    <? echo stripslashes($row['mkeywords']); ?></textarea></td>
                        </tr>
                        <tr>
                          <td align="center">&nbsp;</td>
                        </tr>
                          <tr>
                          <td align="left" style="padding-left:45px;"><strong>Description: </strong></td>
                        </tr>
                        <tr>
                          <td align="right">
				<textarea name="mdescription" id="mdescription" wrap="soft" cols="35" rows="10">
                <? echo stripslashes($row['mdescription']); ?></textarea></td>
                        </tr>


                        <tr>
                          <td align="center">
                            <p>&nbsp;                              </p>
                            <p>
                            
                            
                              <input name="image" type="image" src="images/button_save.gif" width="65" height="22" />
                              
       <a href="addsubcategory.php?catid=<? echo $_GET['catid']; ?>&subcat=<? echo $_GET['subcat']; ?>"><img src="images/button_cancel.gif"  border="0"/></a>
                              
                            </p></td>
                        </tr>
                        <tr>
                          <td>&nbsp;</td>
                        </tr>
                    	</form>
                    </table>
    <? }?>     
                    
                    
					
					
					
					
					<!---->
							
							
							
							
							
							
							</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>

          <tr>
            <td><? require_once("footer.php"); ?></td>
          </tr>
          <tr>
            <td height="200">&nbsp; </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
