


How to get the topic name of the current information in the Empire CMS list page
This article mainly introduces the method of obtaining the topic name of the current information in the list page of Empire CMS. The topic is obtained through SQL query and judgment combined with the built-in array variable of Empire CMS. Name is a very practical skill. Friends who need it can refer to
How to get the topic name of the current information in the Empire CMS list page?
The example in this article describes the method of obtaining the topic name of the current information in the Empire CMS list page. Share it with everyone for your reference. The specific implementation method is as follows:
Check the program support code. Then add the following code to the template page:
The code is as follows:
//查询该信息是否有专题 $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><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span><a href="'.$ztlink.'">'.$ztname.'</a></span><span>[!--newstime--]</span></li>';
The above is the detailed content of How to get the topic name of the current information in the Empire CMS list page. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!