
<patTemplate:tmpl name="pageoutput" unusedvars="strip">
	<script type="text/javascript">
		<!--
		function select_all(obj) {
			var text_val = eval(obj);
			text_val.focus();
			text_val.select();
			if (!document.all) return; // IE only
			r = text_val.createTextRange();
			r.execCommand('copy');
		}
		//-->
	</script>
	<h2>{PAGETITLE}: {PROPERTY_NAME}</h2>

	<form action="{JOMRES_SITEPAGE_URL_ADMIN}" method="post" name="adminForm">
		{JOMRESTOOLBAR}
		<table width="100%" border="0">
			<tr>
				<td width="50%" valign="top">
					<table class="ui-widget-content ui-corner-all" border="0" width="100%">
						<tr>
							<td><h3>{HPROPERTYADDRESS}</h3></td>
						</tr>
						<tr>
							<td>{PROPERTY_STREET}</td>
						</tr>
						<tr>
							<td>{PROPERTY_TOWN}</td>
						</tr>
						<tr>
							<td>{PROPERTY_REGION}</td>
						</tr>
						<tr>
							<td>{PROPERTY_COUNTRY}</td>
						</tr>
						<tr>
							<td>{PROPERTY_POSTCODE}</td>
						</tr>
						<tr>
							<td>{PROPERTY_TEL}</td>
						</tr>
					</table>
				</td>
				<td width="50%" valign="top">
					<table class="ui-widget-content ui-corner-all" border="0" width="100%">
						<tr>
							<td><h3>{HCOMMISSIONRATE}</h3></td>
						</tr>
						<tr>
							<td width="30%">{HCRATE_TITLE}</td>
							<td>{CRATE_TITLE}</td>
						</tr>
						<tr>
							<td>{HCRATE_TYPE}</td>
							<td>{CRATE_TYPE}</td>
						</tr>
						<tr>
							<td>{HCRATE_VALUE}</td>
							<td>{CRATE_VALUE}</td>
						</tr>
						<tr>
							<td>{HCRATE_CURRENCYCODE}</td>
							<td>{CRATE_CURRENCYCODE}</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<br/>
		<table class="ui-widget-content ui-corner-all" border="0" width="100%">
			<tr>
				<td><h3>APIKEY</h3></td>
			</tr>
			<tr>
				<td><input type="text" size="60" class="inputbox" name="apikey" value="{APIKEY}" READONLY
						   onclick="select_all(this);"/></td>
			</tr>
		</table>
		<br/>
		<table class="ui-widget-content ui-corner-all" border="0" width="100%">
			<tr>
				<td><h3>{HCOMMISSIONESTIMATE}</h3></td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_commissionestimate_1"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_commissionestimate_2"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_commissionestimate_3"></div>
				</td>
			</tr>
		</table>
		<br/>
		<table class="ui-widget-content ui-corner-all" border="0" width="100%">
			<tr>
				<td><h3>{HVALUEOFBOOKINGS}</h3></td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_valueofbookings_1"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_valueofbookings_2"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_valueofbookings_3"></div>
				</td>
			</tr>
		</table>
		<br/>
		<table class="ui-widget-content ui-corner-all" border="0" width="100%">
			<tr>
				<td><h3>{HNUMBEROFBOOKINGS}</h3></th>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_numberofbookings_1"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_numberofbookings_2"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div id="yearviewgraph_numberofbookings_3"></div>
				</td>
			</tr>
		</table>
		<input type="hidden" name="id" value="{ID}"/>
		<input type="hidden" name="option" value="com_jomres"/>
		<input type="hidden" name="task" value="viewproperty"/>
		{CSRF_TOKEN}
	</form>
</patTemplate:tmpl>