Location: PHPKode > projects > Network Management Center > modules/network/forms/level2/interfaces/list.xml
<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>
Return current item: Network Management Center