本帖最后由 yinfoo8 于 2010-06-12 10:50:18 编辑

解决方案 »

  1.   

    $smarty.foreach.brokerlist.first 
    $smarty.foreach.brokerlist.iteration  1开始的
    没事多翻手册,smarty的手册一般的都讲了,少有的写的好.
      

  2.   

    smarty 2.6 中文手册,,csdn上应该有的下,,你也可以去百度一下..肯定能找到.
      

  3.   

    php_manual_zh.docs.chm这个18.6M,而且是chm的
      

  4.   

    <li class="num2 listHeight">
       <div class="list0"><img src="{$smarty.foreach.brokerlist.index}.gif"><a href="#" target=_blank class=v> <!--{$item.realname}--></a> <a href="#" target=_blank class=v> 出售(<span class="f-red"><!--{$item.sell_num}--></span>) </a> <a href="#" target=_blank class=v> 出租(<span class="f-red"><!--{$item.rent_num}--></span>) </a> </div>
    </li>
      

  5.   


    这个小图片是通过<li class="num2 listHeight"> 控制的   num2就是2num3  num4  num5 num6
      

  6.   

    $smarty.section.customer.iteration==1$smarty.section.customer.iteration
      

  7.   

    $smarty.foreach.brokerlist.iteration 循环的次数
    $smarty.foreach.brokerlist.rownum 循环的次数
    这两个一样,从1开始。$smarty.foreach.brokerlist.index 索引,从0开始