>  기사  >  백엔드 개발  >  ECshop 二次开发模板教程4_PHP教程

ECshop 二次开发模板教程4_PHP教程

WBOY
WBOY원래의
2016-07-20 11:14:36782검색

模板管理->模板选择,选择bluesky, 选择OK, 模板管理 -> 设置模板 -> 分类下的商品 ( 点击分类下的商品前面的 号,然后选择“主区域中间“,序号默认, 商品分类随便选择一个就可以了", 然后填写显示的条数,填写好后点击确定提交,( 注意: 有的朋友可能会遇到提交不了,是因为权限问题,需要把bluesky的模板权限改,然后再重新提交一次)。

<p>第一个分类的<p>

<?php <span $this</span>->assign('cat_goods',<span $this</span>->_var['cat_goods_1']); ?>

 

<?php <span $this</span>->assign('goods_cat',<span $this</span>->_var['goods_cat_1']); ?>

 

<?php <span echo</span> <span $this</span>->fetch('library/cat_goods.lbi'); ?>

<p>第二个分类的<p>

<?php <span $this</span>->assign('cat_goods',<span $this</span>->_var['cat_goods_3']); ?>

 

<?php <span $this</span>->assign('goods_cat',<span $this</span>->_var['goods_cat_3']); ?>

 

<?php <span echo</span> <span $this</span>->fetch('library/cat_goods.lbi'); ?>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<div class>="title-div"><img src="../images/green_arrow.gif"    style="max-width:90%"  style="max-width:90%" alt="" border="0">.url}">{<span>.name|escape:html}</span>
</div>

<div class>="content-div">

  <!--{<span foreach</span> from=<span $cat_goods</span> item=goods}-->

  <table border="0" cellpadding="3" cellspacing="1" class>="goods-table" $goods.url}"><img src="%7B<span%20%24goods</span>.thumb%7D" border="0" alt="{<span $goods</span>.name|escape:html}" class>="thumb" />

    

    <tr>

      <td>
<a href="%7B<span%20%24goods</span>.url%7D" title="{<span $goods</span>.name|escape:html}">{<span>.short_name|escape:html}</span></a><br>

        <!-- {<span if</span> <span $goods</span>.promote_price neq ""} --><span><span>.promote_price}<span class>="goods-price">{<span>.promote_price}</span>

        <!-- {<span else</span>}--><span><span>.shop_price}<span class>="goods-price">{<span>.shop_price}</span>

        <!--{/<span if</span>}-->

      </span></span></span></span></span></span>
</td>

    </tr>

  </table>

  <!--{/<span foreach</span>}-->

  <br>
<p> </p>
<p class="p0">
</p>
<p class="p0"> 符号,这个是没有关系的.删除掉也没有关系的啦</p>
<p class="p0"><span><span><span></span><span><span><span><span> 模板管理 -> 设置模板 <br></span><span>3 .首页图片大小是多少?图片点击放大后为什么失真这么厉害?怎么让图片</span><span><span></span><span><span><span></span></span></span></span></span></span></span></span></span></p>
<p class="p0">

<!--EndFragment-->









		
		</p>
<p align="left"></p>
<div style="display:none;">
<span id="url" itemprop="url">http://www.bkjia.com/PHPjc/440272.html</span><span id="indexUrl" itemprop="indexUrl">www.bkjia.com</span><span id="isOriginal" itemprop="isOriginal">true</span><span id="isBasedOnUrl" itemprop="isBasedOnUrl">http://www.bkjia.com/PHPjc/440272.html</span><span id="genre" itemprop="genre">TechArticle</span><span id="description" itemprop="description">p第一个分类的p?php -assign('cat_goods', -_var['cat_goods_1']); ? ?php -assign('goods_cat', -_var['goods_cat_1']); ? ?php -fetch('library/cat_goods.lbi'); ?p第二个分类的...</span>
</div>
</div>
<div class="art_confoot"></div>
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.