<?php require_once 'nsoconfig.php';?>
<?php include_once '_cake_top.php';?>
    <?php include_once '_cake_header.php';?>
    <div id="main-content">
        <?php include_once'_cake_searchbar.php'?>
        <div class="pml">
            <div class="pmlt1"><img src="images/ic_p.gif">产品中心</div>
            <div class="pro">
           	<?php
			$categories = getCategoriesByParent($nsoProductCatId);
			if ($categories): foreach ($categories as $category):
			?>
                <div class="prot"><img width="1" height="30" src="images/spac.gif"><img width="12" height="12" src="images/ic_pro.gif"><?php echo $category['name']?></div>
                <div class="proc">
                    <ul>
                    <?php
					$subcategories = getCategoriesByParent($category['id']);
					if ($subcategories): foreach ($subcategories as $sc):
						$image = NSO_UPLOAD_DIR_NAME . '/' . getImagePathBySize($sc['image'], '200');
					?>
                        <li><a href="product_list.php?cat=<?php echo $sc['id']?>"><img width="126" height="60" border="0" alt="<?php echo $sc['name']?>" src="<?php echo $image?>"></a>
                            <h2><a href="product_list.php?cat=<?php echo $sc['id']?>"><span class="STYLE3"><?php echo $sc['name']?></span></a></h2>
                        </li>
                    </ul>
                    <?php endforeach; endif;?>
                    <div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>
                </div>
            <?php endforeach; endif;?>
            </div>
            <div class="h15"></div>
        </div>
        <?php include_once '_cake_product_siderbar.php';?>
    </div>
    <?php include_once '_cake_footer.php';?>