<?php include(pe_tpl('header.html'));?>
<div class="right fr">
	<div class="now">
		<div class="fl now1"></div>
		<div class="fl now2">
			<span class="fl">文章列表</span>
			<span class="fr fabu mat8"><a href="admin.php?mod=notice&act=add">发布文章</a></span>
		</div>
		<div class="fl now3"></div>
		<div class="clear"></div>
	</div>
	<div class="spqh mat8">
		<div class="fr searbox mat3">
			<form method="get">
				<input type="hidden" name="mod" value="<?php echo $_g_mod ?>" />
				<input type="hidden" name="act" value="<?php echo $_g_act ?>" />
				<span class="fl">文章名称：<input type="text" name="keyword" value="<?php echo $_g_keyword ?>" class="inputtext inputtext_200" /></span>
				<select name="noticeclass_id" class="inputselect fl mal5 mar5">
					<option value="">所有分类</option>
					<?php foreach($cache_noticeclass as $v):?>
					<option value="<?php echo $v['noticeclass_id'] ?>" <?php if($k==$_g_user_level):?>selected="selected"<?php endif;?>><?php echo $v['noticeclass_name'] ?></option>
					<?php endforeach;?>
				</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list mat5">
	<tr>
		<td class="bgtt" align="center" width="10"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'notice_id')" /></td>
		<td class="bgtt" align="center" width="40">ID号</td>
		<td class="bgtt" align="center" width="110">文章分类</td>
		<td class="bgtt" align="center">文章名称</td>
		<td class="bgtt" align="center" width="130">发布时间</td>
		<td class="bgtt" align="center" width="50">点击</td>
		<td class="bgtt" align="center" width="50">置顶</td>
		<td class="bgtt" align="center" width="70">操作</td>
	</tr>
	<?php foreach($info_list as $v):?>
	<tr>
		<td align="center"><input type="checkbox" name="notice_id[]" value="<?php echo $v['notice_id'] ?>"></td>
		<td align="center"><?php echo $v['notice_id'] ?></td>
		<td align="center"><a href="index.php/notice/list?class=<?php echo $v['noticeclass_id'] ?>" target="_blank"><?php echo $cache_noticeclass[$v['noticeclass_id']]['noticeclass_name'] ?></a></td>
		<td><a href="index.php/notice/<?php echo $v['notice_id'] ?>" target="_blank"><?php echo $v['notice_name'] ?></a></td>
		<td align="center"><?php echo pe_date($v['notice_atime']) ?></td>
		<td align="center"><?php echo $v['notice_clicknum'] ?></td>
		<td align="center">
			<?php if($v['notice_state']):?>
			<a href="admin.php?mod=notice&act=statesql&id=<?php echo $v['notice_id'] ?>&state=0" class="cgreen">已置顶</a>
			<?php else:?>
			<a href="admin.php?mod=notice&act=statesql&id=<?php echo $v['notice_id'] ?>&state=1" class="cred">未置顶</a>
			<?php endif;?>
		</td>
		<td align="center">
			<a href="admin.php?mod=notice&act=edit&id=<?php echo $v['notice_id'] ?>" class="admin_edit">修改</a>
			<a href="admin.php?mod=notice&act=delsql&id=<?php echo $v['notice_id'] ?>" class="admin_del" onclick="return pe_cfone('删除')">删除</a>
		</td>
	</tr>
	<?php endforeach;?>
	<tr>
		<td class="bgtt"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'notice_id')" /></td>
		<td class="bgtt" colspan="8">
			<span class="fl"><button href="admin.php?mod=notice&act=delsql" onclick="return pe_cfall(this, 'notice_id', 'form', '批量删除')">批量删除</button></span>
			<span class="fenye"><?php echo $db->page->html ?></span>
		</td>
	</tr>
	</table>
	</form>
</div>
<?php include(pe_tpl('footer.html'));?>