{load(fhead)}
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="SubCustomerRegister.html">下属客户管理</a> >> 下属客户购卡模板定价</span></div>
	<div id="type">
		<ul>
			<li><a href="index.php?m=mod_b2b&c=Price&a=AddRankTpl"><span class=type>添加价格模板</span></a></li>
			<li><a href="index.php?m=mod_b2b&c=Price&a=RankTpl"><span class=type>价格模板列表</span></a></li>
			<li><span class=type>价格模板套用</span></li>
		</ul>
	</div>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<FORM name="query" METHOD=POST ACTION="{$vd['root']}index.php?m=mod_b2b&c=price&a=Agent">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table1">
		<tr>
		<td width="22%" class="tableleft1">关键字：</td>
		<td width="78%" align="left" class="tableright1"><input type="text" size="30" name="keywords" class='input' value=""></td>
		</tr>
		<tr>
		<td class="tableleft1">查询类型：</td>
		<td align="left" class="tableright1">
		  <select name="stype" id="stype" class="search_select">
      <option value="aname" selected>用户名</option>
      <option value="aid">用户编号</option>
      <option value="company">商户名称</option>
      <option value="arealname">联系人</option>
      </select>
    </td>
		</tr>
		<tr>
		<td width="20%" class="tableleft1">&nbsp;</td>
		<td width="80%" align="left" class="tableright1">
		<input type="submit" name="Submit" value="确认查询" class="button">
		<input type="reset" name="reset3" value="重置查询" class="button"></td>
		</tr>
		</table>
		</FORM>
	</td>
	</tr>
	</table>
	<br>
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<form name="template" method="post" action="{$vd['root']}index.php?m=mod_b2b&c=price&a=AgentTplSave">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
		<tr>
		<td width="6%" class="heardertop1">编号</td>
		<td width="11%" class="heardertop1">用户名</td>
		<td width="20%" class="heardertop1">商户名称</td>
		<td width="8%" class="heardertop1">用户级别</td>
		<td width="8%" class="heardertop1">联系人</td>
		<td width="6%" class="heardertop1">状态</td>
		<td width="9%" class="heardertop1">余额</td>
		<td width="10%" class="heardertop1">消费</td>
		<td width="22%" class="heardertop1">模板套用</td>
		</tr>
		<!--foreach($vd['items'] as $item) {-->
		<tr class="stline" onmouseover="this.className='nd'" onmouseout="this.className='stline'">
		<td>{$item['aid']}</td>
		<td>{$item['aname']}</td>
		<td align=left>{$item['company']}</td>
		<td>{$item['rank']}</td>
		<td>{$item['arealname']}</td>
		<td><!--if($item['frozen'] == 1){--> <font color="#ff0000">冻结</font> <!--}else{--> <font color="#008800">启动</font> <!--}--></td>
		<td>{$item['aremain']}</td>
		<td>{$item['acsmp']}</td>
		<td>
		    <input type="hidden" name="oldpricetpl_{$item['aid']}" value="{$item['pricetpl']}"/>
      	<input type="hidden" name="aid[]" value="{$item['aid']}"/>
        <select name="pricetpl_{$item['aid']}">
        	<option value="0">不套用价格模板</option>
        	{#option($vd['tpls'], $item['pricetpl'], 'name', 'id')}
        </select>
		</td>
		</tr>
		<!--}-->
		</table>
	</td>
	</tr>
	</table>
	<div id="page" align="right">
		{load(fpage)}
	</div>
	
	<input type="hidden" name="SearchString" value="">
	<input type="submit" name="Submit" value="确认设置" class="button">
	<input type="reset" name="reset" value="重新选择" class="button">
	</form>
</body>
</html>
