<!--if($vd['table'] == 0){-->
{load(head)}
<style type="text/css">
  #tbody td{font-size:12px;}
  .tablelt {background:none}
</style>
<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> <font color="#000">模板列表</font> (共 <b><span id="tol1">{$vd['totlerow']}</span></b> 个)</div>
<div style="float:right"><a href="index.php?m=mod_home&a=Help&t=admin_b2b_bank_index" 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="delAllSubmit('destroyitems')"><samp title="先选择您要销毁的行,再点此按钮">
    <div style="padding-top:10px;padding-left:9px;">批量销毁</div></samp>
  </div>
  <div class="titleOp2" onmouseover="this.className='iconbg2'" onmouseout="this.className='titleOp2'" onclick="tableRefresh()" style="margin-right:3px"><samp title="点击刷新本页刷新数据,并保持原来勾选状态">
    <div style="padding-top:10px;padding-left:10px;">刷新</div></samp>
  </div>
  <div class="titleOp4" onmouseover="this.className='iconbg4'" onmouseout="this.className='titleOp4'" onclick="javascript:window.location.href='index.php?m=mod_b2b&c=GA&a=Create'"><samp title="点击刷新本页刷新数据,并保持原来勾选状态">
    <div class="addicon" style="padding-top:10px;padding-left:26px;">添加</div></samp>
  </div>
  <div style="float:right;padding-top:4px;">
    <form action="index.php?m=mod_b2b&c=GA" method="post" style="margin:0px 0px 0px 0px;" onsubmit="return searchSubmit()">
    <input type="text" name="keywords" size="25" value="{$vd['keywords']}" style="vertical-align:middle;" class="custsearch" onMouseOver="iEvent('mouseover',this)" onFocus="iEvent('focus',this)" onBlur="iEvent('blur',this)" onMouseOut="iEvent('mouseout',this)" />
    <input type="hidden" name="stype" value="name">
    <input type="submit" value="模板搜索 &gt;&gt;" style="vertical-align:middle;" class="button"/>
    </form>
  </div>
</div>
  
<div id="menuMask" class="menuMask" style="display:none">
  <form action="?m=mod_b2b&c=Tpl&tpl=GA" method="post" style="margin:0px">
  <div class="menuContent">
  <input type="checkbox" name="id[]" value="tid" id="tid" class="checkbox" onFocus='this.blur()'/> 编号<br/>
  <input type="checkbox" name="id[]" value="tname" id="tname" class="checkbox" onFocus='this.blur()'/> 模板名称<br/>
  <input type="checkbox" name="id[]" value="tct" id="tct" class="checkbox" onFocus='this.blur()'/> 自定义一<br/>
  <input type="checkbox" name="id[]" value="tat" id="tat" class="checkbox" onFocus='this.blur()'/> 自定义二<br/>
  <input type="checkbox" name="id[]" value="tpwd" id="tpwd" class="checkbox" onFocus='this.blur()'/> 自定义三<br/>
  <input type="checkbox" name="id[]" value="tarea" id="tarea" class="checkbox" onFocus='this.blur()'/> 充值区域<br/>
  <input type="checkbox" name="id[]" value="tdarea" id="tdarea" class="checkbox" onFocus='this.blur()'/> 定义区域<br/>
  <input type="checkbox" name="id[]" value="tserv" id="tserv" class="checkbox" onFocus='this.blur()'/> 充值服务器<br/>
  <input type="checkbox" name="id[]" value="tdserv" id="tdserv" class="checkbox" onFocus='this.blur()'/> 定义服务器<br/>
  <input type="checkbox" name="id[]" value="tshared" id="tshared" class="checkbox" onFocus='this.blur()'/> 共享<br/>
  </div>
  <div class="menuOp">
  <input type="submit" value="保存" class="button"/>
  <input type="button" value="重置" class="button" onclick="tInfoReset()"/>
  <input type="button" value="取消" class="button" onclick="setMenuMask()"/>
  </div>
  </form>
</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>
<!--//thead-->
<td width="35px"><b>编号</b></td>
<td width="70px"><b>模板名称</b></td>
<td width="60px"><b>自定义1</b></td>
<td width="60px"><b>自定义2</b></td>
<td width="60px"><b>自定义3</b></td>
<td width="60px"><b>区域</b></td>
<td width="70px"><b>定义区域</b></td>
<td width="60px"><b>服务器</b></td>
<td width="80px"><b>定义服务器</b></td>
<td width="40px"><b>共享</b></td>
<!--//endthead-->
    <td width="22px">
      <img src="{$vd['sc']}images/icon_edit.gif"/>
    </td>
    <td width="22px">
      <img src="{$vd['sc']}images/destroy.gif"/>
    </td>
    <td width="35px">
      脚本
    </td>
    <td class="endtd">
      <div class="infoicon" onclick="setMenuMask()"><b><u>>></u></b></div>
    </td>
  </tr>
</table>
    
<div id="tip" style="display:none">
  <span id="tiptable">此页中所有 <b><span id="ncheck"><!--echo $vd['nrows'] < $vd['totlerow'] ? $vd['nrows'] : $vd['totlerow']--></span></b> 条记录已选中 </span> 
  <span id="tipspan">
    <a href="javascript:CheckTotle({$vd['totlerow']},0)">点此选择当前列表中所有 <b>{$vd['totlerow']}</b> 条记录>></a>
  </span>
</div>
<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>
  <!--}-->
  <form id="cform" name="form" method="post" action="index.php?m=mod_b2b&c=GA&a=ItemDeal" onsubmit="return Check();">
  <table id="tbody"  border="0" cellspacing="0" cellpadding="0">
  
  <!--foreach($vd['items'] as $item) {-->
  <!--$item1 = unserialize($item['custominput']);-->
  <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)" onFocus='this.blur()'></input>
    </td>
<!--//tbody-->
<td width="35px">{$item['id']}</td>
<td width="70px"><nobr><samp title="{$item['name']}">{$item['name']}</samp></nobr></td>
<td width="60px"><!--echo $item1['customtype1'] == 'none' || $item1['customtype1'] == '' ? '<font color="#cccccc">无定义</font>' : '<font color="#0000ff">有定义</font>';--> </td>
<td width="60px"><!--echo $item1['customtype2'] == 'none' || $item1['customtype1'] == '' ? '<font color="#cccccc">无定义</font>' : '<font color="#0000ff">有定义</font>';--> </td>
<td width="60px"><!--echo $item1['customtype3'] == 'none' || $item1['customtype1'] == '' ? '<font color="#cccccc">无定义</font>' : '<font color="#0000ff">有定义</font>';--> </td>
<td width="60px">{#AreaDisp($item['areadisp'])}</td>
<td width="70px"><!--echo $item['tpl'] > 0 ? '[<font color="#3399cc"><a href="index.php?m=mod_b2b&c=area&id='.$item['tpl'].'">自定义..</a></font>]' : '[<font color="#cccccc">无定义..</font>]';--></td>
<td width="60px">{#ServDisp($item['servdisp'])}</td>
<td width="80px"><!--echo $item['tpl'] > 0 ? '[<font color="#3399cc"><a href="index.php?m=mod_b2b&c=area&id='.$item['tpl'].'">自定义..</a></font>]' : '[<font color="#cccccc">无定义..</font>]';--></td>
<td width="40px">{#Shared($item['shared'])}</td>
<!--//endtbody-->
    <td width="22px">
      <a href="index.php?m=mod_b2b&c=GA&a=Detail&id={$item['id']}" title="编辑模板" onclick="loadDisp(1)"><img src="{$vd['sc']}images/icon_edit.gif"/></a>
    </td>
    <td width="22px">
      <img src="{$vd['sc']}images/destroy.gif" onclick="delSubmit({$item['id']},'destroyitems')" alt="销毁模板记录后,是无法恢复的,只能重新添加" style="cursor:pointer"/>
    </td>
    <td width="35px">
      <a href="index.php?m=mod_b2b&c=GA&a=createhtml&id={$item['id']}"><font color="#ff0000">生成</font></a>
    </td>
    <td class="endtd"></td>
  </tr>
  <!--}-->
  
</table>
</form>
<input type="hidden" value="{$vd['totlepage']}" id="totlePage"/>
<input type="hidden" value="{$vd['thispage']}" id="thisPage"/>
<!--if($vd['table'] == 0){-->
</div>

<input type="hidden" value="index.php?m=mod_b2b&c=GA&a=Deals&{$vd['op']}" id="op"/>
<input type="hidden" value="index.php?m=mod_b2b&c=GA&istable=1&{$vd['op']}" id="url"/>
<input type="hidden" value="{$vd['op']}" id="params"/>
<div style="position:absolute;bottom:0px">
  <div class="tbBottom" id="tbBottom">
    <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=GA&{$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>
</body>
<script type="text/javascript">
//第一参数，后边保留显示的列数
//第二参数，除最后一个参数外的保留参数的总宽度
tRows   = <!--echo $vd['nrows'] < $vd['totlerow'] ? $vd['nrows'] : $vd['totlerow']-->;
tInfoA  = Array(3,100);
totleRows = {$vd['totlerow']};
deltxt  = "销毁模板记录后,是无法恢复的,只能重新添加,您确定进行销毁操作吗？";
thisaction = "销毁";
thisdel = 0;
statistics = 0;
var resizeidx = 2;
</script>
<script type="text/javascript">
//当前表格配置
<!--//tinfo-->
 tInfo = Array('tid','tname','tct','tat','tpwd','tarea','tdarea','tserv','tdserv','tshared');
<!--//endtinfo-->

</script>
<script src="{$vd['sc']}js/tools.js" type="text/javascript"></script>
</html>
<!--}-->