<!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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
</head>
<body>
<div class="titleDiv" id="titleList">
<div style="float:left"><a href="index.php?a=home"><img src="{$vd['sc']}images/home.png" style="vertical-align:middle" border="0"/></a></div><div style="float:left;padding-top:8px;padding-left:3px;"><a href="index.php?a=home" title="回到后台首页"><font color="#000">桌面</font></a> <span style="font-size:7px;">>></span> <span style="font-size:12px;"><a href="index.php?m=mod_b2b&c=Game" title="点击重新区服列表" onclick="loadDisp(1)"><font color="#000">区服列表</font></a></span> <span style="font-size:7px;">>></span> {$vd['game']}</div>
<div style="float:right"><a href="index.php" onFocus="this.blur()" title="查看卡密相关帮助"><img src="{$vd['sc']}images/help.gif" style="vertical-align:middle" border="0"/></a></div>
</div>
<div class="mytitle" id="mytitle">
  <div class="titleOp4" onmouseover="this.className='iconbg4'" onmouseout="this.className='titleOp4'" onclick="disp('adddiv')"><samp title="点击刷新本页刷新数据,并保持原来勾选状态">
    <div style="padding-top:10px;padding-left:9px;"><img src="{$vd['sc']}images/add.gif" style="vertical-align:middle"/> 添加</div></samp>
  </div>  
  <div style="float:right;padding-top:4px;">
    <form action="index.php?m=mod_b2b&c=ykt&a=card" method="post" style="margin:0px 0px 0px 0px;" onsubmit="return searchSubmit()">
    <input type="text" name="keywords" size="16" value="" style="vertical-align:middle;" class="custsearch" onMouseOver="iEvent('mouseover',this)" onFocus="iEvent('focus',this)" onBlur="iEvent('blur',this)" onMouseOut="iEvent('mouseout',this)" />
    <input type="submit" value="区服搜索 &gt;&gt;" style="vertical-align:middle;" class="button"/>
    </form>
  </div>
</div>
<div id="adddiv" style="position:absolute;top:120px;left:230px;;width:320px;display:none">
  <div style="padding:20px;background:#F1F5FA;border:5px #75BCD7 solid">
  <div style="font-size:14px;font-weight:bold;padding:5px;float:left">添加区服</div>
  <div style="float:right;"><img src="{$vd['sc']}images/destroy.gif" onclick="disp('adddiv')" style="cursor:pointer"/></div>
  <form name="form1" method="post" action="index.php?m=mod_b2b&c=game&a=AreaSave">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
      <td width="25%">名称</td>
      <td width="75%"><input type="text" name="catname" size="25"/></td>
    </tr>
    <tr>
      <td width="25%">所属区域</td>
      <td width="75%">
        <select name="area">
        <option value="0">游戏区域</a>
        {#Option($vd['area'], 0, 'name', 'id')}
        </select>
      </td>
    </tr>
    <tr>
      <td width="25%">类型</td>
      <td width="75%">
        <input type="radio" name="areaserv" value="0" class="checkbox" checked onFocus="this.blur()"/> 区域
        <input type="radio" name="areaserv" value="1" class="checkbox" onFocus="this.blur()"/> 服务器
      </td>
    </tr>
    <tr>
      <td width="25%"></td>
      <td width="75%">
        <input type="hidden" name="game" value="{$vd['game']}"/>
        <input type="hidden" name="gameid" value="{$vd['gameid']}"/>
        <input type="submit" name="Submit" value="添 加" class="button" />
        <input type="button" name="Submit" value="取 消" onclick="disp('adddiv')" class="button"/>
      </td>
    </tr>
  </table>
  </form>
  </div>
</div>
<table id="thead" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="30px">
      <input name="chkall" id="chkall" type="checkbox" class="checkbox" onclick="CheckAll(this)" onFocus='this.blur()'/></td>
    <td width="35px"><b>编号</b></td>
    <td width="200px"><b>名称</b></td>
    <td width="60px"><b>类别</b></td>
    <td width="100px"><b></b></td>
    <td class="endtd"><div class="infoicon" style="color:#ccc"><b><u>>></u></b></div></td>
  </tr>
</table>
<div id="tip" style="display:none">
  <span id="tiptable">此页中所有 <b><span id="ncheck">0</span></b> 条记录已选中 </span> 
  <span id="tipspan">
    <a href="javascript:CheckTotle(<!--echo count($vd['items']);-->,0)">点此选择当前列表中所有 <b><!--echo count($vd['items']);--></b> 条记录>></a>
  </span>
</div>
<div id="content">
  <form id="cform" name="form" method="post" action="index.php?m=mod_b2b&c=agent&a=ItemDeal" onsubmit="return Check();">
  <table id="tbody"  border="0" cellspacing="0" cellpadding="0">
  <!--foreach($vd['area'] as $area) {-->
  <tr>
    <td width="30px">
      <input type="checkbox" name="id[]" id="idchk_{$area['id']}" class="checkbox" value="{$area['id']}" onclick="CheckThis(this)"/>
    </td>
    <td width="35px">{$area['id']}</td>
    <td width="200px">{$area['name']}</td>
    <td width="60px">区域</td>
    <td width="100px"><a href="index.php?m=mod_b2b&c=game&a=AreaDel&id={$area['id']}&gameid={$area['gameid']}">删除</a></td>
    <td class="endtd"></td>
  </tr>
  <!--foreach($vd['items'] as $item) { if($item['parentid'] == $area['id']) {-->
  <tr onmouseover="setoverbg(this)" onmouseout="setoutbg(this)">
    <td width="30px">
      <input type="checkbox" name="id[]" id="idchk_{$item['id']}" class="checkbox" value="{$item['id']}" onclick="CheckThis(this)"/>
    </td>
    <td width="35px">{$item['id']}</td>
    <td width="200px"> |--- {$item['name']}</td>
    <td width="60px">服务器</td>
    <td width="100px"><a href="index.php?m=mod_b2b&c=game&a=AreaDel&id={$item['id']}&gameid={$area['gameid']}">删除</a></td>
    <td class="endtd"></td>
  </tr>
  <!--}}-->
  <!--}-->
</table>
</form>
<input type="hidden" value="1" id="totlePage"/>
<input type="hidden" value="1" id="thisPage"/>
</div>
<input type="hidden" value="index.php?m=mod_b2b&c=ykt&a=table" id="url"/>
<div style="position:absolute;bottom:0px">
  <div class="tbBottom" id="tbBottom">
    <div style="float:left;padding-top:8px;">
      
    </div>
    <div style="float:right;text-align:right;">
    <div id="page"></div>
    </div>
  </div>
</div>
<div id="load" style="display:none;">
  <div id="loadcontent" >页面加载中请稍等...</div>
</div>
<script type="text/javascript">
//第一参数，后边保留显示的列数
//第二参数，除最后一个参数外的保留参数的总宽度
tRows   = <!--echo count($vd['items'])-->;
tInfoA  = Array(0,0);
totleRows = <!--echo count($vd['items'])-->;
deltxt  = "销毁后无法恢复，您确定进行销毁操作吗？";
thisaction = "销毁";
thisdel = 0;
statistics = 0;
var resizeidx = 2;
</script>
<script type="text/javascript">
//当前表格配置
<!--//tinfo-->
 tInfo = Array();
<!--//endtinfo-->
</script>
<script src="{$vd['sc']}js/tools.js" type="text/javascript"></script>
</html>