<!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"/>
<style type="text/css">
  #tbody td{font-size:12px;}
  .tablelt {background:none}
</style>
</head>
<body>
<div class="titleDiv">
<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=ykt&{$vd['op']}" title="点击重新获取卡密列表资料" onclick="loadDisp(1)"><font color="#000">卡密列表</font></a></span> (共 <b><span id="tol1">{$vd['totlerow']}</span></b> 个)</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">
  <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:60px;left:30px;;width:750px;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=save" id="cform">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
      <td class="tablelt">手工充值模板名称：</td>
      <td class="tablert">
        <input type="text" name="name" size="24" /> <span class="spantip">添加商品时候，可以根据这个名称选择手动充值模板</span>
      </td>
    </tr>
    <tr>
      <td class="tablelt">计费方式类型：</td>
      <td class="tablert">
      <select name="chargetype">
        {#Option($vd['chargetype'], 0, 'name', 'value')}
      </select>
      </td>
    </tr>
    <tr>
      <td class="tablelt">自定义计费：</td>
      <td class="tablert">
      <input type="text" name="customchargetype" size="24" value=""/> <span class="spantip">多种选择请用半角逗号隔开，如：计点,包月,充币等等</span>
      </td>
    </tr>
    <tr>
      <td class="tablelt">帐户类型：</td>
      <td class="tablert">
      <input type="text" name="accounttype" size="24" value=""/> <span class="spantip">多种选择请用半角逗号隔开，如：盛大通行证,游戏账号，无选择不用填</span>
      </td>
    </tr>
    <tr>
      <td class="tablelt">是否需要输入密码：</td>
      <td class="tablert">
      <input type="radio" name="pwdneed" size="24" value="1" class="checkbox" onFocus="this.blur()"/> 需要 
      <input type="radio" class="checkbox" name="pwdneed" size="24" value="0" checked onFocus="this.blur()"/> 不需要
      </td>
    </tr>
    <tr>
      <td class="tablelt">充值区域类型：</td>
      <td class="tablert">
        <select name="areadisp">
          <option value="0" selected>无充值区域选择</option>
          <option value="1">有充值区域选择</option>
          <option value="2">购买客户自行输入</option>
        </select>
      </td>
    </tr>
    <tr>
      <td class="tablelt">充值服务器类型：</td>
      <td class="tablert">
        <select name="servdisp">
          <option value="0" selected>无充值服务器选择</option>
          <option value="1">有充值服务器选择</option>
          <option value="2">购买客户自行输入充值服务器</option>
        </select> <span class="spantip">主要用于部分游戏充值时需要选择具体哪组服务器</span>
      </td>
    </tr>
    <tr>
      <td class="tablelt">选择区服模板：</td>
      <td class="tablert">
        <select name="tpl" style="width:150px;">
          <option value="0" selected>无需区服</option>
          {#Option($vd['game'],0,'name','id')}
        </select> <span class="spantip">只有充值区域和服务器类型有选择的时候才生效</span>
      </td>
    </tr>
    <tr>
      <td class="tablelt">是否共享给自由商品：</td>
      <td class="tablert">
        <select name="shared">
        <option value="0">不共享给自有商品</option>
        <option value="1" selected>共享给自有商品</option>
        </select>
      </td>
    </tr>
    <tr>
      <td width="25%"></td>
      <td width="75%">
        <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="35px"><b>编号</b></td>
    <td width="70px"><b>模板名称</b></td>
    <td width="70px"><b>计费方式</b></td>
    <td width="70px"><b>帐号类型</b></td>
    <td width="40px"><b>密码</b></td>
    <td width="70px"><b>充值区域</b></td>
    <td width="70px"><b>定义区域</b></td>
    <td width="80px"><b>充值服务器</b></td>
    <td width="80px"><b>定义服务器</b></td>
    <td width="40px"><b>共享</b></td>
    <td width="90px"><b></b></td>
    <td class="endtd"><div class="infoicon" style="color:#ccc"><b><u>>></u></b></div></td>
  </tr>
</table>
<div id="content">
  <!--if($vd['totlerow'] == 0) {-->
  <table  width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right" colspan="20">无任何记录</td>
  </tr>
  </table>
  <!--}-->
  <table id="tbody"  border="0" cellspacing="0" cellpadding="0">
  <!--foreach($vd['items'] as $item) {-->
  <tr onmouseover="setoverbg(this)" onmouseout="setoutbg(this)">
    <td width="35px">{$item['id']}</td>
    <td width="70px">{$item['name']}</td>
    <td width="70px">{#ChargeType($item['chargetype'])}</td>
    <td width="70px">{#AccountType($item['accounttype'])}</td>
    <td width="40px">{#PwdNeed($item['pwdneed'])}</td>
    <td width="70px">{#AreaDisp($item['areadisp'])}</td>
    <td width="70px">{#AreaDispOp($item['areadisp'], $item['tpl'])}</td>
    <td width="80px">{#ServDisp($item['servdisp'])}</td>
    <td width="80px">{#ServDispOp($item['servdisp'], $item['tpl'])}</td>
    <td width="40px">{#Shared($item['shared'])}</td>
    <td width="90px">
      <a href="index.php?m=mod_b2b&c=game&a=TplDel&id={$item['id']}">删除</a>
      <a href="index.php?m=mod_b2b&c=game&a=TplDetail&id={$item['id']}">修改</a>
      <a href="index.php?m=mod_b2b&c=game&a=CreateHtml&id={$item['id']}"><font color="#ff0000">生成</font></a>
    </td>
    <td class="endtd"></td>
  </tr>
  <!--}-->
</table>
<input type="hidden" value="{$vd['totlepage']}" id="totlePage"/>
<input type="hidden" value="{$vd['thispage']}" id="thisPage"/>
</div>
<input type="hidden" value="index.php?m=mod_b2b&c=ykt&a=table&{$vd['op']}" id="url"/>
<div style="position:absolute;bottom:0px">
  <div class="tbBottom" colspan="20">
    <div style="float:left;padding-top:8px;">
      <strong> 总计 <font color="#ff0000"><span id="tol2">{$vd['totlerow']}</span></font> 条</strong>
    </div>
    <div style="float:right;text-align:right;">
    <form id="actionform" method="post" action="index.php?m=mod_b2b&c=ykt&{$vd['op']}" style="margin:0px;" onsubmit="loadDisp(1)">
    <div id="page"></div>
    <div style="float:left;margin-top:3px">
      每页显示<input type="text" name="nrows" size="2" value="{$vd['nrows']}" class="pagetxt" onMouseOver="iEvent('mouseover',this)" onFocus="iEvent('focus',this)" onBlur="iEvent('blur',this)" onMouseOut="iEvent('mouseout',this)" /> 个 
      到第<input type="text" name="page" size="2" value="{$vd['thispage']}" class="pagetxt" onMouseOver="iEvent('mouseover',this)" onFocus="iEvent('focus',this)" onBlur="iEvent('blur',this)" onMouseOut="iEvent('mouseout',this)" />页<input type="submit" value=" 确 定 &gt;&gt;" class="pagesub" />
    </div>
    </form>
    </div>
  </div>
</div>
<div id="load" style="display:none;">
  <div id="loadcontent" >页面加载中请稍等...</div>
</div>
<script type="text/javascript">
  var resizeidx = 1;
</script>
<script src="{$vd['sc']}js/table.js" type="text/javascript"></script>
</body>
</html>