add.xml
来自「基于PHP的一套网络管理系统代码,对接口流量等可以进行详细的统计分析,很不错.」· XML 代码 · 共 52 行
XML
52 行
<form>
<title>{PRIVATE.FORM_ACTION_TITLE} {TITLE}</title>
<action>index.php?mod=network&sub=type&action=store</action>
<name>edit</name>
<width>580</width>
<formtag>true</formtag>
<border>true</border>
<buttons>
<set>
<footer>true</footer>
<header>true</header>
</set>
<return onclick="" button="return">
<location>{PRIVATE.FORM_PREVIOUS_PAGE}</location>
</return>
<save onclick="" button="saveall">
<location>javascript:document.forms[0].submit();</location>
</save>
</buttons>
<vars>
<type import="$_GET['type']" type="eval" />
<title type="complex_eval"
import="
switch ($_GET['type']) {
case 1: $tpl_vars['title'] = 'Location'; break;
case 2: $tpl_vars['title'] = 'MFG Name'; break;
case 3: $tpl_vars['title'] = 'Device Type'; break;
case 4: $tpl_vars['title'] = 'Vendor'; break;
case 5: $tpl_vars['title'] = 'Network'; break;
}
" />
</vars>
<redirect>index.php?mod=myprofile&sub=accounts</redirect>
<fields>
<type_id type="hidden" hidden="true"/>
<type type="hidden" default="$_GET[type]" action="eval"/>
<type_name type="textbox" size="35" required="true" validate="A:2:200">
<title>Title</title>
<description>Enter an unique name for this {TITLE}.</description>
</type_name>
</fields>
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?