How to obtain the topic name of the current information in the Empire CMS list page

silencement
Release: 2019-11-27 13:16:10
forward
2363 people have browsed it

How to obtain 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='
  • [!--title--] '.$ztname.'[!--newstime--]
  • ';
    Copy after login

    Recommended to study "Empirecms Tutorial"

    Hope this article explains It will be helpful to everyone’s Imperial CMS website building.

    The above is the detailed content of How to obtain 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!

    Related labels:
    source:www.word666.com
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!