<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.metadata.js"></script>
</head>
<body>
 <div class="page_tilte">
        &nbsp;&nbsp;信息公告管理 | <a href="<?php echo U('News/add');?>">添加信息公告</a>
    </div>
    <br />
    <form id="form1" name="form1" method='get' action='' style='margin: 0px'>
    <table id="DataListing" cellspacing="1" cellpadding="0" width="100%" align="Center" border="0" style="font-size: 12px" bgcolor="#C1DAD7">
  <tr class="repeaterHead" height="32px" style="text-align: center">
    <td>
                信息标题
            </td>
    <td>
                信息分类
            </td>
    <td>
                更新日期
            </td>
    <td>
                操作
            </td>
  </tr>

  <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr class="repeaterTd0" style="text-align:center;">
    <td><?php echo ($vo["title"]); ?></td>
    <td><?php if($vo['type'] == 1): ?>最新公告<?php else: ?>媒体报道<?php endif; ?></td>
    <td><?php echo (date('Y-m-d H:i:s',$vo["posttime"])); ?></td>
    <td><a href='<?php echo U('News/edit',array('id'=>$vo['id']));?>'>编辑</a> | <a href='<?php echo U('News/delete',array('id'=>$vo['id']));?>' onclick='return cons()'>删除</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>

  <tr>
    <td class="PagerClass" colspan="5"><?php echo ($page); ?></td>
  </tr>
</table>
 </form>
<script type="text/javascript">
  function cons(){
      var msg=confirm("确认操作？");
      if(msg!="0")
      {
          return true;
      }
      else
      {
          return false;
      }
  }
</script>
</body>
</html>