<!--if($vd['table']==0){-->
{load(head)}
<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> <span style="font-size:12px;"><a href="index.php?m=mod_b2b&c=Price&{$vd['op']}" title="点击重新获取商品列表资料" onclick="loadDisp(1)"><font color="#000">商品价格/密价</font></a></span> (共 <b><span id="tol1">{$vd['totlerow']}</span></b> 个) <span style="font-size:7px;">>></span> <span style="font-size:12px;">按用户密价</span>
  <strong onmouseover="showhide(this);" onmouseout="showhide(this);" style="cursor:pointer">[?]</strong><p style="display:none">
    当前商品名称：{$vd['productrs']['pname']}<br/>
    商品面值：{$vd['productrs']['listprice']}<br/>
    进货价：{$vd['productrs']['price']}<br/>
  </p>(当前商品面值：<b>{$vd['productrs']['listprice']}</b> 进货价：<b>{$vd['myprice']}</b>)
</div>
<div id="contentTip" style="display:none;"></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" id="mytitle">
  <div class="titleOp4" onmouseover="this.className='iconbg4'" onmouseout="this.className='titleOp4'" onclick="delAllSubmit('ClearPP')"><samp title="先选择您要删除的行,再点此按钮">
    <div style="padding-top:10px;padding-left:3px;">清除密价</div></samp>
  </div>
  <div class="titleOp2" onmouseover="this.className='iconbg2'" onmouseout="this.className='titleOp2'" onclick="tableRefresh()"><samp title="点击刷新本页刷新数据,并保持原来勾选状态">
    <div style="padding-top:10px;padding-left:9px;">刷新</div></samp>
  </div>
  <div class="titleOp4" onmouseover="this.className='iconbg4'" onmouseout="this.className='titleOp4'" onclick="toSubmit('cform')"><samp title="点击刷新本页刷新数据,并保持原来勾选状态">
    <div style="padding-top:7px;padding-left:9px;"><img src="{$vd['sc']}images/save.gif" style="vertical-align:middle"/> 保存</div></samp>
  </div>
  <div style="float:right;padding-top:4px;">
    <form action="index.php?m=mod_b2b&c=Product&a=PP&pid={$vd['productrs']['pid']}" 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)" />
    <select name="stype" style="vertical-align:middle;font-size:14px;">
      <option value="-1">所有类型</option>
      {#Option($vd['sarray'], $vd['stype'])}
    </select>
    <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=product&v=PP" method="post" style="margin:0px">
  <div class="menuContent">
  <input type="checkbox" name="id[]" value="aid" id="aid" class="checkbox" onFocus='this.blur()'/> 编号<br/>
  <input type="checkbox" name="id[]" value="aname" id="aname" class="checkbox" onFocus='this.blur()'/> 用户名称<br/>
  <input type="checkbox" name="id[]" value="company" id="company" class="checkbox" onFocus='this.blur()'/> 公司名<br/>
  <input type="checkbox" name="id[]" value="rank" id="rank" class="checkbox" onFocus='this.blur()'/> 用户级别<br/>
  <input type="checkbox" name="id[]" value="aremain" id="aremain" class="checkbox" onFocus='this.blur()'/> 余额<br/>
  <input type="checkbox" name="id[]" value="prvcity" id="prvcity" class="checkbox" onFocus='this.blur()'/> 所在区域<br/>
  <input type="checkbox" name="id[]" value="acsmp" id="acsmp" class="checkbox" onFocus='this.blur()'/> 消费<br/>
  <input type="checkbox" name="id[]" value="lvprice" id="lvprice" class="checkbox" onFocus='this.blur()'/> 用户进价<br/>
  <input type="checkbox" name="id[]" value="setpp" id="setpp" class="checkbox" onFocus='this.blur()'/> 密价<br/>
  <input type="checkbox" name="id[]" value="subpp" id="subpp" class="checkbox" onFocus='this.blur()'/> 差价<br/>
  <input type="checkbox" name="id[]" value="opmy" id="opmy" 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="30px"><b>编号</b></td>
<td width="80px"><b>用户名</b></td>
<td width="80px"><b>用户级别</b></td>
<td width="70px"><b>余额</b></td>
<td width="70px"><b>消费</b></td>
<td width="70px"><b>用户进价</b></td>
<td width="70px"><b>密价</b></td>
<td width="70px"><b>差价</b></td>
<td width="70px"><b>操作</b></td>
<!--//endthead-->
    <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=Price&a=PrivatePriceAgentSave" onsubmit="return Check();">
  <table id="tbody"  border="0" cellspacing="0" cellpadding="0">
  
  <!--foreach($vd['items'] as $item) {-->
  <tr onmouseover="setoverbg(this)" onmouseout="setoutbg(this)">
    <td width="30px">
      <input type="checkbox" name="id[]" id="idchk_{$item['thisaid']}" class="checkbox" value="{$item['thisaid']}" onclick="CheckThis(this)" onFocus='this.blur()'></input>
    </td>
<!--//tbody-->
<td width="30px">{$item['aid']}</td>
<td width="80px"><nobr><samp title="{$item['aname']}">{$item['aname']}</samp></nobr></td>
<td width="80px">{#TxtByOption($vd['rank'], $item['alv'], 'name', 'id')}</td>
<td width="70px">{$item['aremain']}</td>
<td width="70px">{$item['acsmp']}</td>
<td width="70px">{$item['cprice']}</td>
<td width="70px"><input type="hidden" name="oldpricetpl_{$item['aid']}" value="{$item['pricetpl']}"/><input type="hidden" name="aid[]" value="{$item['aid']}"/><input type="text" size="5" name="price_{$item['aid']}" value="<!--if(isset($vd['parray'][$item['aid']])){echo $vd['parray'][$item['aid']];}-->"/></td>
<td width="70px"><!--if(isset($vd['parray'][$item['aid']])){echo round(($vd['parray'][$item['aid']]-$vd['myprice']), 3);}else{echo '--';}--></td>
<td width="70px"><a href="index.php?m=mod_b2b&c=price&a=PrivatePriceAgentDel&pid={$vd['pid']}&aid={$item['aid']}">清除</a></td>
<!--//endtbody-->
    <td class="endtd"></td>
  </tr>
  <!--}-->
  
</table>
<input type="hidden" name="myprice" value="{$vd['myprice']}"/>
<input type="hidden" name="pid" value="{$vd['pid']}"/>
</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=product&a=Deals&{$vd['op']}" id="op"/>
<input type="hidden" value="index.php?m=mod_b2b&c=Product&a=PP&pid={$vd['pid']}&myprice={$vd['myprice']}&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=Product&a=PP&pid={$vd['pid']}&myprice={$vd['myprice']}&{$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(0,0);
totleRows = {$vd['totlerow']};
deltxt  = "您确定进行删除操作吗？删除后您还可以从回收箱进行恢复";//"如果删除商品,商品相关信息也会被删除(包括订单信息，充值信息，留言信息等),您确定进行删除操作吗？";
thisaction = "删除";
thisdel = 0;
statistics = 0;
var resizeidx = 2;
</script>
<script type="text/javascript">
//当前表格配置
<!--//tinfo-->
 tInfo = Array('aid','aname','rank','aremain','acsmp','lvprice','setpp','subpp','opmy');
<!--//endtinfo-->
</script>
<script src="{$vd['sc']}js/tools.js" type="text/javascript"></script>
</html>
<!--}-->