{* <?php die('duotaopu');?> *}
{include file="common/header.php"}
<body class="body-main">
<div class="admin_notice"><span>管理操作：</span><a href="?m=gonggao&a=edit&id=0">添加公告</a>　┊　<a href="?m=gonggao">公告管理</a></div>
<br>
<ul id="admin_sub_title">
	<li class="sub"><a>公告管理</a></li>
	<li class="unsub"><a class="hand" id="search">搜索公告</a></li>
</ul>
<script>
$(function() {
	$("#search").click(function(){
		art.dialog({
			id:'s',
			title:'搜索',
			content:'关键词：<input name="keyword" type="text" class="input" id="keyword" value="" />',
			ok: function(){
				if($('#keyword').val()!='') location.href="?m=gonggao&q="+$('#keyword').val();
			}
		});
	});
});
</script>
<div id="admin_right_b">

  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <form action="?m=gonggao&a=do&do=del&id=check" method="post" onSubmit="return confirm('确定要执行选定的操作吗？');"> 
	<tr>
	  <td align='center' width="30" class="title_bg">选择</td>
	  <td width="50" align='center' class="title_bg">id</td>
      <td class="title_bg">标题</td>
	  <td width="140" align='center' class="title_bg">添加时间</td>
      <td width="100" align='center' class="title_bg">管理</td>
    </tr>
{foreach $list as $vo}
    <tr onmouseover=this.bgColor='#EDF8FE'; onmouseout=this.bgColor='#ffffff'; bgcolor='#ffffff'>
	  <td height="25" align="center"><input name="ids[]" type="checkbox" value="{$vo.id}"></td>
	  <td align="center">{$vo.id}</td>
      <td><a href="?m=gonggao&a=edit&id={$vo.id}&p={$p}" style="{$vo.style}">{$vo.title}</a></td>
	  <td align="center">{$vo.addtime}</td>
      <td align="center"><a href="?m=gonggao&a=edit&id={$vo.id}&p={$p}">编辑</a> <a href="?m=gonggao&a=do&do=del&id={$vo.id}" onclick='return confirm("确定删除?删除后不可恢复!");'>删除</a></td>
    </tr>
{foreachelse}
	<tr bgcolor='#ffffff'>
		<td colspan='5' height="25" align="center">暂无公告！</td>
	</tr>
{/foreach}
	<tr>
      <td colspan="5" height='30' class="tdbg">
	  <span class="right"></span>&nbsp;&nbsp;<input name="chkall" type="checkbox" id="chkall" onclick=checkall(this.form) value="checkbox">&nbsp;<label for="chkall">全选</label>  
              <select name="action">
			  <option>→操作</option>
			  <option value="del">删除公告</option>
			  </select>
		<div class="aui_buttons"  style="text-align:left;display: inline;"><button type="submit" class="aui_state_highlight">执行</button></div>
</td>
    </tr>
	
	<tr>
      <td colspan="5" class="tdbg content_page" align="center"><a>共 {$total} 条</a>&nbsp;{$pages}</td>
	</tr>
	
	</form>
  </table>

<div class="runtime"></div>  
</div>
</body>
</html>