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