phpcms调用图文列表,图片列表,文字列表

一,图片列表一,代码如下:

  1. {pc:content  action="lists" catid="8" thumb="1"  order="listorder desc" num="5"}  
  2.         {loop $data $r}  
  3.     <td height="140" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0">  
  4.         <tr>  
  5.           <td align="center"><a href="{$r[url]}" target="_blank" title="{$r[title]}"><img src="{thumb($r[thumb],173,134)}" width="173" height="134" /></a></td>  
  6.         </tr>  
  7.         <tr>  
  8.           <td height="35" align="center"><a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title],38,'')}</a></td>  
  9.         </tr> //xiariboke.com  
  10.       </td>  
  11.         {/loop}  
  12.         {/pc}  

二,图片列表二,代码如下:

  1. {pc:content  action="lists" catid="22" thumb="1" order="listorder desc" num="2"}  
  2.     {loop $data $r}  
  3.           <td height="145" align="center">  
  4.           <a href="{$r[url]}" target="_blank" title="{$r[title]}"><img src="{thumb($r[thumb],280,135)}" width="280" height="135" /></a>  
  5.           </td>  
  6.     {/loop}  
  7. {/pc}   

三,新闻列表,代码如下:

  1. {pc:content  action="lists" catid="18" order="listorder desc" num="2"}  
  2.     {loop $data $r}    
  3.           <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0" class="dy_title_link">  
  4.             <tr>  
  5.               <td width="20" align="center"><img src="images/arrow.jpg" width="3" height="3" /></td>  
  6.               <td><a href="{$r[url]}" target="_blank" title="{$r[title]}">{str_cut($r[title],56,'')}</a></td>  
  7.             </tr>  
  8.           </table>  
  9.     {/loop}  
  10. {/pc}  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值