增加圈子修改代码:
<div id="ccc" class="block hotShop" style="height: 310px; overflow: hidden;">
<h3 id="ccclantabs" class="lantabs">
<a id="ccc1lantab" href="" class="lantab lancurtab">最新圈子</a>
<a id="ccc2lantab" href="" class="lantab">最近更新</a>
<a id="ccc3lantab" href="" class="lantab">成员最多</a>
</h3>
<div id="ccc1" class="lantabcontent">
<div id="ppp" class="huadong1">
<ul id="pppttts" class="ttts">
<!--{block name="group" parameter="showdetail/1/order/g.dateline DESC/limit/0,1/cachename/group/tpl/data"}--><!--最新圈子-->
<!--{eval $i=1;}-->
<!--{loop $_SBLOCK['group'] $key $value}-->
<li id="group$i" class="div1 div2">
<div class="xiangxi"><span><strong>1</strong></span>
<a href="$value[url]" target="_blank"><img src="$value[logo]" alt="$value[groupname]" /></a>
<h4><a href="$value[url]" target="_blank">$value[groupname]</a></h4>
成员:<strong>$value[usernum]</strong> 圈主:<a href="#uid/$value[uid]#" target="_blank">$value[username]</a>
<br />创建于 #date("Y-m-d", $value["dateline"])#
</div>
</li>
<li id="groupa$i" style="display:none" class="div1">
<span><strong>$i</strong><a href="$value[url]" target="_blank">$value[groupname]</a></span>
</li>
<!--{eval $i++;}-->
<!--{/loop}-->
<!--{block name="group" parameter="showdetail/1/order/g.dateline DESC/limit/1,7/cachename/group/tpl/data"}--><!--最新圈子-->
<!--{eval $i=2;}--> <!--增加的 变量 i-->
<!--{loop $_SBLOCK['group'] $key $value}-->
<li id="group$i" style="display:none" class="div1 div2">
<div class="xiangxi"><span><strong>1</strong></span>
<a href="$value[url]" target="_blank"><img src="$value[logo]" alt="$value[groupname]" /></a>
<h4><a href="$value[url]" target="_blank">$value[groupname]</a></h4>
成员:<strong>$value[usernum]</strong> 圈主:<a href="#uid/$value[uid]#" target="_blank">$value[username]</a>
<br />创建于 #date("Y-m-d", $value["dateline"])#
</div>
</li>
<li id="groupa$i" class="div1" >
<span><strong>$i</strong><a href="$value[url]" target="_blank">$value[groupname]</a></span>
</li>
<!--{eval $i++;}-->
<!--{/loop}-->
</ul>
</div>
</div>
<div id="ccc2" class="lantabcontent" style="display: none;">
<div id="ppp" class="huadong1">
<ul id="pppttts" class="ttts">
<!--{block name="group" parameter="showdetail/1/order/g.lastpost DESC/limit/0,1/cachename/group/tpl/data"}--><!--最近更新-->
<!--{eval $i=1;}-->
<!--{loop $_SBLOCK['group'] $key $value}-->
<li id="groupnew$i" class="div1 div2">
<div class="xiangxi"><span><strong>1</strong></span>
<a href="$value[url]" target="_blank"><img src="$value[logo]" alt="$value[groupname]" /></a>
<h4><a href="$value[url]" target="_blank">$value[groupname]</a></h4>
成员:<strong>$value[usernum]</strong> 圈主:<a href="#uid/$value[uid]#" target="_blank">$value[username]</a>
<br />创建于 #date("Y-m-d", $value["dateline"])#
</div>
</li>
<li id="groupnewa$i" style="display:none" class="div1">
<span><strong>$i</strong><a href="$value[url]" target="_blank">$value[groupname]</a></span>
</li>
<!--{eval $i++;}-->
<!--{/loop}-->
<!--{block name="group" parameter="showdetail/1/order/g.lastpost DESC/limit/1,7/cachename/group/tpl/data"}--><!--最近更新-->
<!--{eval $i=2;}-->
<!--{loop $_SBLOCK['group'] $key $value}-->
<li id="groupnew$i" style="display:none" class="div1 div2">
<div class="xiangxi"><span><strong>1</strong></span>
<a href="$value[url]" target="_blank"><img src="$value[logo]" alt="$value[groupname]" /></a>
<h4><a href="$value[url]" target="_blank">$value[groupname]</a></h4>
成员:<strong>$value[usernum]</strong> 圈主:<a href="#uid/$value[uid]#" target="_blank">$value[username]</a>
<br />创建于 #date("Y-m-d", $value["dateline"])#
</div>
</li>
<li id="groupnewa$i" class="div1">
<span><strong>$i</strong><a href="$value[url]" target="_blank">$value[groupname]</a></span>
</li>
<!--{eval $i++;}-->
<!--{/loop}-->
</ul>
</div>
</div>
<div id="ccc3" class="lantabcontent" style="display: none;">
<div id="ppp" class="huadong1">
<ul id="pppttts" class="ttts">
<!--{block name="group" parameter="showdetail/1/order/g.usernum DESC/limit/0,1/cachename/group/tpl/data"}--><!--成员最多-->
<!--{eval $i=1;}-->
<!--{loop $_SBLOCK['group'] $key $value}-->
<li id="groupmore$i" class="div1 div2">
<div class="xiangxi"><span><strong>1</strong></span>
<a href="$value[url]" target="_blank"><img src="$value[logo]" alt="$value[groupname]" /></a>
<h4><a href="$value[url]" target="_blank">$value[groupname]</a></h4>
成员:<strong>$value[usernum]</strong> 圈主:<a href="#uid/$value[uid]#" target="_blank">$value[username]</a>
<br />创建于 #date("Y-m-d", $value["dateline"])#
</div>
</li>
<li id="groupmorea$i" style="display:none" class="div1">
<span><strong>$i</strong><a href="$value[url]" target="_blank">$value[groupname]</a></span>
</li>
<!--{eval $i++;}-->
<!--{/loop}-->
<!--{block name="group" parameter="showdetail/1/order/g.usernum DESC/limit/1,7/cachename/group/tpl/data"}--><!--成员最多-->
<!--{eval $i=2;}-->
<!--{loop $_SBLOCK['group'] $key $value}-->
<li id="groupmore$i" style="display:none" class="div1 div2">
<div class="xiangxi"><span><strong>1</strong></span>
<a href="$value[url]" target="_blank"><img src="$value[logo]" alt="$value[groupname]" /></a>
<h4><a href="$value[url]" target="_blank">$value[groupname]</a></h4>
成员:<strong>$value[usernum]</strong> 圈主:<a href="#uid/$value[uid]#" target="_blank">$value[username]</a>
<br />创建于 #date("Y-m-d", $value["dateline"])#
</div>
</li>
<li id="groupmorea$i" class="div1">
<span><strong>$i</strong><a href="$value[url]" target="_blank">$value[groupname]</a></span>
</li>
<!--{eval $i++;}-->
<!--{/loop}-->
</ul>
</div>
</div>
</div>
</div> |