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

silencement
silencementforward
2019-11-29 14:16:062390browse

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