杭州神话信息技术有限公司
标题:
求助:左侧边栏“其他精彩团购”数量怎么控制?
[打印本页]
作者:
jzzj8
时间:
2011-7-8 10:54:47
标题:
求助:左侧边栏“其他精彩团购”数量怎么控制?
左侧边栏“
其他精彩团购
”数量 比如想显示5个 或者8个 怎么编辑那个模块 加句什么代码呢? 高人指点!!感激不尽!!!
作者:
jzzj8
时间:
2011-7-8 11:17:11
没人会么? 这是模板文件
<div class="t_area_out">
{eval
$cpid = isset($_GET['view']) ? $_GET['view'] : -1;
}
<h1>其他精彩团购</h1>
<div class="t_area_in">
<ul class="product_list">
{loop logic('product')->GetList(logic('misc')->City('id'),PRO_ACV_Yes) $i $product}
{eval if ($product['id'] == $cpid) continue ; $ic++; }
<li>
<p class="name"><b>{$ic}、</b><a href="?view={$product['id']}">{$product['name']}</a></p>
<p class="image"><a href="?view={$product['id']}"><img src="{echo imager($product['imgs'][0], IMG_Small);}" width="200" height="121"/></a></p>
<p class="shop">
原价:<font class="markprice">¥{$product['price']}</font><br/>
现价:<font class="price">¥{$product['nowprice']}</font><br/>
<p class="agio_float">优惠 <font class="agio">{$product['discount']}</font> 折
<br/>
已有 <font class="buys">{$product['succ_buyers']}</font> 人购买
</p>
</p>
</li>
{/loop}
{if $ic == 0}
<li>
<p class="name">
暂时没有其他团购了哦!
</p>
</li>
{/if}
</ul>
</div>
</div>
复制代码
有高人指点指点么???
作者:
jzzj8
时间:
2011-7-8 11:51:24
有活的能说话的不???
作者:
jzzj8
时间:
2011-7-8 13:02:40
加了一句
{eval if ($ic>=5)return;}
是可以了 但是底部错位了!!!!
作者:
jzzj8
时间:
2011-7-8 13:48:22
汗!!这论坛死气沉沉! 算了……
欢迎光临 杭州神话信息技术有限公司 (http://www.cenwor.com/)
Powered by Discuz! X2