Location: PHPKode > projects > Real Estate Management > admin/forms/admin/photos/add.xml
<form>
	<title>Add / Edit Image</title>
	<action>index.php?sub=photos&action=store</action>
	<name>edit</name>
	<width>540</width>
	<encoding>multipart/form-data</encoding>

	<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={PROPERTY}</location>
		</return>

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

	</buttons>

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

	<fields>
		<id type="hidden" />
		<property type="hidden" default="$_GET[property]" action="eval" />

		<title type="textbox" size="30" required="true" validate="A:1:200">
			<title>Title</title>
		</title>

		<description type="textarea" size="40:4">
			<title>Description</title>
		</description>

		<tn type="image" adminwidth="100" adminheight="100" path="../upload/" absolute="false" editable="true">
			<file default="tn_photo_" field="id" ext=".jpg" />			
			<title>Tn Image</title>
			<error>No image currently available.</error>
		</tn>

		<image type="image" adminwidth="200" adminheight="200" path="../upload/" absolute="false" editable="true">
			<file default="photo_" field="id" ext=".jpg" />			
			<title>Large Image</title>
			<error>No image currently available.</error>
		</image>


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