当前位置:首页 > 教程 > 帝国cms > 列表模板

3.11 应用举例 专题

$zhuanti=$empire->fetch1("select ztid,classid from {$dbtbpre}enewsztinfo where id = {$r['id']}");
if($zhuanti)
{
//专题名称
$ztname=$class_zr[$zhuanti['ztid']]['ztname'];
//专题链接
$ztlink=sys_ReturnBqZtname($zhuanti);
}
$listtemp='
     <li class="show-pic"><a href="[!--titleurl--]"><img src="[!--titlepic--]" />
        <h2>[!--title--]</h2>
        </a><span><a href="'.$ztlink.'" target="_blank">'.$ztname.'</a></li>';

你觉得文章内容怎么样

阿里云代金券 100 云产品通用

有效期30天 首购用户

立即领取
推荐宝塔面板 0 安全高效的

服务器运维面板

立即领取