帝国cmsphp判断字段值是否为空并且字段值a=字段值b而显示不同的内容
<?php if(!empty($navinfor[yi] and $navinfor[yi] != $navinfor[newstext])):?>
<a class="translate">译</a>
<?php endif;?>
<?php if($navinfor[yi] != '' and $navinfor[yi] != $navinfor[newstext]){?>
<a class="translate">译</a>
<?}else{?>
<?}?>
两种写法都可
<a class="translate">译</a>
<?php endif;?>
<?php if($navinfor[yi] != '' and $navinfor[yi] != $navinfor[newstext]){?>
<a class="translate">译</a>
<?}else{?>
<?}?>
两种写法都可
帝国CMS系统提示页模板怎么修改?帝国CMS系统提示信息页面修改方法!
« 上一篇
2024-06-08
帝国cmsmysql语句批量替换后台发布者用户名
下一篇 »
2024-06-08
666...