<? ob_start();
session_start();
require_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=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" />




<style type="text/css">
<!--
.style2 {
	color: #21262A;
	font-size: 12px;
}
-->
</style>
</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>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="30" class="cate_pro">Main Category </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="43" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">ID</td>
                                <td width="170" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">Categories / Products</td>
                                <td width="108" align="center" bgcolor="#D7D6CC" class="dataTableHeadingContent">No of Categories &nbsp;</td>
                              
                               
                               
                            </tr>
                          
						  
						  
						  <!---->
					
						  
						      <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
                                <td class="dataTableContent" align="center" width="43">1</td>
                                <td align="left" class="dataTableHeadingContent" style="padding-left:15px;">
					<a href="addcategory.php?maincatid=1">
				    <img src="images/folder.gif" alt="Preview" title=" Preview " border="0" />				     </a>
				<a href="addcategory.php?maincatid=1" class="top_linkslax">
				Diamonds & Engagement	</a>				</td>
                                <td class="dataTableContent" align="center"> <?php 
 

		
											
		$num=mysql_fetch_array(mysql_query("select count(*) as sbcount from tblcategories where maincategory_id=1"));
		
		
		
		echo (is_numeric($num["sbcount"]))?$num["sbcount"]:$sb_null_char;
				
				
				?>&nbsp;</td>
                               
                                
						      </tr>
							  
							  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
                                <td class="dataTableContent" align="center" width="43">2</td>
                                <td align="left" class="dataTableHeadingContent" style="padding-left:15px;">
					<a href="addcategory.php?maincatid=2">
				    <img src="images/folder.gif" alt="Preview" title=" Preview " border="0" />				     </a>
				<a href="addcategory.php?maincatid=2" class="top_linkslax">
				Fine Jewelry	</a>				</td>
                                <td class="dataTableContent" align="center"> <?php 
 

		
											
		$num=mysql_fetch_array(mysql_query("select count(*) as sbcount from tblcategories where maincategory_id=2"));
		
		
		
		echo (is_numeric($num["sbcount"]))?$num["sbcount"]:$sb_null_char;
				
				
				?>&nbsp;</td>
                               
                                
						      </tr>
							
                        </table>						</td>
                      </tr>
                     
                    </table></td>
                    <td width="30%" valign="top">&nbsp;
				   
				   </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>
