Home  >  Article  >  CMS Tutorial  >  Empire 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

silencement
silencementforward
2019-12-03 15:27:182808browse

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