<html {$html_attrs}>
<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;}
#header_block {white-space:nowrap;height:31px;padding-top:5px;}
#main_block {padding:10px 0;}
#inmain_block {margin:0 10px}
#fields_block {width:100%}
#buttons_block {width:100%;padding:10px 0;}
#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>
{BEGIN body}
{$header}	
{BEGIN contents_block}
<table align=center id="center_block"><tr><td id="contents_block">
<div  class=tableheader id="header_block">
##@TABLE.strCaption h## - ##message ADVANCED_SEARCH##
</div>

{BEGIN conditions_block}
<DIV id=conditions_block class=header2>
<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>NOT</td>
<td colspan=3 align=center valign=middle>&nbsp; </td></tr>

##foreach Fields as @f filter @f.bAdvancedSearch order @f.nAdvSearchPageOrder##		
{BEGIN ##@f.strName g##_fieldblock}		
<tr class=shade>
	<td class=fieldname>##@f.strLabel h##
	<td align=center><input type=checkbox {$##@f.strName g##_notbox}></td>
	<td>{$searchtype_##@f.strName g##}</td>
	
	<td width=270>{$##@f.strName g##_editcontrol}</td>

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

<div class="blackshade" id="buttons_block">
{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="##message BACK_TO_LIST##" {$backbutton_attrs}></span>
{END back_button}
</div>
</td></tr></table>
{END contents_block}
{$footer}
{END body}
</body>
</html>
	

