
<patTemplate:tmpl name="pageoutput" unusedvars="strip">
<script language="JavaScript" type="text/javascript">
	<!--
	jomresJquery(document).ready(function () {
		make_datatable('admin_listproperties', '{PAGETITLE}', '{LIVESITE}', '{AJAX_URL}');
		column_ids = new Array(1,3,4,5,6,7,9,11,12,13,14);
		dataTableSetHiddenColumns('admin_listproperties', column_ids);
		});
	
	function savecrates(property_uid, crate_id) 
		{
		cmd = '{JOMRES_SITEPAGE_URL_ADMIN_AJAX}&task=savecrates_ajax&property_uid=' + property_uid + '&crate_id=' + crate_id;
		jomresJquery.get(cmd, function (data) {
			//alert "OK"
			});
		}
	
	function setApproval(property_uid, approved) 
		{
		cmd = '{JOMRES_SITEPAGE_URL_ADMIN_AJAX}&task=ajax_list_properties_approve&property_uid=' + property_uid + '&approved=' + approved;
		jomresJquery.get(cmd, function (data) {
			//alert "OK"
			});
		}
</script>

<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">{PAGETITLE}</h3>
	</div>
	<div class="panel-body">
		<div class="alert alert-warning">{WARNING}</div>
		<table width="100%" id="admin_listproperties" class="table table-striped">
			<thead>
				<tr>
					<th>{HSTATUS}</th>
					<th>{HPROPERTYUID}</th>
					<th>{HPROPERTYNAME}</th>
					<th>{HPROPERTY_STREET}</th>
					<th>{HPROPERTY_TOWN}</th>
					<th>{HPROPERTY_REGION}</th>
					<th>{HPROPERTY_POSTCODE}</th>
					<th>{HPROPERTY_COUNTRY}</th>
					<th>{HPROPERTY_TEL}</th>
					<th>{HPROPERTY_FAX}</th>
					<th>{HPROPERTY_EMAIL}</th>
					<th>{HPROPERTY_STARS}</th>
					<th>{HPROPERTY_SUPERIOR}</th>
					<th>{HPROPERTY_LAT}</th>
					<th>{HPROPERTY_LONG}</th>
					<th>{HAPPROVED}</th>
					<th>{HLASTCHANGED}</th>
					<th>{HCRATE}</th>
				</tr>
			</thead>
			<tbody>
			</tbody>
		</table>

		<h5>{HLEGEND}</h5>
		<span class="label label-red">{HNOTCOMPLETED}</span>
		<span class="label label-orange">{HWAITINGAPPROVAL}</span>
	</div>
</div>
</patTemplate:tmpl>