Location: PHPKode > projects > Real Estate Management > admin/forms/user/properties/details.xml
<form>
	<title>Property Details</title>
	<action>index.php?sub=properties&action=store</action>
	<name>edit</name>
	<width>540</width>

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

		<return onclick="" button="return" >
			<location>index.php?sub=properties</location>
		</return>

	</buttons>

	<redirect>index.php?sub=properties&action=details&id={ID}</redirect>

	<fields>

		<id type="hidden"/>

		<type type="relation"  validate="A:1:100" empty="true">			
			<title>Property Type</title>
			<relation table="types" id="type_id" text="type_name" />
		</type>

		<area type="relation"  validate="A:1:100" empty="true">			
			<title>Area</title>
			<relation table="areas" id="area_id" text="area_name" />
		</area>

		<price action="price" type="text" size="15"  validate="A:1:100" preffix="$ ">			
			<title>Price</title>
		</price>

		<selling_price action="price" size="15" type="text" preffix="$ ">			
			<title>Selling Price</title>
		</selling_price>

		<status type="relation">			
			<title>Status</title>
			<options>
				<option name="1">active</option>	
				<option name="0">inactive</option>	
			</options>

		</status>


		<title_1 type="subtitle" title="Location and Contact"/>

		<address size="40" type="text" >
			<title>Address</title>
		</address>

		<city size="20" type="text"  validate="A:1:100">
			<title>City</title>
		</city>

		<state type="relation" empty="true"  validate="A:1:10">
			<title>State / Province</title>
			<relation table="states" id="code" text="name" />
		</state>
		
		<zip size="20" type="text"  validate="A:1:100">
			<title>Zip/Postal Code</title>
		</zip>

		<phone size="20" type="text">
			<title>Phone</title>
		</phone>

		<email size="30" type="text">
			<title>Email</title>
		</email>

		<title_2 type="subtitle" title="Description"/>

		<description type="text" html="true" width="400" height="150">
			<title>Description</title>
		</description>

		<title_3 type="subtitle" title="Details"/>

		<stories type="text" size="40:4">
			<title>Stories</title>
		</stories>

		<beds type="text" size="3:5">
			<title>Bedrooms</title>
		</beds>

		<bath type="text" size="5:10">
			<title>Bathrooms</title>
		</bath>

		<age type="text" size="3:5" suffix="years">
			<title>Age</title>
		</age>

		<school type="relation" empty="true">			
			<title>School District</title>
			<relation table="schools" id="school_id" text="school_name" />
		</school>

		<water type="relation" empty="true">			
			<title>Water Front</title>
			<options>
				<option name="1">yes</option>	
				<option name="0">no</option>	
			</options>

		</water>

		<square type="text" size="5:10">
			<title>Squarefeet</title>
		</square>

		<garage type="relation" empty="true">			
			<title>Garage</title>
			<options>
				<option name="1">yes</option>	
				<option name="0">no</option>	
			</options>

		</garage>

		<lot type="text" size="30:3">			
			<title>Lot Dimensions</title>
		</lot>

		<link type="text" size="40" preffix="http://">			
			<title>Other Web Link</title>
		</link>

	</fields>
</form>
Return current item: Real Estate Management