Location: PHPKode > projects > Network Management Center > modules/network/forms/level0/type/add.xml
<form>
	<title>{PRIVATE.FORM_ACTION_TITLE} {TITLE}</title>
	<action>index.php?mod=network&sub=type&action=store</action>
	<name>edit</name>
	<width>580</width>

	<formtag>true</formtag>
	<border>true</border>
	
	<buttons>		
		<set>
			<footer>true</footer>
			<header>true</header>
		</set>

		<return onclick="" button="return">
			<location>{PRIVATE.FORM_PREVIOUS_PAGE}</location>
		</return>

		<save onclick="" button="saveall">
			<location>javascript:document.forms[0].submit();</location>
		</save>

	</buttons>

	<vars>
		<type import="$_GET['type']" type="eval" />
		<title type="complex_eval" 
				import="
							switch ($_GET['type']) {
									case 1: $tpl_vars['title'] = 'Location'; break;
									case 2: $tpl_vars['title'] = 'MFG Name'; break;
									case 3: $tpl_vars['title'] = 'Device Type'; break;
									case 4: $tpl_vars['title'] = 'Vendor'; break;
									case 5: $tpl_vars['title'] = 'Network'; break;
							}
						" />
	</vars>

	<redirect>index.php?mod=myprofile&sub=accounts</redirect>

	<fields>
		<type_id type="hidden" hidden="true"/>
		<type type="hidden" default="$_GET[type]" action="eval"/>

		<type_name type="textbox" size="35" required="true" validate="A:2:200">			
			<title>Title</title>			
			<description>Enter an unique name for this {TITLE}.</description>
		</type_name>
	</fields>
</form>
Return current item: Network Management Center