Hongmu Notes
Home Program Notes Empire cms adds custom lists and uses your own php code
Program Notes Empire cms

Empire cms adds custom lists and uses your own php code

Empire cms adds custom lists and uses your own php code

Secondary development of lists

<?php
require('../../class/connect.php');
require('../../class/db_sql.php');
require('../../class/functions.php');
require('../../class/t_functions.php');
require('../../data/dbcache/class.php');
require '../'.LoadLang('pub/fun.php');
$link=db_connect();
$empire=new mysqlquery();
$tempid = 1;   //封面模板id
if(empty($tempid))
{
    printerror('ErrorUrl','',1);
}
$classtemp=GetClassTemp($tempid);
$dttempname='classtemp';
$string=DtNewsBq($dttempname,$classtemp,0);
$string=str_replace('[!--newsnav--]',$url,$string);//位置导航
$string=Class_ReplaceSvars($string,$url,$classid,$pagetitle,$pagekey,$pagedes,$classimg,$addr,0);
$string=str_replace('[!--page.stats--]','',$string);
//封面:缓存
echo stripSlashes($string);
db_close();
$empire=null;
微信赞赏

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…
👁 351
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 fashion women's footwear e-commerce sales website template – 11463 0540

Responsive fashion women's footwear e-commerce sales website template – 11463 0540 Practical Collection Yiyou template

An EyouCMS responsive professional template designed for e-commerce sales of women's footwear. Its stylish and sophisticated design enables effective display of women's shoe products, brand image, promotional campaigns, and online purchasing options. This template helps women's footwear brands establish an online e-commerce platform and attract consumers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 35
Responsive fresh fruit and vegetable e-commerce website template – 11851 0541

Responsive fresh fruit and vegetable e-commerce website template – 11851 0541 Practical Collection Yiyou template

This EyouCMS responsive e-commerce template is ideal for the fresh produce, fruits, and vegetables industry. Its fresh and natural design seamlessly showcases fresh fruits and vegetables, promotional campaigns, delivery services, and online purchasing options. It helps fresh produce e-commerce businesses establish online platforms and expand their sales channels. Template Preview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | Eyou...
👁 61
Responsive e-commerce video blog website template – 29280 0542

Responsive e-commerce video blog website template – 29280 0542 Practical Collection Yiyou template

An EyouCMS responsive professional template designed for e-commerce, downloads, video content, and blogs. Its versatile, modern design makes it ideal for comprehensive content platforms – perfect for showcasing video resources, download services, articles and news, as well as brand identity. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (EyouCm...
👁 53
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 piano instrument e-commerce website template – 11855 0543

Responsive piano instrument e-commerce website template – 11855 0543 Practical Collection Yiyou template

This EyouCMS responsive e-commerce template is ideal for the piano and musical instrument industry. Its elegant and artistic design enables effective showcasing of musical instrument products, brand stories, teaching services, and online purchasing capabilities. It helps musical instrument brands establish an online e-commerce platform to attract music enthusiasts. Template Preview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 47
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