码迷,mamicode.com
首页 > 其他好文 > 详细

supesite资讯调用

时间:2015-09-19 12:23:03      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:

<!--{if $_SGET[‘page‘] < 2 || empty($_SGET[‘mode‘])}-->
    <!--{block name="spacenews" parameter="perpage/5/catid/$thecat[subcatid]/subjectlen/50/showdetail/1/messagelen/200/messagedot/1/order/i.dateline DESC/cachename/newlist"}-->
    
    <!--{if $_SBLOCK[‘newlist‘]}-->
    <ul>
     <!--{loop $_SBLOCK[‘newlist‘] $value}-->
     <li>
      <div class="category_main_left_content_pic">
       <!--{if $value[‘haveattach‘] == 1}-->
       <!--{block name="spacenews" parameter="sql/SELECT%20%2A%20FROM%20%60$_SC[tablepre]attachments%60%20WHERE%20%60itemid%60%3D%20{$value[itemid]}%20AND%20%60isimage%60%3D%201/limit/0,1/cachetime/86400/cachename/image/tpl/data"}--><!--news-->
       <!--{loop $_SBLOCK[‘image‘] $svalue}-->
       <a href="http://blog.163.com/pepsl@126/blog/$value[url]" title="$value[subjectall]"><img src="http://blog.163.com/pepsl@126/blog/{A_URL}/$svalue[filepath]" alt="$value[subjectall]" width="130px" height="90px" /></a>
       <!--{/loop}-->
       <!--{else}-->
       <img src="http://blog.163.com/pepsl@126/blog/templates/$_SCONFIG[template]/images/noimage.gif" width="130px" height="90px" />
       <!--{/if}-->
      </div>
      <div class="category_main_left_content_subject">
       <span class="box_r2">#date(‘m-d‘, $value[‘dateline‘])#</span><a href="http://blog.163.com/pepsl@126/blog/$value[url]">$value[subject]</a>
       <p>摘要:$value[message]</p>
       <p class="content_detail"><a href="http://blog.163.com/pepsl@126/blog/$value[url]">阅读全文&gt;&gt;</a></p>
      </div>
     </li>
     <!--{/loop}-->
    </ul>
    <!--{else}-->
    暂无信息!
    <!--{/if}-->

 

supesite资讯调用

标签:

原文地址:http://www.cnblogs.com/fenle/p/4821088.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!