<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="<?php echo $vd['sc']; ?>css/main.css">
<style type="text/css">
td{height:30px}
</style>
</head>
<body>
<table border="1" width="100%" style="border-collapse: collapse;" bordercolor="#cccccc">
  <tr>
    <td class="listhead" colspan="2" style="border-right:1px #ccc solid">商品价格管理</td>
  </tr>
  <tr>
    <td width="25%" align="center">
      <input type="button" onclick="winopen('?m=mod_b2b&c=Price&a=PriceTpl')" value="商品价格模板" class="button" style="color:#ff0000"/>
    </td>
    <td width="75%" align="left" style="border-right:1px #ccc solid">
      (常用)设置商品的价格模板，方便快捷的控制各级用户价格
    </td>
  </tr>
  <tr>
    <td width="25%" align="center">
      <input type="button" onclick="winopen('?m=mod_b2b&c=Price&a=PriceSaveBySup')" value="商品自动调价" class="button" style="color:#ff0000"/>
    </td>
    <td width="75%" align="left" style="border-right:1px #ccc solid">
      (常用)如果商品和百信卡盟进货系统对接，您只需轻轻一按即可完成商品的进货价格调整
    </td>
  </tr>
  <tr>
    <td width="25%" align="center">
      <input type="button" onclick="winopen('?m=mod_b2b&c=Price')" value="商品单独定价" class="button"/>
    </td>
    <td width="75%" align="left" style="border-right:1px #ccc solid">
      给某一个商品单独设定价格，设价的商品不再使用价格模板给价
    </td>
  </tr>
  <tr>
    <td width="25%" align="center">
      <input type="button" onclick="winopen('?m=mod_b2b&c=Price')" value="商品用户密价" class="button"/>
    </td>
    <td width="75%" align="left" style="border-right:1px #ccc solid">
      针对某一款商品，单独给某个用户设置价格
    </td>
  </tr>
  
  <tr>
    <td width="25%" align="center">
      <input type="button" onclick="winopen('?m=mod_b2b&c=Rank')" value="商品价格级别" class="button"/>
    </td>
    <td width="75%" align="left" style="border-right:1px #ccc solid">
      也叫用户级别，价格模板主要在此基础上进行设置
    </td>
  </tr>
  <tr>
    <td width="25%" align="center" style="border-bottom:1px #ccc solid">
      <input type="button" onclick="disp('cdiv')" value="清除客户价格" class="button"/>
    </td>
    <td width="75%" align="left" style="border-bottom:1px #ccc solid;border-right:1px #ccc solid">
      清除客户给下级设置的所有价格
    </td>
  </tr>
</table>
<br/>
<table border="1" width="100%" style="border-collapse: collapse" bordercolor="#cccccc">
  <tr>
    <td style="border:1px #ccc solid;"><div id="result" style="font-size:15px;color:#ff0000;font-weight:bold"></div><div id="tmp"></div></td>
  </tr>
</table>
<div id="load" style="display:none">
  <div id="loadcontent" ><div style="padding-bottom:8px"><img src="content/mod_shared/skins/images/js_loader.gif"></div>页面加载中请稍等...</div>
</div>
<div id="cdiv" style="position:absolute;top:245px;left:30px;;width:480px;display:none">
  <div style="padding:20px;background:#F1F5FA;border:5px #75BCD7 solid">
  <div style="font-size:14px;font-weight:bold;padding:5px;float:left">清除客户给下级设置的价格</div>
  <div style="float:right;"><img src="<?php echo $vd['sc']; ?>images/destroy.gif" onclick="disp('cdiv')" style="cursor:pointer"/></div>
  <form id="cform" method="post" action="index.php?m=mod_b2b&c=Price&a=ClearPrice">
    <table id="checktable" width="100%" style="border-collapse: collapse;">
      <tr>
        <td width="25%"">请输入用户编号</td>
        <td width="75%"><input type="text" id="aid" name="aid" value=""/></td>
      </tr>
      <tr>
        <td width="25%" style="height:50px;"></td>
        <td width="75%">
          <input type="submit" value="我知道，确认清除" class="button"/> <input type="button" value="取消" class="button" onclick="disp('cdiv')"/>
        </td>
      </tr>
    </table>
  </form>
  </div>
</div>
<script type="text/javascript">
var $ = function(id){
  return document.getElementById(id);
}
function loadDisp(flag)
{
  $("load").style.display = flag ? "" : "none";
}
function winopen(url)
{  
  loadDisp(1);
  window.location.href = url;
}
function disp(idx)
{
	$(idx).style.display = $(idx).style.display == "" ? "none" : "";
}
</script>
</body>
</html>
