search
HomeCMS TutorialEmpire CMSEmpire CMS smart tag PHP code achieves the effect of infinite nesting of tags

Empire CMS smart tag PHP code achieves the effect of infinite nesting of tags

Most friends who are familiar with Empire CMS know that smart tags are used to call specific information, but the powerful functions of smart tags are far from that.
The PHP function of smart tags is:
sys_ReturnEcmsLoopBq (column ID/topic ID, display number, operation type, only display pictures with titles, additional SQL conditions, display sorting)
PHP code using smart tags Information can be called in pages that do not support smart tags, and the effect of infinite nesting of tags can be achieved.
So how can we achieve the effect of infinite nesting of tags? The following is an example:

The code is as follows:

<?php
$ecms_bq_sql=sys_ReturnEcmsLoopBq(栏目ID/专题ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序);
$bqno=0;
while($bqr=$empire->fetch($ecms_bq_sql))
{
$bqsr=sys_ReturnEcmsLoopStext($bqr);
$bqno++;
?>
<?php
$ecms_bq_sql2=sys_ReturnEcmsLoopBq(栏目ID/专题ID,显示条数,操作类型,只显示有标题图片,附加SQL条件,显示排序);
$bqno2=0;
while($bqr2=$empire->fetch($ecms_bq_sql2))
{
$bqsr2=sys_ReturnEcmsLoopStext($bqr2);
$bqno2++;
?>
模板代码内容2 <?=$bqr2[title]?>
<?php
}
?>
模板代码内容 <?=$bqr[title]?>
<?php
}
?>

When using $ecms_bq_sql, $bqno, $bqr, $bqsr variable names, you can achieve unlimited nesting effects by modifying them accordingly. .

It is recommended to study "Empire cms tutorial".

The above is the detailed content of Empire CMS smart tag PHP code achieves the effect of infinite nesting of tags. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:www.word666.com/cms. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Safe Exam Browser

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.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)