{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><a href="index.php?m=mod_b2b&c=product&a=PrivatePriceProduct"><span class=type>按商品设定</span></a></li><li><span class=type>按客户设定</span></li>
		</ul>
	</div>
	
	<div id="hearder"><span>{$vd['underling']['aname']}客户密价设定</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="text" size="30" name="keywords" class='input' value=""></td>
		</tr>
		<tr>
		<td class="tableleft1">查询类型：</td>
		<td align="left" class="tableright1">
		<select name="stype">
		<option value="pname">商品名称</option>
		<option value="pid">商品编号</option>
		<option value="listprice">商品面值</option>
		</select>
		</td>
		</tr>
		<tr>
		<td class="tableleft1">&nbsp;</td>
		<td align="left" class="tableright1">
		<input type="hidden" name="aid" value="{$vd['aid']}"/>
		<input type="hidden" name="m" value="mod_b2b"/>
	  <input type="hidden" name="c" value="product"/>
		<input type="hidden" name="a" value="PrivatePriceProductSet"/>
		<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=PrivatePriceProductSave">
	<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="9%" class="heardertop1">商品ID</td>
		<td width="25%" class="heardertop1">商品名称</td>
		<td width="8%" class="heardertop1">商品类型</td>
		<td width="8%" class="heardertop1">面值</td>
		<td width="10%" class="heardertop1">我的进价</td>
		<td width="10%" class="heardertop1">客户当前购价</td>
		<td width="15%" class="heardertop1">密价设定</td>
		<td width="10%" 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['pid']}</td>
		<td align=left>{$item['pname']}</td>
		<td>{#ProductType($item['ptype'])}</td>
		<td>{$item['listprice']}</td>
		
		<td>{$item['cprice']}</td>
		<td>{$item['underlingprice']}</td>
		<td>
			  <input type="hidden" name="oldprice_{$item['pid']}" value="<!--if(isset($vd['parray'][$item['pid']])){echo $vd['parray'][$item['pid']];}-->"/>
      	<input type="hidden" name="pid[]" value="{$item['pid']}"/>
      	<input type="hidden" name="myprice_{$item['pid']}" value="{$item['cprice']}"/>
        <input type="text" size="8" class="input1" name="price_{$item['pid']}" value="<!--if(isset($vd['parray'][$item['pid']])){echo $vd['parray'][$item['pid']];}-->"/>
		</td>
		<td><!--if(isset($vd['parray'][$item['pid']])){echo round(($vd['parray'][$item['pid']]-$item['cprice']), 3);}else{echo '--';}--></td>
    <td><a href="index.php?m=mod_b2b&c=price&a=PrivatePriceAgentDel&pid={$item['pid']}&aid={$vd['aid']}">清除</a></td>
		</tr>
    <!--}-->
		</table>
	</td>
	</tr>
	</table>
	<div id="page">
		{load(fpage)}
	</div>
	<input type="hidden" name="aid" value="{$vd['aid']}"/>
	<input type="submit" name="Submit" value="确认设置" class="button">
	<input type="reset" name="reset" value="重新填写" class="button">
	<br><br>
	</form>
	
</body>
</html>
