


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='feedback' method='post' enctype='multipart/form-data' action='../../enews/index.php'> <input name='enews' type='hidden' value='AddFeedback'> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">您的姓名:</div></td> <td bgcolor='ffffff'><input name='name' type='text' size='42'> (*)</td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">职务:</div></td> <td bgcolor='ffffff'><input name='job' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">公司名称:</div></td> <td bgcolor='ffffff'><input name='company' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系邮箱:</div></td> <td bgcolor='ffffff'><input name='email' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系电话:</div></td> <td bgcolor='ffffff'><input name='mycall' type='text' size='42'> (*)</td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">网站:</div></td> <td bgcolor='ffffff'><input name='homepage' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系地址:</div></td> <td bgcolor='ffffff'><input name='address' type='text' size="42"></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">信息标题:</div></td> <td bgcolor='ffffff'><input name='title' type='text' size="42"> (*)</td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">信息内容(*):</div></td> <td bgcolor='ffffff'><textarea name='saytext' cols='60' rows='12'></textarea> </td> </tr> <tr> <td bgcolor='ffffff'></td> <td bgcolor='ffffff'><input type='submit' name='submit' value='提交'></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='feedback' method='post' enctype='multipart/form-data' action='../../enews/index.php'> <input name='enews' type='hidden' value='AddFeedback'> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">您的姓名:</div></td> <td bgcolor='ffffff'><input name='name' type='text' size='42'> (*)</td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">职务:</div></td> <td bgcolor='ffffff'><input name='job' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">公司名称:</div></td> <td bgcolor='ffffff'><input name='company' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系邮箱:</div></td> <td bgcolor='ffffff'><input name='email' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系电话:</div></td> <td bgcolor='ffffff'><input name='mycall' type='text' size='42'> (*)</td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">网站:</div></td> <td bgcolor='ffffff'><input name='homepage' type='text' size='42'></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">联系地址:</div></td> <td bgcolor='ffffff'><input name='address' type='text' size="42"></td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">信息标题:</div></td> <td bgcolor='ffffff'><input name='title' type='text' size="42"> (*)</td> </tr> <tr> <td width='16%' height=25 bgcolor='ffffff'><div align="right">信息内容(*):</div></td> <td bgcolor='ffffff'><textarea name='saytext' cols='60' rows='12'></textarea> </td> </tr> <tr> <td bgcolor='ffffff'></td> <td bgcolor='ffffff'><input type='submit' name='submit' value='提交'></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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.