<!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=gbk" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>{$page_title}</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="{$ecs_css_path}" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS|{$page_title}" href="{$feed_url}" />
<style>
th,td{padding:3px;}
</style>
{* 包含脚本文件 *}
{insert_scripts files='common.js'}
</head>
<body>
  <div id="wrap">
    <!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
		<!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
    <!-- {if $cart_goods} 如果有批发商品 -->
    <!-- 批发商品购物车 -->
    <div class="module goods_list">
      <div class="caption">
        <span>{$lang.wholesale_goods_cart}</span>
      </div>
      <p class="top"><img src="images/bg1.gif" /></p>
      <div class="content">
        <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
          <tr>
            <th bgcolor="#ffffff">{$lang.goods_name}</th>
            <th bgcolor="#ffffff">{$lang.goods_attr}</th>
            <th bgcolor="#ffffff">{$lang.number}</th>
            <th bgcolor="#ffffff">{$lang.ws_price}</th>
            <th bgcolor="#ffffff">{$lang.ws_subtotal}</th>
            <th bgcolor="#ffffff">{$lang.handle}</th>
          </tr>
          <!-- {foreach from=$cart_goods key=key item=goods} 循环批发商品开始 -->
          <tr>
            <td bgcolor="#ffffff" align="center"><a href="{$goods.goods_url}" target="_blank" class="f6">{$goods.goods_name}</a></td>
            <td bgcolor="#ffffff" align="center">{$goods.goods_attr}</td>
            <td bgcolor="#ffffff" align="center">{$goods.goods_number}</td>
            <td bgcolor="#ffffff" align="center">{$goods.formated_goods_price}</td>
            <td bgcolor="#ffffff" align="center">{$goods.formated_subtotal}</td>
            <td bgcolor="#ffffff" align="center"><a href="wholesale.php?act=drop_goods&key={$key}" class="f6">{$lang.drop}</a></td>
          </tr>
          <!--{/foreach}-->
        </table>
        <form method="post" action="wholesale.php?act=submit_order">
          <table border="0" cellpadding="5" cellspacing="1" width="100%">
            <tr>
              <td class="f5" style="text-decoration:none;">{$lang.ws_remark}</td>
            </tr>
            <tr>
              <td><textarea name="remark" rows="4" class="border" style="width:99%; border:1px solid #ccc;"></textarea>
              </td>
            </tr>
            <tr>
              <td align="center"><input type="submit" class="bnt_bonus"  value="{$lang.submit}" /></td>
            </tr>
          </table>
        </form>
      </div>
      <p class="bottom"><img src="images/bg2.gif" /></p>
    </div>
    <!-- {/if} -->
    <!-- {if $wholesale_list} 如果有批发商品 -->
    <div class="module goods_list">
      <p class="top"><img src="images/bg1.gif" /></p>
      <div class="content">
        <div class="cont">
          <form name="wholesale_goods" action="wholesale.php?act=add_to_cart" method="post">
            <table width="100%" style="margin-bottom:8px;" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
              <tr>
                <th width="200" align="center" bgcolor="#ffffff">{$lang.goods_name}</th>
                <th width="200" align="center" bgcolor="#ffffff">{$lang.goods_attr}</th>
                <th width="250" align="center" bgcolor="#ffffff">{$lang.goods_price_ladder}</th>
                <th width="80" align="center" bgcolor="#ffffff">{$lang.number}</th>
                <th width="130" align="center" bgcolor="#ffffff">&nbsp;</th>
              </tr>
              <!-- {foreach from=$wholesale_list item=wholesale} 循环批发商品开始 -->
              <tr>
                <td bgcolor="#ffffff"><a href="{$wholesale.goods_url}" target="_blank" class="f6">{$wholesale.goods_name}</a></td>
                <td bgcolor="#ffffff"><table width="100%" border="0" align="center">
                    <!-- {foreach from=$wholesale.goods_attr item=property_group key=key} -->
                    <!-- {foreach from=$property_group item=property} -->
                    <tr>
                      <td nowrap="true" style="border-bottom:2px solid #ccc;">{$property.name|escape:html}</td>
                      <td style="border-bottom:1px solid #ccc;">{$property.value|escape:html}</td>
                    </tr>
                    <!-- {/foreach}-->
                    <!-- {/foreach}-->
                  </table>
                </td>
                <td bgcolor="#ffffff"><table width="100%" border="0" align="center" cellspacing="1" bgcolor="#cccccc">
                    <!-- {foreach from=$wholesale.price_ladder key=key item=attr_price} -->
                    <tr>
                      <td align="left" nowrap="true" bgcolor="#ffffff" style="padding:5px;">{$lang.number}:{$key}</td>
                      <td bgcolor="#ffffff" style="padding:5px;">{$lang.ladder_price}:{$attr_price}</td>
                    </tr>
                    <!-- {/foreach} -->
                  </table></td>
                <td align="center" bgcolor="#ffffff" style="padding:5px;">
                <input name="goods_number[{$wholesale.act_id}]" type="text" class="inputBg" value="" size="10" /></td>
                <td bgcolor="#ffffff" align="center">
                <input name="image" type="image" onClick="this.form.elements['act_id'].value = {$wholesale.act_id}" src="images/but_1.gif" style="margin:8px auto;" />
                </td>
              </tr>
              <!--{/foreach}-->
            </table>
            <input type="hidden" name="act_id" value="" />
          </form>
          <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
        </div>
        <!-- {else} -->
        <div style="margin:2px 10px; font-size:14px; text-align:center; line-height:36px;">{$lang.no_wholesale}</div>
        <!-- {/if} -->
      </div>
      <p class="bottom"><img src="images/bg2.gif" /></p>
    </div>
    <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
		<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
  </div>
</body>
</html>