<?php include pTemplate("header");?>
     <div id="loadingbar"></div>
     
     <div id="main" class="mainPanel wd txt_left">
    <div class="f_size"><div class="notice_newstyle"><div class="new_title_box"><h1 class="new_title left">帮助管理</h1><div class=" right"><a class="btn btnNormal bt_upload" opt="helpcat" title="" href="javascript:'';">添加分类</a><a class="btn btnNormal bt_upload " href="<?php echo SITEURL;?>?mod=system&do=help&c=addhelp<?php if($catid) { ?>&catid=<?php echo $catid;?><?php } ?>">添加帮助</a></div><div class="info left">(共20条帮助)</div><div class="caption" style="text-align:right;display:none;">
					
	
</div></div>
<div class="content">
<div class="catalog">
		<ul>
			
						<li <?php if($catid=='new') { ?>class="active"<?php } ?>><a href="<?php echo SITEURL;?>?mod=system&do=help&catid=new">最新问题</a></li>
						<li <?php if($catid=='hot') { ?>class="active"<?php } ?>><a href="<?php echo SITEURL;?>?mod=system&do=help&catid=hot">热门问题</a></li>
						<li class="spl"></li>
						<?php foreach((array)$help_cat as $key=>$item) {?>
						<li <?php if($catid==$item['catid']) { ?>class="active"<?php } ?>><a href="<?php echo SITEURL;?>?mod=system&do=help&catid=<?php echo $item['catid'];?>"><?php echo $item['name'];?></a></li>
						<?php }?>	
                        
                        
		</ul>
        
	</div>

<table class="help_table">

<tbody>
<tr style="cursor: auto"><td width="33px" align="left"></td><td width="610px" align="left"><h2><?php echo $help_catname['name'];?> 
<?php if($help_catname['catid']) { ?>
<span style="font-size:12px; font-weight:normal"><a opt="helpcat" href="javascript:'';" title="<?php echo $help_catname['name'];?>" cid="<?php echo $help_catname['catid'];?>">修改</a>&nbsp;&nbsp;<a href="<?php echo SITEURL;?>?mod=system&do=help&c=delhelpcat&catid=<?php echo $help_catname['catid'];?>" onclick="return confirm('您确定要删除吗，如不确定请点取消')">删除</a></span>
<?php } ?>
</h2></td></tr>
</tbody>

<tbody>

<?php foreach((array)$arrhelp as $key=>$item) {?>
<tr class="notice_send"><td width="33px" align="left"><span class="help_ico"></span></td><td width="610px" align="left"><a href="<?php echo SITEURL;?>?mod=system&do=help&c=content&catid=<?php echo $item['catid'];?>&id=<?php echo $item['id'];?>&authcode=<?php echo $item['idauthcode'];?>"><div class="notice_t" style="width: 570px;"><h2 style="font-weight:lighter;"><?php echo $item['title'];?></h2></div></a></td><td width="58px" align="left"><a class="bt_del" title="删除" href="<?php echo SITEURL;?>?mod=system&do=help&c=delhelp&catid=<?php echo $item['catid'];?>&id=<?php echo $item['id'];?>&authcode=<?php echo $item['idauthcode'];?>" onclick="return confirm('您确定要删除吗，如不确定请点取消')"></a>&nbsp;&nbsp;<a class="bt_rename" title="编辑" href="#compose/mail/compose,ZA0308K9qNmuT6RaqSzBjHcPH~pg2a,0"></a></td></tr>
 <?php }?>


</tbody>
</table>

<div class="notice_page">
	
	<div class="pagination">
			<?php echo $pageinfo;?>
		</div>
</div>
<div class="clr"></div>
</div>
</div></div>
</div>

<?php include pTemplate("footer");?>

</body>
</html>