本帖最后由 hyj123 于 2009-5-27 21:55 编辑
是怎样的啊,在哪里加??热点内容,幻灯片和最新资讯
<div class="column">
<div class="col1">
<div class="col3">
<!--{block name="spacenews" parameter="haveattach/2/order/i.dateline DESC/limit/0,4/cachetime/83400/subjectlen/40/subjectdot/0/cachename/hotnewspic"}-->
<div id="focus_turn">
<!--{if !empty($_SBLOCK['hotnewspic'])}-->
<ul id="focus_pic">
<!--{eval $j = 0}-->
<!--{loop $_SBLOCK['hotnewspic'] $pkey $pvalue}-->
<!--{eval $pcurrent = ($j == 0 ? 'current' : 'normal');}-->
<li class="$pcurrent"><a href="$pvalue[url]"><img src="$pvalue['a_filepath']" alt="" /></a></li>
<!--{eval $j++}-->
<!--{/loop}-->
</ul>
<ul id="focus_tx">
<!--{eval $i = 0}-->
<!--{loop $_SBLOCK['hotnewspic'] $key $value}-->
<!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
<li class="$current"><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
<!--{eval $i++}-->
<!--{/loop}-->
</ul>
<div id="focus_opacity"></div>
<!--{/if}-->
</div><!--focus_turn end-->
<!--{block name="spacenews" parameter="order/i.viewnum DESC/limit/0,17/cachetime/86900/subjectlen/40/subjectdot/0/showdetail/1/messagelen/100/messagedot/1/cachename/hotnews"}-->
<!--{if !empty($_SBLOCK['hotnews'])}-->
<!--{eval $hotnews = @array_slice($_SBLOCK['hotnews'], 0, 5)}-->
<!--{/if}-->
<div id="new_news">
<h3>热点内容</h3>
<ul>
<!--{loop $hotnews $value}-->
<li><span class="box_r">#date('m-d',$value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</div><!--col3 end-->
<!--最新资讯-->
<!--{block name="spacenews" parameter="order/i.dateline DESC/limit/0,5/cachetime/85400/subjectlen/46/subjectdot/0/showdetail/1/messagelen/150/messagedot/1/cachename/newnews1"}-->
<div class="col4" id="hot_news">
<h3>最新资讯</h3>
<!--{loop $_SBLOCK['newnews1'] $value}-->
<div class="hot_news_list">
<h4><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></h4>
<p>$value[message]</p>
</div>
<!--{/loop}-->
</div><!--col4 end-->
</div><!--col1 end-->
<div class="col2">
<div id="user_login">
<script src="{S_URL}/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>
</div><!--user_login end--> |