<?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>
		</div>
		<div class="fl now3"></div>
		<div class="clear"></div>
	</div>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list mat5">
	<tr>
		<td class="bgtt" align="center" width="40">ID号</td>
		<td class="bgtt" align="center" width="50">排序</td>
		<td class="bgtt" align="center">分类名称</td>
		<td class="bgtt" align="center" width="70">操作</td>
	</tr>
	<?php foreach($info_list as $v):?>
	<tr>
		<td align="center"><?php echo $v['noticeclass_id'] ?></td>
		<td align="center"><?php echo $v['noticeclass_order'] ?></td>
		<td align="center"><a href="index.php/notice/list?class=<?php echo $v['noticeclass_id'] ?>" target="_blank"><?php echo $v['noticeclass_name'] ?></a></td>
		<td align="center">
			<a href="admin.php?mod=noticeclass&act=edit&id=<?php echo $v['noticeclass_id'] ?>" class="admin_edit">修改</a>
			<a href="admin.php?mod=noticeclass&act=delsql&id=<?php echo $v['noticeclass_id'] ?>" class="admin_del" onclick="return pe_cfone('删除')">删除</a>
		</td>
	</tr>
	<?php endforeach;?>
	<form method="post" action="<?php echo $action ?>" id="form_add">
	<tr>
		<td align="center"><?php echo $info['noticeclass_id'] ?></td>
		<td align="center"><input type="text" name="info[noticeclass_order]" value="<?php echo $info['noticeclass_order'] ?>" class="inputtext inputtext_50" /></td>
		<td align="center"><input type="text" name="info[noticeclass_name]" value="<?php echo $info['noticeclass_name'] ?>" class="inputtext inputtext_400" /></td>
		<td align="center"><input type="button" id="form_addbutton" value="<?php if($act=='edit'):?>修改<?php else:?>增加<?php endif;?>" /></td>
	</tr>
	</form>
	<tr>
		<td class="bgtt" colspan="4">&nbsp;</td>
	</tr>
	</table>
</div>
<script type="text/javascript">
$(function(){
	$("#form_addbutton").click(function(){
		if ($(":input[name='info[noticeclass_name]']").val() == '') {
			alert('分类名称不能为空!');
		}
		else {
			$("#form_add").submit();
		}
	})
})
</script>
<?php include(pe_tpl('footer.html'));?>