<form>
<title>Add / Edit Property</title>
<action>index.php?sub=properties&action=store</action>
<name>edit</name>
<width>540</width>
<formtag>true</formtag>
<border>true</border>
<buttons>
<set>
<footer>true</footer>
<header>true</header>
</set>
<return onclick="" button="return" >
<location>index.php?sub=properties&action=details&id={ID}</location>
</return>
<save onclick="" button="saveall">
<location>javascript:document.forms[0].submit();</location>
</save>
</buttons>
<redirect>index.php?sub=properties&action=details&id={ID}</redirect>
<fields>
<id type="hidden"/>
<type type="droplist" required="true" validate="A:1:100" empty="true">
<title>Property Type</title>
<relation table="types" id="type_id" text="type_name" />
</type>
<area type="droplist" required="true" validate="A:1:100" empty="true">
<title>Area</title>
<relation table="areas" id="area_id" text="area_name" />
</area>
<price type="textbox" size="15" required="true" validate="A:1:100" preffix="$ ">
<title>Price</title>
</price>
<selling_price size="15" type="textbox" preffix="$ ">
<title>Selling Price</title>
</selling_price>
<status type="droplist">
<title>Status</title>
<description>If the status is inactive then this property will not apear in the site listings.</description>
<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="textbox" >
<title>Address</title>
</address>
<city size="20" type="textbox" required="true" validate="A:1:100">
<title>City</title>
</city>
<state type="droplist" empty="true" required="true" validate="A:1:10">
<title>State / Province</title>
<relation table="states" id="code" text="name" />
</state>
<zip size="20" type="textbox" required="true" validate="A:1:100">
<title>Zip/Postal Code</title>
</zip>
<phone size="20" type="textbox">
<title>Phone</title>
</phone>
<email size="30" type="textbox">
<title>Email</title>
</email>
<title_2 type="subtitle" title="Description"/>
<description type="textarea" html="true" width="400" height="150">
<title>Description</title>
</description>
<title_3 type="subtitle" title="Details"/>
<stories type="textbox" size="5:10">
<title>Stories</title>
</stories>
<beds type="textbox" size="5:10">
<title>Bedrooms</title>
</beds>
<bath type="textbox" size="5:10">
<title>Bathrooms</title>
</bath>
<age type="textbox" size="3:5" suffix="years">
<title>Age</title>
</age>
<school type="droplist" empty="true">
<title>School District</title>
<relation table="schools" id="school_id" text="school_name" />
</school>
<water type="droplist">
<title>Water Front</title>
<options>
<option name="1">yes</option>
<option name="0">no</option>
</options>
</water>
<square type="textbox" size="5:10">
<title>Squarefeet</title>
</square>
<garage type="droplist">
<title>Garage</title>
<options>
<option name="1">yes</option>
<option name="0">no</option>
</options>
</garage>
<lot type="textarea" size="30:3">
<title>Lot Dimensions</title>
</lot>
<link type="textbox" size="40" preffix="http://">
<title>Other Web Link</title>
</link>
</fields>
</form>