<html>
<head>
<title>##@TABLE.strCaption h##: ##message ADV_SEARCH##</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
#center_block {margin:0 auto;}
#contents_block {text-align:center;width:100%}
#header_block {white-space:nowrap;height:31px;padding-top:5px;}
#main_block {padding:10px 0;width:100%}
#inmain_block {margin:0 10px}
#fields_block {width:100%}
#buttons_block {width:100%;padding-bottom:5px}
#required_block {text-align:left;padding:5px}
#buttons_block > * {margin:0 2px}
</style>
<!--[if IE]>
<style>
#main_block {padding:10px 10;}
#inmain_block {margin:0 0px}
</style>
<![endif]-->
</head>
<body bgcolor=white>
{$header}
{BEGIN body}
	
{BEGIN contents_block}
<table align=center id="center_block" style="BORDER: #cccccc 1px solid;"><tr><td id="contents_block">
	
<div id="header_block" class=tableheader>
##@TABLE.strCaption h## - ##message ADVANCED_SEARCH##
</div>

{BEGIN conditions_block}
<DIV id=conditions_block>
<span class=fieldname>##message SEARCH_FOR##: </span>
<input type="radio" name="type" {$all_checkbox}>##message ALL_CONDITIONS##
&nbsp;&nbsp;&nbsp;
<input type="radio" name="type" {$any_checkbox}>##message ANY_CONDITION##
</div>
{END conditions_block}

<table cellpadding=4 cellspacing=0 border=0 id="fields_block">
<tr valign=center class=blackshade>
<td align=center valign=middle>&nbsp;</td>
<td width=30 align=center valign=middle class=fieldname></td>
<td colspan=3 align=center valign=middle>&nbsp; </td></tr>

<tr><td>&nbsp;</td></tr>
<tr><td class=message>&nbsp;&nbsp;<b>Search by Property Number or Name</b></td></tr>
##foreach Fields as @f filter @f.bAdvancedSearch && (strName=="PropertyID" || strName=="Name") order @f.nAdvSearchPageOrder##		
		
<tr class=shade>
	<td class=fieldname align=right>##@f.strLabel h##:
	<input type="Hidden" name="asearchfield[]" value="##@f.strName h##"></td>
	<td align=center style="display:none"><input type=CheckBox name="not_##@f.strName g##" {$not_##@f.strName g##}></td>
	
	<td style="display:none">
	{$searchtype_##@f.strName g##}
	</td>
	
	<td width=270>{$##@f.strName g##_editcontrol}</td>

	<td width=270 style="display:none"><span id="second_##@f.strName g##">
	{$##@f.strName g##_editcontrol1}
	</span></td>
	
	
</tr>
##endfor##

<tr><td>&nbsp;</td></tr>
<tr><td class=message>&nbsp;&nbsp;<b>Search by Property Features</b></td></tr>
##foreach Fields as @f filter @f.bAdvancedSearch && (strName=="State" || strName=="Country" || strName=="Type" || strName=="Area" || strName=="Location" || strName=="Bedrooms" || strName=="Bathrooms" || strName=="FromPrice") order @f.nAdvSearchPageOrder##		
		
<tr class=shade>
	<td class=fieldname align=right>
	##if strName!="FromPrice"##
	##@f.strLabel h##:
	##else##
	Price Equals or Less Than:
	##endif##
	<input type="Hidden" name="asearchfield[]" value="##@f.strName h##"></td>
	<td align=center style="display:none"><input type=CheckBox name="not_##@f.strName g##" {$not_##@f.strName g##}></td>
	
	<td style="display:none">
	##if strName!="FromPrice"##
	{$searchtype_##@f.strName g##}
	##else##
	<SELECT ID="SearchOption" NAME="asearchopt_##@f.strName g##" SIZE=1 onChange="return ShowHideControls();"><OPTION VALUE="Equal or less than ..." >Equal or less than ...</option></SELECT>
	##endif##
	</td>
	
	<td width=270>{$##@f.strName g##_editcontrol}</td>

	<td width=270 style="display:none"><span id="second_##@f.strName g##">
	{$##@f.strName g##_editcontrol1}
	</span></td>
	
	
</tr>
##endfor##

<tr><td>&nbsp;</td></tr>
<tr><td class=message>&nbsp;&nbsp;<b>Search by Amenities</b></td></tr>
##foreach Fields as @f filter @f.bAdvancedSearch && strName!="State" && strName!="Country" && strName!="Type" && strName!="Area" && strName!="Location" && strName!="Bedrooms" && strName!="Bathrooms" && strName!="FromPrice" && strName!="PropertyID" && strName!="Name" order @f.nAdvSearchPageOrder##		
		
<tr class=shade>
	<td class=fieldname align=right>##@f.strLabel h##:
	<input type="Hidden" name="asearchfield[]" value="##@f.strName h##"></td>
	<td align=center style="display:none"><input type=CheckBox name="not_##@f.strName g##" {$not_##@f.strName g##}></td>
	
	<td style="display:none">
	{$searchtype_##@f.strName g##}
	</td>
	
	<td width=270>{$##@f.strName g##_editcontrol}</td>

	<td width=270 style="display:none"><span id="second_##@f.strName g##">
	{$##@f.strName g##_editcontrol1}
	</span></td>
	
</tr>
##endfor##
</table>

<div class="blackshade" id="buttons_block">
 <div id="required_block" ><img src="images/icon_required.gif"> - ##message REQUIRED_FIELD##</div>
{BEGIN search_button}
 <span class=buttonborder><input class=button type=button value="##message SEARCH##" {$searchbutton_attrs}></span>
{END search_button} 
{BEGIN reset_button}
 <span class=buttonborder><input class=button type=button value="##message RESET##" {$resetbutton_attrs}></span>
{END reset_button}
{BEGIN back_button}
 <span class=buttonborder><input class=button type=button value="Back to properties" {$backbutton_attrs}></span>
{END back_button}
</div>
</td></tr></table>
{END contents_block}
{END body}
{$footer}

</body>
</html>
