search
HomeCMS TutorialEmpire CMSSummarize the method of calling universal tags on the feedback information page of Empire CMS

Summarize the method of calling universal tags on the feedback information page of Empire CMS

For Empire CMS, its universal tag function is very powerful! It is a tag that is frequently used by many webmasters who use Imperial CMS when building websites!
Today I encountered a project that needed to quote the latest information of a certain column on the feedback information page. It is obviously the easiest to use universal tags, but the feedback information page does not support the call of universal tags!

After some testing, we came up with the following solution:
The calling function of the universal tag is the function sys_GetEcmsInfo in t_functions.php under e\class\. The dynamic page does not support tag calling but does. With the use of php code, the problem has a solution!

Recommended to study "Empire cms Tutorial"

Take the "Default Feedback Classification" that comes with Imperial CMS as an example. The original code is as follows:

The code is as follows:

[!--cp.header--]
<table width=100% align=center cellpadding=3 cellspacing=1 class="tableborder">
<form name=&#39;feedback&#39; method=&#39;post&#39; enctype=&#39;multipart/form-data&#39; action=&#39;../../enews/index.php&#39;>
<input name=&#39;enews&#39; type=&#39;hidden&#39; value=&#39;AddFeedback&#39;>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">您的姓名:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;name&#39; type=&#39;text&#39; size=&#39;42&#39;>
(*)</td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">职务:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;job&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">公司名称:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;company&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">联系邮箱:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;email&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">联系电话:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;mycall&#39; type=&#39;text&#39; size=&#39;42&#39;>
(*)</td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">网站:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;homepage&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">联系地址:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;address&#39; type=&#39;text&#39; size="42"></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">信息标题:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;title&#39; type=&#39;text&#39; size="42"> (*)</td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">信息内容(*):</div></td>
<td bgcolor=&#39;ffffff&#39;><textarea name=&#39;saytext&#39; cols=&#39;60&#39; rows=&#39;12&#39;></textarea>
</td>
</tr>
<tr>
<td bgcolor=&#39;ffffff&#39;></td>
<td bgcolor=&#39;ffffff&#39;><input type=&#39;submit&#39; name=&#39;submit&#39; value=&#39;提交&#39;></td>
</tr>
</form>
</table>
[!--cp.footer--]

Now take the call of the 10 latest information of the default data table as an example. The modified code is as follows:

The code is as follows:

[!--cp.header--]
<?php
include("../../class/t_functions.php");
?>
<table width=100% align=center cellpadding=3 cellspacing=1 class="tableborder">
<form name=&#39;feedback&#39; method=&#39;post&#39; enctype=&#39;multipart/form-data&#39; action=&#39;../../enews/index.php&#39;>
<input name=&#39;enews&#39; type=&#39;hidden&#39; value=&#39;AddFeedback&#39;>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">您的姓名:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;name&#39; type=&#39;text&#39; size=&#39;42&#39;>
(*)</td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">职务:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;job&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">公司名称:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;company&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">联系邮箱:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;email&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">联系电话:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;mycall&#39; type=&#39;text&#39; size=&#39;42&#39;>
(*)</td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">网站:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;homepage&#39; type=&#39;text&#39; size=&#39;42&#39;></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">联系地址:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;address&#39; type=&#39;text&#39; size="42"></td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">信息标题:</div></td>
<td bgcolor=&#39;ffffff&#39;><input name=&#39;title&#39; type=&#39;text&#39; size="42"> (*)</td>
</tr>
<tr>
<td width=&#39;16%&#39; height=25 bgcolor=&#39;ffffff&#39;><div align="right">信息内容(*):</div></td>
<td bgcolor=&#39;ffffff&#39;><textarea name=&#39;saytext&#39; cols=&#39;60&#39; rows=&#39;12&#39;></textarea>
</td>
</tr>
<tr>
<td bgcolor=&#39;ffffff&#39;></td>
<td bgcolor=&#39;ffffff&#39;><input type=&#39;submit&#39; name=&#39;submit&#39; value=&#39;提交&#39;></td>
</tr>
</form>
</table>
<?php
sys_GetEcmsInfo(0,10,28,0,3,2,0);
?>
[!--cp.footer--]

Among them, the header include Introduce the file t_functions.php where the universal tag function sys_GetEcmsInfo is located, and then add the function sys_GetEcmsInfo(0,10,28,0,3,2,0) where the information needs to be displayed; pay attention to the parameters in the function and the universal tag function sys_GetEcmsInfo. The parameters in the tags correspond one to one!
Now, the problem is solved!

The above is the detailed content of Summarize the method of calling universal tags on the feedback information page of Empire CMS. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:www.word666.com. 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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.