有标题图片就输出标题图片,如果没有就输出固定图片,代码如下!
[e:loop={0,10,3,0, '' , 'newstime ASC' }] |
<img src= "<?=$bqr[titlepic]?$bqr[titlepic]:$public_r[newsurl]." e/data/images/notimg.gif "?>" /><a href= "<?=$bqsr['titleurl']?>" target= "_blank" ><?= $bqr [ 'title' ]?></a> <br> |
[/e:loop] |
或
<?= $bqr [titlepic]?: $public_r [newsurl]. "e/data/images/notimg.gif" ?>" /> |
去掉了中间的 $bqr[titlepic]