<!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>
<title>系统后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/public.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/style.css" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top">
	<!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">访问限制搜索</div>
        <table cellspacing="1" cellpadding="4" class="tab"><form id="form1" name="form1" method="post" action="<?php echo $this->installdir;?>deny/index">
			   <tr class="row">
				<td width="14%" class="align-center">搜索IP：</td>
				<td>
			     <input name="keyword" type="text" id="keyword" value="<?php echo $_REQUEST['keyword'];?>" />				</td>
			  </tr>
			   <tr class="row">
			     <td class="align-center">&nbsp;</td>
			     <td><input name="Submit" type="submit" class="btn" value="搜索" /></td>
	        </tr>
        </form>
        </table></div>
		<br />
		<div class="BlockBar">访问限制资源列表</div>
		<table cellspacing="1" cellpadding="4" class="tab">
          <tr class="sub align-center">
            <td width="67" class="align-center">编号</td>
            <td width="139" class="align-center">IP段</td>
            <td width="305" class="align-center">截至时间</td>
            <td width="183" class="align-center">封锁描述</td>
            <td width="45" class="align-center">状态</td>
            <td width="44" class="align-center">管理</td>
          </tr>
          <?php
          if (count($this->deny)>0){
          	foreach ($this->deny as $rs){?>
			   <tr class="row">
				<td class="align-center"><?php echo $rs['id'];?></td>
				<td><?php echo long2ip($rs['sip']);?>/<?php echo long2ip($rs['eip']);?></td>
				<td class="align-center"><?php echo date('Y-m-d H:i:s', $rs['stime']);?>/<?php echo date('Y-m-d H:i:s', $rs['etime']);?></td>
				<td class="align-center"><?php echo $rs['title'];?></td>
				<td class="align-center"><a href="<?php echo $this->installdir;?>deny/modify/id/<?php echo $rs['id'];?>/do/locked/"><?php echo $rs['locked'] ? '禁用' : '启用';?></a></td>
				<td class="align-center"><a href="<?php echo $this->installdir;?>deny/delete/id/<?php echo $rs['id'];?>" onclick="return confirm('确认删除吗')" >删除</a></td>
			  </tr>
			  <?php
          	}
          }else{
          	echo '<tr class="row align-center"><td colspan="6">没有找到任何记录!</td></tr>';
          }?>
        </table>
        <?php echo $this->printpage;?>
		</div>
      
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
    <td width="5"></td>
    <td width="150" align="center" valign="top">
    <?php
	echo $this->render('menu');
	?>
     </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>

