<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<link rel="stylesheet" type="text/css" href="{$vd['sc']}css/main.css"/>
<script src="{$vd['sc']}js/transport.js" type="text/javascript"></script>
<script src="{$vd['sc']}js/utils.js" type="text/javascript"></script>
<script src="{$vd['sc']}js/ui.js" type="text/javascript"></script>
</head>
<body>
<form action="index.php?m=mod_b2b&c=product" method="post" style="margin:5px 0px;">
<table border="1" width="100%" style="border-collapse: collapse" bordercolor="#86B9D6">
  <tr>
    <td width="50%" height="35" class="mytitle">
      <span style="float:right">
      <input type="text" name="keywords" size="25" style="vertical-align:middle;"/>
      <input type="submit" value="商品搜索 &gt;&gt;" style="vertical-align:middle;"/>
      </span>
      <span style="font-size:13px;font-weight:bold;padding-top:5px;padding-left:5px;" >
        {$vd['tabletitle']}商品列表({$vd['totlerow']}个)
      </span>
    </td>
  </tr>
</table>
</form>
鼠标移动到商品的对应属性，点击会有意想不到的效果，操作完成后，需要重新<a href="index.php?m=mod_b2b&c=html&a=home" alt="生成首页静态页面">生成首页静态页面</a>，前台方可显示效果
<table border="1" width="100%" style="border-collapse: collapse;" bordercolor="#86B9D6">
  <form name="form" method="post" action="index.php?m=mod_b2b&c=product&a=ItemDeal" onsubmit="return Check();">
  <tr>
    <td width="4%" align="center" height="35" class="listhead">
      <input name="chkall" type="checkbox" class="checkbox" onclick="CheckAll(this.form)"/></td>
    <td width="16%" height="35" class="listhead"  style="text-align:left;padding-left:10px;">
      <font color="#ff0000">商品名称</font></td>
    <td width="6%" align="center" height="35" class="listhead">
      <font color="#ff0000">总库存</font></td>
    <td width="8%" align="center" height="35" class="listhead">
      <font color="#ff0000">联售库存</font></td>
    <td width="8%" align="center" height="35" class="listhead">
      <font color="#ff0000">本地库存</font></td>
    <td width="8%" align="center" height="35" class="listhead">
      <font color="#ff0000">昨日售出</font></td>
    <td width="6%" align="center" height="35" class="listhead">
      <font color="#ff0000">进价</font></td>
    <td width="5%" align="center" height="35" class="listhead">
      <font color="#ff0000">面值</font></td>
    <td width="8%" align="center" height="35" class="listhead">
      <font color="#ff0000">库存金额</font></td>
    <td width="12%" align="center" height="35" class="listhead">
      <font color="#ff0000">库存操作</font></td>
    <td width="5%" align="center" height="35" class="listhead">
      <font color="#ff0000"><a href="?m=mod_b2b&c=product&optype=1|0" alt="点击查看所有上架商品">上架</a></font>
    </td>
    <td width="8%" align="center" height="35" class="listhead">
      <font color="#ff0000">商品操作</font></td>
    <td width="6%" align="center" height="35" class="listhead">
      <font color="#ff0000">进货</font></td>
  </tr>
  <!--if($vd['totlerow'] == 0) {-->
  <tr>
    <td align="right" height="35" colspan="20">没有您要找的商品，请重新操作</td>
  </tr>
  <!--}-->
  <!--foreach($vd['items'] as $item) {-->
  <tr>
    <td width="4%" align="center" height="35">
      <input type="checkbox" name="id[]" class="checkbox" value="{$item['pid']}"></input>
    </td>
    <td width="16%" align="center" height="35" style="text-align:left;padding-left:10px;">
      <span onclick="uideal.edit(this,0,{$item['pid']})"> {$item['pname']}</span>
    </td>
    <td width="6%" align="center" height="35">{$item['totlestocks']}</td>
    <td width="8%" align="center" height="35">{$item['supstocks']}</td>
    <td width="8%" align="center" height="35">{$item['stocks']}</td>
    <td width="8%" align="center" height="35">{$item['sellyd']}</td>
    <td width="6%" align="center" height="35">
      <span onclick="uideal.edit(this,1,{$item['pid']})"> {$item['price']}</span>
    </td>
    <td width="5%" align="center" height="35">
      <span onclick="uideal.edit(this,2,{$item['pid']})"> {$item['listprice']}</span>
    </td>
    <td width="8%" align="center" height="35">{$item['stockscash']}</td>
    <td width="12%" align="center" height="35">{#PCardsPtype($item['ptype'], $item['pid'])}</td>
    </td>
    <td width="5%" align="center" height="35"> 
      <img src="{$vd['sc']}{#ToggleImgSrc($item['sell'])}" onclick="uideal.toggle(this,5,{$item['pid']})" alt="点击此图片即可修改状态" class="mousehand" />
    </td>
    <td width="8%" align="center" height="35">
      <a href="?m=mod_b2b&c=product&a=detail&ubzpid={$item['pid']}">
      <img src="{$vd['sc']}images/icon_edit.gif" alt="查看编辑" border="0"/></a>
      <a href="?m=mod_b2b&c=product&a=del&ubzpid={$item['pid']}" onClick="return confirm('您确定进行删除操作吗？')">
          <img src="{$vd['sc']}images/icon_trash.gif" alt="删除商品" border="0"/>
      </a>
    </td>
    <td width="6%" align="center" height="35">
      <a href="?m=mod_b2b&c=sup&a=sup&ubzpid={$item['pid']}">
      <font color="#00875A">管理</font>
      </a>   
    </td>
  </tr>
  <!--}-->
  <tr>
    <td align="left" height="35" colspan="9">
      <select name="act" size="1">
        <option select="selected" value="0">选择操作</option>
        <option select="selected" value="4|1">新品</option>
        <option select="selected" value="4|0">取消新品</option>
        <option select="selected" value="5|1">上架</option>
        <option select="selected" value="5|0">下架</option>
        <option select="selected" value="3|1">新手</option>
        <option select="selected" value="3|0">取消新手</option>
        <option select="selected" value="6|1">推荐</option>
        <option select="selected" value="6|0">取消推荐</option>
        <option select="selected" value="7|1">热卖</option>
        <option select="selected" value="7|0">取消热卖</option>
        <option select="selected" value="8|1">促销</option>
        <option select="selected" value="8|0">取消促销</option>
      </select>
      <input type="submit" value=" 执 行 &gt;&gt;"/>
    </td>
    <td align="right" height="35" colspan="10">
    <strong>本记录总计 <font color="#ff0000">{$vd['totlerow']}</font> 条  第 {$vd['thispage']} 页</strong>/ 共 {$vd['totlepage']} 页</strong>
    </td>
  </tr>
  </form>
  <tr>
    <td align="right" height="35" colspan="19">
    <form method="post" action="index.php?m=mod_b2b&c=product&tpl=stock&{$vd['op']}">
      <input type="button" value="上一页 &gt;&gt;" {$vd['prestate']} onclick="window.location='?m=mod_b2b&c=product&tpl=stock&page={$vd['prepage']}&{$vd['op']}'"/>
      <input type="button" value="下一页 &gt;&gt;" {$vd['nextstate']} onclick="window.location='?m=mod_b2b&c=product&tpl=stock&page={$vd['nextpage']}&{$vd['op']}'"/>
      到第<input type="text" name="page" size="2" value="" class="txt"/>页<input type="submit" value=" 确 定 &gt;&gt;"/>
    </form>
    </td>
  </tr>
</table>
<script language="Javascript">
document.onmousemove=function(e)
{
  var obj = Utils.srcElement(e);
  if (typeof(obj.onclick) == 'function' && obj.onclick.toString().indexOf('uideal.edit') != -1)
  {
    obj.title = '单击修改详细内容';
    obj.style.cssText = 'background: #278296;';
    obj.onmouseout = function(e)
    {
      this.style.cssText = '';
    }
  }
}
function CheckAll(form) {
  for (var i=0;i<form.elements.length;i++) {
    var e = form.elements[i];
    if (e.name != 'chkall') e.checked = form.chkall.checked; 
  }
}
</script>
</body>
</html>