帝国cms列表某个字段php判断值为空没有填写就不显示

2025-05-29 0 45

$_nowclass=$empire->fetch1("select * from {$dbtbpre}enewsclass where classid='$r[classid]'");
if($r[leixing]==1){$leixing='/skin/images/697d72c337a3443a499aa82a75fa3848.png';}else{$leixing='/skin/images/c3b68b548bb563c5fbe2b10c1622c978.png';}
if($r['appid']!=''){$appid='<a href="[!--titleurl--]" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" class="label on" data-v-0e2f59fc="">版本合集</a>';}else{$appid='';}
$listtemp=' <div class="item" style="background-image:url( '.$leixing.' );" data-v-04823eb6="">
<div class="name" data-v-04823eb6="">
<a href="[!--titleurl--]" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" title="[!--title--] [!--bb--]" class="name-text" data-v-04823eb6="">[!--title--] [!--bb--]</a> <!---->
'.$appid.'
<div title="[!--smalltext--]" class="text" data-v-04823eb6="">
[!--smalltext--]
</div>
<div class="other" data-v-04823eb6="">
<span data-v-04823eb6=""><i class="iconfont icon-time-on" data-v-04823eb6=""></i>[!--newstime--]</span> <!----> <a href="[!--titleurl--]" rel="external nofollow"  rel="external nofollow"  rel="external nofollow"  target="_blank" data-v-04823eb6=""><i class="iconfont icon-look-on" data-v-04823eb6=""></i>查看示图</a>

</div>
</div>
</div>';
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

帝国CMS模板网 帝国CMS教程 帝国cms列表某个字段php判断值为空没有填写就不显示 https://www.daixiao360.com/5497.html

相关文章

发表评论
暂无评论