Home > Backend Development > PHP Tutorial > ECshop secondary development template tutorial 4_PHP tutorial

ECshop secondary development template tutorial 4_PHP tutorial

WBOY
Release: 2016-07-20 11:14:36
Original
811 people have browsed it

<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'); ?>
Copy after login

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

<div <span class</span>="title-div"><img src="../images/green_arrow.gif" width="37" height="37" alt="" border="0" $goods_cat</span>.url}">{<span>.name|escape:html}</a></div>

<div <span class</span>="content-div">

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

  <table border="0" cellpadding="3" cellspacing="1" <span class</span>="goods-table" $goods</span>.url}"><img src="{<span $goods<span $goods</span>.thumb}" border="0" alt="{<span $goods<span $goods</span>.name|escape:html}" <span class</span>="thumb" /></a></td>

    </tr>

    <tr>

      <td><a href="{<span $goods<span $goods</span>.url}" title="{<span $goods<span $goods</span>.name|escape:html}">{<span>.short_name|escape:html}</a><br />

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

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

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

      </td>

    </tr>

  </table>

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

  <br  </p>
<p> </p>
<p class="p0"  <p class="p0"  </p>
<p class="p0" <span 这里哦于一些奇怪的地方就是在标签两边多了 <!-- 和 --> 符号,这个是没有关系的.删除掉也没有关系的啦<p class="p0"></p>
<p class="p0"><span><span><span></span><span><span><span><span><span><span><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 class="art_confoot"></div></span></span></span></span></span></span></span></span>
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template