Hongmu Notes
Home Program Notes The empire cms list page calls the tag tag
Program Notes Empire cms

The empire cms list page calls the tag tag

The empire cms list page calls the tag tag
$fr=$empire->fetch1("select infotags from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'");
$infotags=$fr['infotags'];
$r_tag=explode(",",$infotags);
for($i=0;$i<count($r_tag);$i++){
    if($r_tag[$i]){
        $tagslink=$public_r[newsurl]."e/tags/?tagname=".urlencode($r_tag[$i]);
        $tags.="<a href='$tagslink' target='_blank' rel='tag'>".$r_tag[$i]."</a>";
    }
}
if($r['titlepic']!=''){
$titlepic='<div class="img"> <a href="[!--titleurl--]" title="[!--oldtitle--]"><img src="[!--titlepic--]" alt="[!--oldtitle--]"></a> </div>';
$style='';
}else{
$titlepic='';
$style=' style="margin-left: 0px;"';
}
$cl=$empire->fetch1("select classname from {$dbtbpre}enewsclass where classid='$r[classid]'");
$classname=$cl['classname'];
$listtemp='<li>
            '.$titlepic.'
            <div class="imgr"'.$style.'>
              <h2><a href="[!--titleurl--]">[!--title--]</a></h2>
              <p>[!--smalltext--]...</p>
              <div class="info"> <span><a href="[!--this.classlink--]"><i class="fa fa-columns"></i>'.$classname.'</a></span> <span><i class="fa fa-clock-o"></i>[!--newstime--]</span> <span><i class="fa fa-eye"></i>[!--onclick--]</span> <span><i class="fa fa-comments"></i>[!--plnum--]</span> <span class="tag">'.$tags.'</span> </div>
            </div>
          </li>';
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Empire CMS database statement & SQL statement format

Empire CMS database statement & SQL statement format Program Notes Empire cms

Introduction to Imperial CMS extended SQL program writing, basic examples of Imperial CMS database statements & SQL statement formats: Note: The following examples are based on placing PHP files in the system root directory. Example 1: Connect to MYSQL program. (a.php)<?php require('e/class/connect.php'); //Introduce database configuration files and public function files requ…
👁 353
Empire CMS obtains the system COOKIE variable function getcvar()

Empire CMS obtains the system COOKIE variable function getcvar() Program Notes Empire cms

Get the system COOKIE variable function syntax: getcvar($var,$ecms) Description: $var: is the variable name $ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0. Usage example: getcvar('mlusername'), get the user name of the front-end login member getcvar('loginu...
👁 296
Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3749

Recommended reading

Responsive Communication, Power Finance, Healthcare, Technology – Website Template 1043

Responsive Communication, Power Finance, Healthcare, Technology – Website Template 1043 Practical Collection Yiyou template

An eyouCMS responsive website template designed for the telecommunications, power, finance, healthcare, and technology industries. Its professional, tech-oriented design effectively showcases telecommunications services, power equipment, financial products, healthcare technologies, and corporate strength, enabling large technology conglomerates to showcase their diversified business portfolios online. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: EasyCMS Installation Guide...
👁 40
Responsive Medical Device and Hospital Diagnostic Equipment Website Template 1044

Responsive Medical Device and Hospital Diagnostic Equipment Website Template 1044 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the medical devices, hospitals, and diagnostic equipment industries. Its professional, tech-oriented design is perfect for showcasing medical devices, diagnostic instruments, technical specifications, and clinical applications. It helps medical device companies present their products online and attract potential clients from hospitals and distributors. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: EyouCMS Installation...
👁 55
Responsive medical equipment oxygen concentrator website template 1045

Responsive medical equipment oxygen concentrator website template 1045 Practical Collection Yiyou template

An eyoucms responsive website template for the medical equipment and oxygen concentrator industries. The design style is professional and medical, and can display oxygen concentrator products, medical equipment, technical parameters and home medical solutions. It helps medical equipment companies display their products online and attract customers from families and medical institutions. Template display Installation instructions Website backend: /login.php Account: admin Password: admin Related articles Yiyou CMS installation...
👁 57
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 199
Responsive Medical Technology Private Doctor Website Template 1046

Responsive Medical Technology Private Doctor Website Template 1046 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the healthcare technology and private physician sectors. Its professional, high-end design effectively showcases medical services, private physician offerings, health management solutions, and technical expertise. It helps premium healthcare brands attract high-net-worth customers online and strengthen their brand image. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS...
👁 35
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517