<!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" />
<script src="<?php echo $this->basedir;?>js/jquery.js" language="javascript"></script>
<script language="javascript">
$(document).ready(function() {
     $("#ta tr").mouseover(function(){
      $(this).addClass("over");
     });
     $("#ta tr").mouseout(function(){
      $(this).removeClass("over");
     });
	 $("#ta tr:even").addClass("double");
});
</script>
<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;?>netbar/index">
			   <tr class="row">
				<td width="18%" class="align-center">搜索关键词：</td>
				<td width="82%">
			     <input name="keyword" type="text" id="keyword" value="<?php echo $_REQUEST['keyword'];?>" />				</td>
			  </tr>
			   <tr class="row">
			     <td class="align-center">匹配项目：</td>
			     <td><input name="type" type="radio" class="radio" value="0" <?php if ($_REQUEST['type'] ==0) echo 'checked';?> />
		         匹配网吧名
	             <input name="type" type="radio" class="radio" value="1" <?php if ($_REQUEST['type'] ==1) echo 'checked';?> />
	             匹配网吧IP</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="1" class="tab" id="ta">
          <tr class="sub align-center">
            <td width="14%" class="align-center">网吧名</td>
            <td width="30%" class="align-center">IP段</td>
            <td width="19%" class="align-center">有效日期</td>
            <td width="10%" class="align-center">并发数</td>
            <td width="9%" class="align-center">联系人</td>
            <td width="18%" class="align-center">管理</td>
          </tr>
          <?php
          if (count($this->netbar)>0){
          	foreach ($this->netbar as $rs){?>
			   <tr class="row">
				<td class="align-center"><?php echo $rs['name'];?></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['lifetime']);?></td>
				<td class="align-center"><?php echo $rs['maxnum'];?></td>
				<td class="align-center" title="登录密码<?php echo $rs['pass'];?>"><?php echo $rs['username'];?></td>
				<td class="align-center" c><a href="<?php echo $this->installdir;?>netbar/modify/id/<?php echo $rs['id'];?>">编辑</a>&nbsp;<a href="<?php echo $this->installdir;?>netbar/delete/id/<?php echo $rs['id'];?>" onclick="return confirm('确认删除吗')">删除 </a>&nbsp;<a href="<?php echo $this->installdir;?>netbar/modify/id/<?php echo $rs['id'];?>/do/locked"><?php echo $rs['locked'] ? '锁定中' : '启用中';?></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>

