list.xml

来自「基于PHP的一套网络管理系统代码,对接口流量等可以进行详细的统计分析,很不错.」· XML 代码 · 共 61 行

XML
61
字号
<form>
	
	<title>{TITLE}</title>
	<border>true</border>
	
	<fields>
		<_count header="No" suffix="." width="30" align="center" />
		<type_name header="Name" align="left" />
	</fields>

	<header>
		<titles>true</titles>
		<buttons>
			<delete onclick="" button="addnew" >
				<location>index.php?mod=network&sub=type&action=add&type={TYPE}&returnurl={CURRENT_PAGE}</location>
			</delete>
		</buttons>
	</header>

	<vars>
		<type import="$_GET['type']" type="eval" />
		<title type="complex_eval" 
				import="
							switch ($_GET['type']) {
									case 1: $tpl_vars['title'] = 'Locations'; break;
									case 2: $tpl_vars['title'] = 'MFG Names'; break;
									case 3: $tpl_vars['title'] = 'Device Types'; break;
									case 4: $tpl_vars['title'] = 'Vendors'; break;
									case 5: $tpl_vars['title'] = 'Networks'; break;
							}
						" />
	</vars>


	<buttons>
		<delete onclick="" button="delete" >
			<location>javascript:if(confirm('Are you sure you want to delete this record ?')) window.location='index.php?mod=network&sub=type&action=delete&type_id={TYPE_ID}&returnURL={CURRENT_PAGE}'</location>
		</delete>

		<details onclick="" button="edit" >
			<location>index.php?mod=network&sub=type&action=edit&type_id={TYPE_ID}&type={TYPE}&returnurl={CURRENT_PAGE}</location>
		</details>

	</buttons>

	<SQL>
		<vars>
			<sql_page type="page"/>
			<sql_items type="form" var="items" />
			<relation import="$_GET['type']" type="eval" />
			<sql_table import="$this->tables['types']" type="eval"/>
			<sql_condition import="WHERE type='{RELATION}' " type="var"/>
		</vars>

		<query>SELECT * FROM `{SQL_TABLE}` {SQL_CONDITION} ORDER BY type_name ASC LIMIT {SQL_PAGE},{SQL_ITEMS} </query>
		<count table="{SQL_TABLE}" condition="{SQL_CONDITION}" />
	</SQL>

	<items>100</items>

</form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?