如题,查看页面右边的"相关阅读"和"网络推荐"
对换下位置
既"网络推荐"在"相关阅读"上面,请高手指点,谢谢!
代码如下:
<?exit?>
{template news_header}
<div id="ybd">
<div id="navigation">
<form id="searchform" action="{S_URL}/batch.search.php" method="post">
<input type="text" id="searchkey" name="searchkey" />
<select name="type" id="type">
<option value="">全部</option>
<!--{loop $channels['types'] $value}-->
<option value="$value[nameid]">$value[name]</option>
<!--{/loop}-->
</select>
<button type="submit" value="true" name="subjectsearch">搜索</button>
</form>
<p>您的位置:
<a href="{S_URL}/">$_SCONFIG[sitename]</a>
<!--{loop $guidearr $value}-->
>> <a href="$value[url]">$value[name]</a>
<!--{/loop}-->
</p>
</div>
</div>
<div id="list_ybd">
<div class="mainblock">
<div class="cola">
<!--广告图-->
<!--内容页中央横幅广告600*90-->
<!--{if !empty($_SCONFIG['viewadcenter'])}-->
<div class="content" style="background: none; margin-bottom: 0.5em;">
$_SCONFIG[viewadcenter]
</div>
<!--{/if}-->
<div class="mod">
<div class="bd">
<div class="bd_b">
<div class="list" style="width:47em;" >
<div id="articledetail" class="block">
<h2 style="margin:1em auto;">$news[subject]</h2>
<p class="articleinfo">
<span class="articlectrl">
字体:
<a href="javascript:doZoom('12');">小</a>
<a href="javascript:doZoom('14');">中</a>
<a href="javascript:doZoom('16');">大</a> |
<a href="{S_URL}/batch.common.php?action=viewnews&op=up&itemid=$news[itemid]&catid=$news[catid]" >上一篇</a> |
<a href="{S_URL}/batch.common.php?action=viewnews&op=down&itemid=$news[itemid]&catid=$news[catid]" >下一篇</a>
</span>
<span class="smalltxt">发布: #date('m-d H:i', $news["dateline"])# 作者: $news[newsauthor] 来源: <!--{if !empty($news[newsfromurl])}--><a href="$news[newsfromurl]" target="_blank" title="$news[newsfrom]">$news[newsfrom]</a><!--{else}-->$news[newsfrom]<!--{/if}--> 查看: $news[viewnum]次</span>
</p>
<!--{if !empty($news[custom][name])}-->
<br />
<div id="custominfo">
<h5>$news[custom][name]</h5>
<ul>
<!--{loop $news[custom][key] $ckey $cvalue}-->
<li><strong>$cvalue[name]: </strong>$news[custom][value][$ckey]</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<div id="articlebody">
$news[message]
<!--{if !empty($_SCONFIG['viewadmessage'])}-->
<br />
$_SCONFIG[viewadmessage]
<br />
<!--{/if}-->
<!--{if empty($multipage)}-->
<!--{loop $news['attacharr'] $attach}-->
<br /><a href="$attach[url]" target="_blank"><img src="$attach[thumbpath]" alt="$attach[subject]" /></a><br />$attach[subject]<br />
<!--{/loop}-->
<!--{/if}-->
<br />
<!--{if !empty($relativetagarr)}-->
<br /><strong>TAG:</strong>
<!--{loop $relativetagarr $value}-->
<!--{eval $svalue = rawurlencode($value);}-->
<a href="#action/tag/tagname/$svalue#" target="_blank">$value</a>
<!--{/loop}-->
<!--{/if}-->
</div>
</div>
</div>
</div>
<!--{if $multipage}-->
<div class="pages">
$multipage
</div>
<!--{/if}-->
</div>
<!--{if !empty($commentlist)}-->
<div id="commentlist" class="block">
<h3>最新评论</h3>
<ul class="commentlist">
<!--{loop $commentlist $value}-->
<li>
<h4>
<a href="#action/viewcomment/itemid/$value[itemid]/cid/$value[cid]/op/delete/php/1#" class="mayhuomore del">删除</a>
<!--{if !empty($value['message'])}--><a href="javascript:;" onclick="getQuote($value[cid])" class="mayhuomore quote">引用</a><!--{/if}-->
<!--{if empty($value[authorid])}-->$value[author]<!--{else}--><a href="#uid/$value[authorid]#" target="_blank" class="author">$value[author]</a><!--{/if}-->
<span class="smalltxt">(#date("Y-n-d H:i:s", $value["dateline"])#, 评分: <strong class="price">$value[rates]</strong> )</span>
</h4>
<div>
<!--{if !empty($value['message'])}-->
$value[message]
<!--{else}-->
评 <span style="font-size:16px">$value[rates]</span> 分
<!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
<div class="pages"><div class="xspace-page"><a href="#action/viewcomment/itemid/$news[itemid]#">查看全部$news[replynum]条评论</a></div></div>
</div>
<!--{/if}-->
<div id="xspace-rates" class="block">
<div id="xspace-rates-bg" align="left">
<div id="xspace-rates-star" class="xspace-rates0" > </div>
<div id="xspace-rates-a">
<a href="javascript:;" onmouseover="rateHover(-5);" onmouseout="rateOut();" onclick="setRateXML('-5', '$news[itemid]');">-5</a>
<a href="javascript:;" onmouseover="rateHover(-3);" onmouseout="rateOut();" onclick="setRateXML('-3', '$news[itemid]');">-3</a>
<a href="javascript:;" onmouseover="rateHover(-1);" onmouseout="rateOut();" onclick="setRateXML('-1', '$news[itemid]');">-1</a>
<a href="javascript:;" onmouseover="rateHover(0);" onmouseout="rateOut();" onclick="setRateXML('0', '$news[itemid]');">-</a>
<a href="javascript:;" onmouseover="rateHover(1);" onmouseout="rateOut();" onclick="setRateXML('1', '$news[itemid]');">+1</a>
<a href="javascript:;" onmouseover="rateHover(3);" onmouseout="rateOut();" onclick="setRateXML('3', '$news[itemid]');">+3</a>
<a href="javascript:;" onmouseover="rateHover(5);" onmouseout="rateOut();" onclick="setRateXML('5', '$news[itemid]');">+5</a>
</div>
<input type="hidden" id="xspace-rates-value" name="rates" value="0" />
</div>
<p>评分:<span id="xspace-rates-tip">0</span></p>
</div>
<div id="comment" class="block cleanblock">
<h3>我来说两句</h3>
<form id="postcomm" action="#action/viewcomment/itemid/$news[itemid]/php/1#" method="post">
<p><label for="message">内容:</label><textarea id="message" name="message" onfocus="showcode()"></textarea></p>
<!--{if empty($_SCONFIG['noseccode'])}-->
<p id="seccodeline" class="seccodeline"><label for="seccode">验证:</label><input type="text" id="seccode" name="seccode" value="" size="20" /> <img id="xspace-imgseccode" src="{S_URL}/batch.seccode.php" onclick="javascript:newseccode(this);" alt="seccode" title="看不清?点击换一个" /></p>
<!--{/if}-->
<p><button class="bn_login" type="submit" id="submitcomm" name="submitcomm" value="submit" style="margin-left: 2.8em; line-height: 35px; height: 35px; padding: 0 30px; color: #090;">发表评论</button></p>
<input type="hidden" id="itemid" name="itemid" value="$news[itemid]" />
</form>
</div></div>
</div>
<div class="colb">
<!--最新更新主题-->
<!--{block name="spacenews" parameter="catid/$thecat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/7280/cachename/newnews/tpl/data"}-->
<!--{if $_SBLOCK['newnews']}-->
<div id="space_block" class="mod">
<div class="hd">
<h2>最新更新</h2>
</div>
<div class="bd">
<div class="bd_mayhuo1">
<ul>
<!--{loop $_SBLOCK['newnews'] $value}-->
<li><a href="$value[url]">$value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<!--{/if}-->
<!--月度关注热点-->
<!--{block name="spacenews" parameter="catid/$thecat[subcatid]/dateline/2592000/order/i.viewnum DESC/limit/0,10/cachetime/28800/cachename/hotnews/tpl/data"}-->
<!--{if $_SBLOCK['hotnews']}-->
<div id="space_block" class="mod">
<div class="hd">
<h2>月度热点</h2>
</div>
<div class="bd">
<div class="bd_mayhuo1">
<ul>
<!--{loop $_SBLOCK['hotnews'] $value}-->
<li><a href="$value[url]">$value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
<!--{/if}-->
<div id="ks_block" class="mod">
<!--{if !empty($ads3['viewsiderad'])}-->
<div class="hd"><h2><a href="" target="_blank" >网络推荐</a></h2>
</div>
<div class="bd">
$ads3['viewsiderad']
</div>
<!--{/if}-->
</div>
</div>
</div>
</div>
<!--{/if}-->
<!--相关资讯-->
<!--{if !empty($news[relativeitemids])}-->
<!--{block name="spacenews" parameter="itemid/$news[relativeitemids]/order/i.dateline DESC/limit/0,20/cachetime/17680/cachename/relativeitem/tpl/data"}-->
<div id="space_block" class="mod">
<div class="hd">
<h2>相关阅读</h2>
</div>
<div class="bd">
<div class="bd_mayhuo1">
<ul>
<!--{loop $_SBLOCK['relativeitem'] $ikey $value}-->
<li><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
</div>
</div>
<!--内容页漂浮对联广告--><script language="javascript" type="text/javascript">
<!--
addMediaAction('articlebody');
addImgLink("articlebody");
//-->
</script>
<!--{if !empty($_SCONFIG['viewadfloating']) || !empty($_SCONFIG['viewadside'])}-->
<script language="javascript" type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script language="javascript" type="text/javascript">
<!--
<!--{if !empty($_SCONFIG['viewadfloating'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, "<div style=\"position: absolute; right: 6px; bottom: -"+lengthobj.winHeight+"px;\"><!--{eval echo jsstrip($_SCONFIG['viewadfloating']);}--></div>").floatIt();
<!--{/if}-->
<!--{if !empty($_SCONFIG['viewadside'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, "<div style=\"position: absolute; left: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br><img src=\"{S_URL}/images/base/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div><div style=\"position: absolute; right: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br><img src=\"{S_URL}/images/base/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div>").floatIt();
<!--{/if}-->
//-->
</script>
<!--{/if}-->
{template news_footer} |