{load(fhead)}
<body class="mainbg">
	<div id="mainhearder"><span>您的位置：<a href="{$vd['root']}index.php?m=mod_b2b&c=Dealer&a=home">经销商管理系统</a> >> 下属客户管理 >> 下属客户价格管理 >> 客户密价管理</span></div>
	<div id="type">
		<ul>
			<li><span class=type>按商品设定</span></li><li><a href="index.php?m=mod_b2b&c=Price&a=PrivatePriceAgent"><span class=type>按客户设定</span></a></li>
		</ul>
	</div>
	
	<div id="hearder"><span>{$vd['productrs']['pname']}商品的客户密价设定</span></div>
	
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<form name="search" method="get" action="index.php">
		<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="hidden" name="m" value="mod_b2b"/>
			<input type="hidden" name="c" value="price"/>
			<input type="hidden" name="a" value="PrivatePriceAgentSet"/>
			<input type="hidden" name="pid" value="{$vd['pid']}"/>
			<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>
    		    </select>
		</td>
		</tr>
		<tr>
		<td class="tableleft1">&nbsp;</td>
		<td align="left" class="tableright1">
		<input type="submit" name="Submit" value="确认查询" class="button">
		<input type="reset" name="reset" value="重置查询" class="button"></td>
		</tr>
		</table>
		</form>
	</td>
	</tr>
	</table>
	<br>
	<form name="setup" method="post" action="{$vd['root']}index.php?m=mod_b2b&c=price&a=PrivatePriceAgentSave">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td class="tableleft">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
		<tr>
		<td width="8%" class="heardertop1">编号</td>
		<td width="12%" 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="10%" class="heardertop1">当前购价</td>
		<td width="15%" class="heardertop1">密价设定</td>
		<td width="8%" class="heardertop1">差价</td>
		<td width="5%" 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>{#TxtByOption($vd['rank'], $item['alv'], 'name', 'id')}</td>
		<td>{$item['arealname']}</td>
		<td><!--if($item['frozen'] == 1){--> <font color="#ff0000">冻结</font> <!--}else{--> <font color="#008800">启动</font> <!--}--></td>
		
		<td>{$item['cprice']}</td>
		<td>
			<input type="hidden" name="oldpricetpl_{$item['aid']}" value="{$item['pricetpl']}"/>
      <input type="hidden" name="aid[]" value="{$item['aid']}"/>
      <input type="text" class="input1" size="8" name="price_{$item['aid']}" value="<!--if(isset($vd['parray'][$item['aid']])){echo $vd['parray'][$item['aid']];}-->"/>
		</td>
		<td><!--if(isset($vd['parray'][$item['aid']])){echo round(($vd['parray'][$item['aid']]-$vd['myprice']), 3);}else{echo '--';}--></td>
		<td><a href="index.php?m=mod_b2b&c=price&a=PrivatePriceAgentDel&pid={$vd['pid']}&aid={$item['aid']}">清除</a></td>
		</tr>
		<!--}-->
		</table>
	</td>
	</tr>
	</table>
	<div id="page"><div id="add">商品面值：<font color=#ff0000>{$vd['productrs']['listprice']}</font> 我的进价：<font color=#ff0000>{$vd['myprice']}</font></div>
		{load(fpage)}
	</div>
	<input type="hidden" name="myprice" value="{$vd['myprice']}"/>
  <input type="hidden" name="pid" value="{$vd['pid']}"/>
	<input type="submit" name="Submit" value="确认设置" class="button">
	<input type="reset" name="reset" value="重新填写" class="button">
	</form>
	
</body>
</html>