fetch($ecms_bq_sql)){$bqsr.. .}" and save."/> fetch($ecms_bq_sql)){$bqsr.. .}" and save.">

Home >CMS Tutorial >Empire CMS >How to achieve infinite nesting of labels in Imperial CMS smart labels

How to achieve infinite nesting of labels in Imperial CMS smart labels

藏色散人
藏色散人Original
2020-01-13 09:17:363643browse

How to achieve infinite nesting of labels in Imperial CMS smart labels

How to achieve infinite nesting of labels in Empire CMS smart tags?

This article mainly introduces the Empire CMS smart tag PHP code to achieve the effect of infinite nesting of tags. Friends in need can refer to the following

Recommended study "Empire cms tutorial

Most friends who are familiar with the Empire CMS know how to use smart tags to call specific information, but the powerful functions of smart tags are far from that.

The PHP function of the smart label is:

sys_ReturnEcmsLoopBq (column ID/topic ID, number of items displayed, operation type, only pictures with titles, additional SQL conditions, display sorting)

PHP code using smart tags can call information in pages that do not support smart tags, and can also achieve the effect of infinite nesting of tags.

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, the infinite nesting effect can be achieved by modifying the variable names of $ecms_bq_sql, $bqno, $bqr, and $bqsr in a targeted manner.

The above is the detailed content of How to achieve infinite nesting of labels in Imperial CMS smart labels. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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