帝国cms如果信息带有图片信息则标题上图片标志的方法: [e:loop={ selfinfo ,20,0,0}] ? $newimg = ; if (! empty empty ( $bqr [titlepic])) { $newimg = imgsrc=http://www.aspku.com/bbs/static/image/filetype/image_s.gif/ ; }

帝国CMS如果信息带有图片信息则标题上图片标志的方法:

帝国CMS如果信息带有图片信息则标题加图片标志的方法  帝国CMS 图片 标志 第1张

  1. [e:loop={'selfinfo',20,0,0}] 
  2. <? 
  3. $newimg=""; 
  4. if(!emptyempty($bqr[titlepic])) 
  5. $newimg="<img src='http://www.zhiu.cn/ bbs/static/image/filetype/image_s.gif' />"; 
  6. ?> 
  7. <tr class="even"> 
  8. <td class="title"> 
  9. <h1><a href="<?=$bqsr[titleurl]?>" target="_blank"><?=sub($bqr[title],0,24,false)?></a> <?=$newimg?></h1> 
  10. <p class="intro"> 
  11. <?=$bqr[smalltext]?>[<a title="阅读全文" href="<?=$bqsr[titleurl]?>" target="_blank">详细内容</a>] 
  12. </p> 
  13. </td> 
  14. <td><?=$bqr[myarea]?></td> 
  15. <td><?=date('Y-m-d H:i:s', $bqr[newstime])?></td> 
  16. </tr> 
  17. [/e:loop] 

注:相关教程知识阅读请移步到帝国CMS教程频道。
转载请说明出处
知优网 » 帝国CMS如果信息带有图片信息则标题加图片标志的方法

发表评论

您需要后才能发表评论