list.xml
来自「基于PHP的一套网络管理系统代码,对接口流量等可以进行详细的统计分析,很不错.」· XML 代码 · 共 53 行
XML
53 行
<form>
<subtitle>Search Results</subtitle>
<width>580</width>
<fields>
<_count header="No" suffix="." width="25" align="center" />
<device_name align="left" header="Name"/>
<device_serial align="center" header="Serial Number"/>
</fields>
<header>
<titles>true</titles>
<buttons>
</buttons>
</header>
<buttons>
<details onclick="" button="details" >
<location>index.php?mod=network&sub=interfaces&action=interfacedetails&device_id={DEVICE_ID}&returnurl={CURRENT_PAGE}</location>
</details>
</buttons>
<SQL>
<vars>
<sql_page type="page"/>
<sql_items type="form" var="items" />
<sql_table import="$this->tables['interfaces']" type="eval"/>
<sql_condition type="complex_eval"
import="
if ($_GET[device_name])
$cond[] = 'device_name LIKE \'%' . $_GET[device_name] .'%\'';
if ($_GET[device_type])
$cond[] = 'device_type=\'' . $_GET[device_type] .'\'';
if ($_GET[device_mfg])
$cond[] = 'device_mfg=\'' . $_GET[device_mfg] .'\'';
if (is_array($cond))
$sql_vars['sql_condition'] = 'WHERE ' . implode(' AND ' , $cond);
else
$sql_vars['sql_condition'] = '';
"/>
</vars>
<query>SELECT * FROM `{SQL_TABLE}` {SQL_CONDITION} ORDER BY device_name ASC LIMIT {SQL_PAGE},{SQL_ITEMS} </query>
<count table="{SQL_TABLE}" condition="{SQL_CONDITION}" />
</SQL>
<items>35</items>
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?