最新商品代码是这样子的,希望各位网友给修改成放资讯栏目的图文资讯内容的代码,谢谢,小弟不懂,还希望大家能帮忙!
<!--{if !empty($channels['types']['goods'])}-->
<div id="goods" class="tabblock" style="height: 400px; overflow: hidden;">
<a href="#action/goods#" class="more">更多商品</a>
<h3 id="goodstabs">
<a id="newgoodstab" onmouseover="setTab('goods','newgoods')" class="tab curtab">最新商品</a>
<a id="hotgoodstab" onmouseover="setTab('goods','hotgoods')" class="tab">热门商品</a>
</h3>
<div id="newgoods" class="tabcontent">
<!--{block name="spacegoods" parameter="order/i.dateline DESC/limit/0,4/subjectlen/24/subjectdot/1/messagelen/60/messagedot/1/cachetime/15980/showdetail/1/cachename/newgoods/tpl/data"}-->
<ul class="thumbmsglist">
<!--{loop $_SBLOCK['newgoods'] $value}-->
<li style="padding: 5px;">
<p class="thumb"><a href="$value[url]"><img src="$value[thumb]" alt="$value[subjectall]" title="$value[subjectall]" /></a></p>
<div style="width: 190px;">
<h6><a href="$value[url]">$value[subject]</a></h6>
<!--{if !empty($value[message])}--><p>$value[message]</p><!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
</div>
<div id="hotgoods" class="tabcontent" style="display: none;">
<!--{block name="spacegoods" parameter="dateline/604800/order/i.replynum DESC/limit/0,4/subjectlen/30/subjectdot/1/messagelen/60/messagedot/1/showdetail/1/cachetime/33800/cachename/hotgoods/tpl/data"}-->
<ul class="thumbmsglist">
<!--{loop $_SBLOCK['hotgoods'] $value}-->
<li style="padding: 5px;">
<p class="thumb"><a href="$value[url]"><img src="$value[thumb]" alt="$value[subjectall]" title="$value[subjectall]" /></a></p>
<div style="width: 190px;">
<h6><a href="$value[url]">$value[subject]</a></h6>
<!--{if !empty($value[message])}--><p>$value[message]</p><!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
</div>
</div> |