帝国cms专题封面模板调用含有专题名称并且包含特定字符的信息


avatar
pcwnas 2023-04-25 115

原文来自:https://liye5.com/

<?php 
$r=$empire->fetch1("select ztname from phome_enewszt where ztid='".$GLOBALS[navclassid]."' limit 1");
?>
[e:loop={48,4,0,0,"title like '%$r[ztname]%' and title like '%32%'",'newstime DESC'}]

										<li class="lastf">
						<div class="list_con">
							<div class="con_top"><a href="<?=$bqr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank"><?=$bqr['title']?></a></div>
							<div class="con_bottom"> <a href="<?=$bqr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank" class="fleft"> <img src="<?=$bqr['titlepic']?>" width="139" height="104"> </a>
								<div class="con_xq fleft">
									<p><?=esub($bqr[smalltext],156,'…')?><a  href="<?=$bqr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank">[详细]</a> </p>
									<div class="con_xq_bottom"> <span>大小:<?=$bqr['daxiao']?></span><span>日期:<?=date("m-d",$bqr[newstime])?></span><a href="<?=$bqr['titleurl']?>" title="<?=$bqr['title']?>" target="_blank" class="ljxz_btn right" >查看详情</a> </div>
								</div>
							</div>
						</div>
					</li>
[/e:loop]