最模板 - 外贸网站建设,外贸网站模板

最模板

当前位置: 首页 > 建站教程 > CMS教程 > ECShop教程 >

ECSHOP 模板经常用到的标签集锦

时间:2014-06-10 11:03来源: 作者: 点击:
首页: !-- 开始图片类型的友情链接 {foreachfrom=$img_links item=link}-- span style="width:100px; text-align: center" ahref="{$link.url}" target="_blank"title="{$link.name}"img src="{$link.logo}"width="88" height="31" alt="{$link
(责任编辑:admin)

首页:

<!--开始图片类型的友情链接{foreach from=$img_links item=link}-->

<span style="width: 100px; text-align: center">

<a href="{$link.url}" target="_blank" title="{$link.name}"><img src="{$link.logo}" width="88" height="31" alt="{$link.name}" border="0" /></a>

</span>

<!--结束图片类型的友情链接{/foreach}-->

<!--开始文字类型的友情链接{foreach from=$txt_links item=link}-->

<span style="width: 100px; text-align: center">

[<a href="{$link.url}" target="_blank" title="{$link.name}">{$link.name}</a>]

</span>

<!--结束文字类型的友情链接{/foreach}-->

<!-- 客服电话{if $service_phone} -->

      Tel: {$service_phone}

      <!-- 结束客服电话{/if} -->

 

联系客服:

      <!-- QQ 号码 {foreach from=$qq item=im} -->

      <!-- {if $im} -->

       <a href="" target="_blank"><img src="" alt="咨询商品信息,交流购物心得。" width="77" height="17" border="0" align="absmiddle"></a>

      <!-- {/if} -->

      <!-- {/foreach} 结束QQ号码 -->

      <!-- 淘宝旺旺 {foreach from=$ww item=im} -->

      <!-- {if $im} -->

       <a href="" target="_blank"><img src="" alt="咨询商品信息,交流购物心得。" border="0" align="absmiddle"></a>

      <!-- {/if} -->

      <!--{/foreach} 结束淘宝旺旺 -->

<!-- ICP 证书{if $icp_number} -->

      {$lang.icp_number}:<a href="" target="_blank">{$icp_number}</a>

      <!-- 结束ICP 证书{/if} -->

<!-- 最新文章 -->

<!--{foreach from=$new_articles item=article}-->

<p>[<a href="{$article.cat_url}">{$article.cat_name}</a>] <a href="{$article.url}" title="{$article.title|escape:html}">{$article.short_title}</a></p>

<!--{/foreach}-->

<!-- 发货单查询{foreach from=$invoice_list item=invoice} -->

    <strong>{$lang.order_number}</ strong>: {$invoice.order_sn}

      <strong>{$lang.consignment}</ strong>: {$invoice.invoice_no}        

  <!-- {/foreach} -->

<!-- 首页底下航栏 -->

<script type="text/javascript">var process_request = "{$lang.process_request}";</script>

<!-- {foreach name=nav_bottom_list from=$navigator_list.bottom item=nav} -->

      <a href="{$nav.url}"

      <!-- {if $nav.opennew eq 1} -->

      target="_blank"

      <!-- {/if} -->

      >{$nav.name}</a>

      <!-- {if !$smarty.foreach.nav_bottom_list.last} -->

      <!-- {/if} -->

   |

      <!-- {/foreach} -->

<!-- 首页上面的导航栏 -->

<!-- {foreach name=nav_top_list from=$navigator_list.top item=nav} -->

   {if $smarty.foreach.nav_top_list.last} {/if}<a href="{$nav.url}" <!-- {if $nav.opennew eq 1} -->target="_blank"<!-- {/if} -->>{$nav.name}</a>

   <!-- {/foreach} -->  

您的购物车中有 0 件商品,总计金额 0.00

{insert name='cart_info'}

<!-- 首页中间的导航栏 -->

<!-- {foreach name=nav_middle_list from=$navigator_list.middle item=nav} -->

    <li{if $nav.active eq 1} id="currentPage"{/if}><a href="{$nav.url}" <!-- {if $nav.opennew eq 1} -->target="_blank"<!-- {/if} -->>{$nav.name}</a></li>

    <!-- {/foreach} -->

文章

<!-- {if $prev_article or $next_article} -->

    <p class="globalArtileNext">

            <!-- 下一篇文章 {if $prev_article} -->

            {$lang.prev_article}<a href="article.php?id={$prev_article.article_id}">{$prev_article.title}</a>

            <!-- {/if} -->

            <!-- 上一篇文章 {if $next_article} -->

            {$lang.next_article}<a href="article.php?id={$next_article.article_id}">{$next_article.title}</a>

            <!-- {/if} -->

          </p>

          <!-- {/if} -->

 

产品详细页面:

{$goods.goods_style_name}

<!-- 商品销售排名{if $goods_rank}-->

<img src="images/rank_{$goods_rank}.gif" alt="{$goods_rank}" />

<!-- {/if} -->

<!-- 如果该商品正在进行夺宝奇兵的活动显示夺宝奇兵活动的链接{if $snatch} -->

            <li><a href="{$snatch.url}">{$lang.snatch_goods}</a></li>

            <!-- {/if} -->

<!-- 显示商品货号{if $cfg.show_goodssn} -->

            <li>{$lang.goods_sn} {$goods.goods_sn}</li>

            <!-- {/if} -->

            

<!-- 显示商品品牌{if $goods.goods_brand neq "" and $cfg.show_brand} -->

            <li>{$lang.goods_brand} <a href="{$goods.goods_brand_url}">{$goods.goods_brand}</a></li>

            <!-- {/if} -->

          

<!-- 显示商品重量{if $cfg.show_goodsweight} -->

            <li>{$lang.goods_weight} {$goods.goods_weight}</li>

            <!-- {/if} -->

<!-- 显示商品库存{if $goods.goods_number neq "" and $cfg.show_goodsnumber} -->

            <li>

              {$lang.goods_number} <!-- {if $goods.goods_number eq 0} --><span class="textStrong">{$lang.stock_up} </span><!-- {else} -->{$goods.goods_number} {$goods.measure_unit}

            <!-- {/if} -->

            </li>

            <!-- {/if} -->

 

商品标签:  <!-- 标记{foreach from=$tags item=tag}-->

                  <a href="search.php?keywords={$tag.tag_words|escape:url}">{$tag.tag_words|escape:html}<!--[{$tag.tag_count}]}--></a>

                  <!-- 结束标记{/foreach} --> </span>

<!-- 显示市场价格{if $cfg.show_marketprice} -->

            <li>{$lang.market_price} <span class="marketPrice">{$goods.market_price}</span></li>

            <!-- {/if} -->

<!--  本店价格 -->

            <li>{$lang.shop_price} <span class="goodsPrice" id="ECS_SHOPPRICE">{$goods.shop_price_formated}</span></li>

<!-- 会员等级对应的价格{foreach from=$rank_prices item=rank_price key=key} -->

            <li>{$rank_price.rank_name} <span class="goodsPrice" id="ECS_RANKPRICE_{$key}">{$rank_price.price}</span></li>

            <!-- {/foreach} -->

<!-- 倒计时js{if $goods.is_promote and $goods.gmt_end_time} -->

            <li>

              {insert_scripts files='lefttime.js'}

              {$lang.promote_price} <span class="goodsPrice">{$goods.promote_price}</span>

            <li>{$lang.residual_time} <span class="goodsPrice" id="leftTime">{$lang.please_waiting}</span></li>

            <!-- {/if} -->

<!-- 购买此商品可使用积分{if $goods.integral > 0} -->

            <li>{$lang.goods_integral} {$goods.integral} {$points_name}</li>

            <!-- {/if} -->

<!--  商品点击数 -->

            <li>{$lang.goods_click_count} {$goods.click_count}</li>

<!-- 开始循环所有可选属性{foreach from=$specification item=spec key=spec_key} -->

            <li>{$spec.name}

              <!-- {if $cfg.goodsattr_style eq 1} -->

              <!-- {foreach from=$spec.values item=value key=key} -->

              <p><label for="spec_value_{$value.id}">

              <input type="radio" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" {if $key eq 0}checked{/if} />

              {$value.label} <!-- {if $value.price gt 0} -->[{$lang.plus}<!-- {elseif $value.price gt 0} -->[{$lang.minus}<!-- {/if} --><!-- {if $value.price neq 0} -->{$value.format_price}]<!-- {/if} --></label></p>

              <!-- {/foreach} -->

              <input type="hidden" name="spec_list" value="{$key}" />

              <!-- {else} -->

              <select name="spec_{$spec_key}">

                <!-- {foreach from=$spec.values item=value key=key} -->

                <option label="{$value.label}" value="{$value.id}">{$value.label} <!-- {if $value.price gt 0} -->{$lang.plus}<!-- {elseif $value.price lt 0} -->{$lang.minus}<!-- {/if} --><!-- {if $value.price neq 0} -->{$value.format_price}<!-- {/if} --></option>

                <!-- {/foreach} -->

              </select>

              <input type="hidden" name="spec_list" value="{$key}" />

              <!-- {/if} -->

            </li>

            <!-- 结束循环可选属性{/foreach} -->

<!--  商品总价 -->

            <li>{$lang.amount}<span id="ECS_GOODS_AMOUNT" class="goodsPrice"></span></li>

<!--  购买数量 -->

            <li>{$lang.number}<input name="number" type="text" value="1" size="4" id="number" class="textInput_member" /></li>

 

调用用户评论:

<!-- #BeginLibraryItem "/library/comments.lbi" --><!-- #EndLibraryItem -->

<!-- 开始循环属性关联的商品 {foreach from=$attribute_linked item=linked} -->

<!-- {if $linked.goods} -->

<div id="globalAttrlinked" class="globalModule">

  <h3>{$linked.title}</h3>

  <ul class="listStyle">

    <!-- {foreach from=$linked.goods item=linked_goods} -->

    <li><a href="{$linked_goods.url}" title="{$linked_goods.goods_name|escape:html}">{$linked_goods.short_name|escape:html}</a></li>

    <!-- {/foreach} -->

  </ul>

</div>

<!-- {/if} -->

<!-- 结束属性关联的商品 {/foreach} -->

 

 

 

 

 

------分隔线----------------------------
栏目列表
推荐内容