<?php
	include("header.tpl.php");
	include("bodytop.tpl.php"); 
	include("navigation.tpl.php"); 
?>

	<div class="g_navigation">
		<a href="index.php">网站首页</a> >> 网站地图
	</div>

 <div class="clear"></div>

<div id="artilemap" >
 <div class="rl_u">&nbsp;</div>
	<div class="content"><h2></h2>
	 <div class="clear"></div>
	<ul class="sitemap">
	<li>  <b><span class="sitemapmain"><?php echo $articlename?></span></b>
	</li>
<?php foreach($a_maincategory as $key => $val) {?>
		<li >
		<b ><a href="articledisplay.php?pid=0&categoryid=<?php echo $key?>" class="sitemapmain"><?php echo $val['categorytitle']?></a></b>

				<?php if($a_subcategory[$key]){ ?>
				<ul>
				<?php foreach($a_subcategory[$key] as $subkey => $subval){?>
				<li><a href="articledisplay.php?pid=<?php echo $subval['pid']?>&categoryid=<?php echo $subkey?>" class="sitemapsub"><?php echo $subval['categorytitle']?></a></li>
				<?php }?>
				</ul>
				<?php }?>

		</li>
		<?php }?>
		</ul>




<ul class="sitemap">
<li>
<b><a href="product.php" class="sitemapmain font_14">
<?php echo $productname?></a>
</b>
</li>

<?php foreach($p_maincategory as $key => $val) {?>
		<li>
		<b ><a href="productdisplay.php?pid=0&categoryid=<?php echo $key?>" class="sitemapmain"><?php echo $val['categorytitle']?></a></b>

				<?php if($p_subcategory[$key]){ ?>
				<ul>
				<?php foreach($p_subcategory[$key] as $subkey => $subval){?>
				<li><a href="productdisplay.php?pid=<?php echo $subval['pid']?>&categoryid=<?php echo $subkey?>" class="sitemapsub"><?php echo $subval['categorytitle']?></a></li>
				<?php }?>
				</ul>
				<?php }?>

		</li>
		<?php }?>
		</ul>



<ul class="sitemap">
<?php foreach($f_maincategory as $key => $val) {?>
		<li>
		<b>
		<span class="sitemapmain"><?php echo $val['forumtitle']?></span>
		</b>

				<?php if($f_subcategory[$key]){ ?>
				<ul>
				<?php foreach($f_subcategory[$key] as $subkey => $subval){?>
				<li>
				<a href="forumdisplay.php?forid=<?php echo $subkey?>" class="sitemapsub">
				<?php echo $subval['forumtitle']?>
				</a>
				</li>
				<?php }?>
				</ul>
				<?php }?>

		</li>
		<?php }?>
		</ul>





 <div class="clear"></div>



	  </div>
	   <div class="rl_d">&nbsp;</div>
	</div>

	<div class="clear"></div>
<?php
include("tail.tpl.php"); 
?>

