<!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}" />
{* 包含脚本文件 *}
{insert_scripts files='common.js'}
</head>
<body>
<!-- #BeginLibraryItem "/library/page_header.lbi" --><!-- #EndLibraryItem -->
<!--当前位置 start-->
<div class="block box">
 <div id="ur_here">
  <!-- #BeginLibraryItem "/library/ur_here.lbi" --><!-- #EndLibraryItem -->
 </div>
</div>
<!--当前位置 end-->
<div class="blank"></div>
<!-- {if $cart_goods} 如果有批发商品 -->
<!-- 批发商品购物车 -->
<div class="block">
  <h5><span>{$lang.wholesale_goods_cart}</span></h5>
  <div class="blank"></div>
    <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>
<div class="blank5"></div>
<!-- {/if} -->
<!-- {if $wholesale_list} 如果有批发商品 -->
<div class="block">
  <h5><span>{$lang.wholesale_goods_list}</span><a href="wholesale.php?act=price_list" class="f6">{$lang.ws_price_list}</a></h5>
  <div class="blank"></div>
  <form name="wholesale_goods" action="wholesale.php?act=add_to_cart" method="post">
          <table width="100%" 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="#547289">
                <!-- {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/bnt_buy_1.gif" style="margin:8px auto;" />
              </td>
            </tr>
            <!--{/foreach}-->
          </table>
          <input type="hidden" name="act_id" value="" />
        </form>
 <!-- {else} -->
  <div style="margin:2px 10px; font-size:14px; text-align:center; line-height:36px;">{$lang.no_wholesale}</div>
  <!-- {/if} -->
   <div class="blank5"></div>
     <!-- #BeginLibraryItem "/library/pages.lbi" --><!-- #EndLibraryItem -->
</div>
<div class="blank5"></div>
<!--帮助-->
<div class="block">
  <div class="box">
   <div class="helpTitBg clearfix">
    <!-- #BeginLibraryItem "/library/help.lbi" --><!-- #EndLibraryItem -->
   </div>
  </div>
</div>
<div class="blank"></div>
<!--帮助-->
<!--友情链接 start-->
<!--{if $img_links  or $txt_links }-->
<div id="bottomNav" class="box">
 <div class="box_1">
  <div class="links clearfix">
    <!--开始图片类型的友情链接{foreach from=$img_links item=link}-->
    <a href="{$link.url}" target="_blank" title="{$link.name}"><img src="{$link.logo}" alt="{$link.name}" border="0" /></a>
    <!--结束图片类型的友情链接{/foreach}-->
    <!-- {if $txt_links} -->
    <!--开始文字类型的友情链接{foreach from=$txt_links item=link}-->
    [<a href="{$link.url}" target="_blank" title="{$link.name}">{$link.name}</a>]
    <!--结束文字类型的友情链接{/foreach}-->
    <!-- {/if} -->
  </div>
 </div>
</div>
<!--{/if}-->
<!--友情链接 end-->
<div class="blank"></div>
<!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem -->
</body>
</html>
