add.xml
来自「基于PHP的一套网络管理系统代码,对接口流量等可以进行详细的统计分析,很不错.」· XML 代码 · 共 150 行
XML
150 行
<form>
<title>{PRIVATE.FORM_ACTION_TITLE} Device</title>
<action>index.php?mod=network&sub=interfaces&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>
<redirect>index.php?mod=network&sub=interfaces&action=details&device_id={DEVICE_ID}</redirect>
<fields>
<device_id type="hidden" hidden="true"/>
<device_date type="hidden" default="time()" action="eval"/>
<device_level type="hidden" forcevalue="1" action="eval"/>
<device_name type="textbox" size="30" required="true" validate="A:2:100">
<title>Name</title>
</device_name>
<device_serial type="textbox" size="20">
<title>Serial Number</title>
</device_serial>
<device_other type="textbox" size="20">
<title>Other Number</title>
</device_other>
<device_location type="droplist" empty="true">
<title>Location</title>
<relation table="types" id="type_id" text="type_name" condition="type=1" order="type_name" />
</device_location>
<device_ports type="textarea" size="60:3">
<title>Ports Used</title>
</device_ports>
<device_firmware type="textbox" size="30">
<title>Firmware version</title>
</device_firmware>
<device_os type="textbox" size="40">
<title>Operating System</title>
</device_os>
<device_speed type="textbox" size="20">
<title>Device Speed</title>
</device_speed>
<device_mfg type="droplist" empty="true">
<title>MFG Name</title>
<relation table="types" id="type_id" text="type_name" condition="type=2" order="type_name" />
</device_mfg>
<device_mfg_phone type="textbox" size="20">
<title>MFG Phone</title>
</device_mfg_phone>
<device_mfg_site default="http://" type="textbox" size="60">
<title>MFG Web Site</title>
<description>Please add http:// in front of the address.</description>
</device_mfg_site>
<device_mfg_link default="http://" type="textbox" size="60">
<title>Other Link</title>
<description>Please add http:// in front of the address.</description>
</device_mfg_link>
<device_type type="droplist" empty="true">
<title>Type</title>
<relation table="types" id="type_id" text="type_name" condition="type=3" order="type_name" />
</device_type>
<device_description type="textarea" size="60:6">
<title>Description</title>
</device_description>
<device_purchase type="date" now="true">
<title>Purchase Date</title>
<fields>
<month format="int" default="now" />
<day format="int" default="now" />
<year from="2004" to="2010" default="now"/>
</fields>
</device_purchase>
<device_vendor type="droplist" empty="true">
<title>Vendor</title>
<relation table="types" id="type_id" text="type_name" condition="type=4" order="type_name" />
</device_vendor>
<device_warranty type="textbox" size="30">
<title>Warranty</title>
</device_warranty>
<device_status type="droplist">
<title>Status</title>
<options>
<option name="0">Inactive</option>
<option name="1">Active</option>
</options>
</device_status>
<device_network type="droplist" empty="true">
<title>Network Name</title>
<relation table="types" id="type_id" text="type_name" condition="type=5" order="type_name" />
</device_network>
<device_date_online type="date">
<title>Date placed online</title>
<fields>
<month format="int" empty="true"/>
<day format="int" empty="true"/>
<year from="2000" to="2010" empty="true"/>
</fields>
</device_date_online>
<device_date_offline type="date" empty="true">
<title>Date taken offline</title>
<fields>
<month format="int" empty="true"/>
<day format="int" empty="true"/>
<year from="2000" to="2010" empty="true"/>
</fields>
</device_date_offline>
<device_other2 type="textarea" size="60:6">
<title>Other</title>
</device_other2>
</fields>
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?