details.xml
来自「基于PHP的一套网络管理系统代码,对接口流量等可以进行详细的统计分析,很不错.」· XML 代码 · 共 149 行
XML
149 行
<form>
<title>Device Details</title>
<action>index.php</action>
<name>edit</name>
<method>get</method>
<width>580</width>
<formtag>true</formtag>
<border>true</border>
<buttons>
<set>
<header>true</header>
</set>
<return onclick="" button="return" >
<location>{PRIVATE.FORM_PREVIOUS_PAGE}</location>
</return>
<save onclick="" button="edit">
<location>index.php?mod=network&sub=interfaces&action=edit&device_id={DEVICE_ID}&returnurl={CURRENT_PAGE}</location>
</save>
</buttons>
<redirect>index.php?mod=myprofile&sub=workers&action=details&user_id={USER_ID}</redirect>
<fields>
<device_id type="hidden" default="$_GET['user_id']" action="eval" />
<device_name type="text">
<title>Name</title>
</device_name>
<device_serial type="text">
<title>Serial Number</title>
</device_serial>
<mod type="hidden" default="$_GET[mod]" action="eval" />
<sub type="hidden" default="$_GET[sub]" action="eval" />
<action type="hidden" default="$_GET[action]" action="eval" />
<section type="droplist" onchange="document.forms[0].submit();" default="$_GET[section]" action="eval" width="300">
<title>View Section</title>
<options>
<option name="0">Device Details</option>
<option name="1">User Notes ( comments )</option>
<option name="2">Assigned IP/Gateways</option>
<option name="3">Change Log</option>
</options>
<description>Select the section you want to apear bellow.</description>
</section>
<subtitle type="subtitle" title="Device Details" />
<device_other type="text" size="20">
<title>Other Number</title>
</device_other>
<device_location type="relation" 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="text" valign="top" font="normal" size="60:3">
<title>Ports Used</title>
</device_ports>
<device_firmware type="text" size="30">
<title>Firmware version</title>
</device_firmware>
<device_os type="text" size="40">
<title>Operating System</title>
</device_os>
<device_speed type="text" size="20">
<title>Device Speed</title>
</device_speed>
<device_mfg type="relation" 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="text" size="20">
<title>MFG Phone</title>
</device_mfg_phone>
<device_mfg_site default="http://" type="text" size="60">
<title>MFG Web Site</title>
</device_mfg_site>
<device_mfg_link default="http://" type="text" size="60">
<title>Other Link</title>
</device_mfg_link>
<device_type type="relation" 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="text" valign="top" font="normal" size="60:6">
<title>Description</title>
</device_description>
<device_purchase type="text" params="F d, Y" action="date" now="true">
<title>Purchase Date</title>
</device_purchase>
<device_vendor type="relation" 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="text" size="30">
<title>Warranty</title>
</device_warranty>
<device_status type="relation">
<title>Status</title>
<options>
<option name="0">Inactive</option>
<option name="1">Active</option>
</options>
</device_status>
<device_network type="relation" 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="text" params="F d, Y" action="date">
<title>Date placed online</title>
</device_date_online>
<device_date_offline type="text" params="F d, Y" action="date" empty="true">
<title>Date taken offline</title>
</device_date_offline>
<device_other2 type="text" valign="top" font="normal" size="60:6">
<title>Other</title>
</device_other2>
</fields>
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?