<html>
<head>
<title>##@TABLE.strCaption h##</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>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border:none;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid black 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
#selpage{margin-left:30px;}
</style> 
</head>
<body style="background-color:white">
{BEGIN body}
{BEGIN page}
{$header}
##if @TABLE.arrMasterTables.len##
{BEGIN mastertable_block}
<div id="mastertable_block">
{$showmasterfile}
</div>
{END mastertable_block}
##endif##

<h1>##@TABLE.strCaption h##</h1>
{BEGIN page_number}
<div id='selpage'>##message PAGE1## {$pageno} ##message PAGE2## {$maxpages} </div>
{END page_number}
##if @BUILDER.bViewPDF##
{BEGIN pdf_block}
{BEGIN pdflink_block}
<a href=# class=pdf {$pdflink_attrs}>##message PDF_VIEW##</a>
{END pdflink_block}
{END pdf_block}
##endif##

{BEGIN grid_block}

<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_header}
<tr>
<td colspan=2>&nbsp;</td>
{BEGIN record_header}
##foreach Fields as @f filter @f.bPrinterPage && @f.strName!="MLS_Number" && @f.strName!="House_Number" && @f.strName!="Street_Name" && @f.strName!="Apartment/Unit" && @f.strName!="City" && @f.strName!="State" && @f.strName!="Zip" && @f.strName!="Remarks" && @f.strName!="PhotoListing" order @f.nPrinterPageOrder##
{BEGIN ##@f.strName g##_fieldheadercolumn}
	<td>
{BEGIN ##@f.strName g##_fieldheader}
	<b>##@f.strLabel h##</b>
{END ##@f.strName g##_fieldheader}
	</td>
{END ##@f.strName g##_fieldheadercolumn}
##endfor##		
{BEGIN endrecordheader_block}
	<td class="gridspacing" style="border:none;">&nbsp;</td>
{END endrecordheader_block}
{END record_header}
</tr>
{END grid_header}
{BEGIN grid_row}
<tr valign=top {$rowstyle} {$rowattrs}>
{BEGIN grid_record}
<td width=160>{$PhotoListing_value}</td>
<td height=130>
<FONT face=Tahoma color=#8b0000><STRONG>
{$House_Number_value}&nbsp;{$Street_Name_value}&nbsp;{$Apartment_Unit_value}<br>
{$City_value}&nbsp;{$State_value}&nbsp;{$Zip_value}<br>
MLS#:{$MLS_Number_value}
</STRONG></FONT><br><br>
{$Remarks_value}
</td>
##foreach Fields as @f filter @f.bPrinterPage && @f.strName!="MLS_Number" && @f.strName!="House_Number" && @f.strName!="Street_Name" && @f.strName!="Apartment/Unit" && @f.strName!="City" && @f.strName!="State" && @f.strName!="Zip" && @f.strName!="Remarks" && @f.strName!="PhotoListing" order @f.nPrinterPageOrder##
{BEGIN ##@f.strName g##_fieldcolumn}
<td {$##@f.strName g##_style}>
{$##@f.strName g##_value}
</td>
{END ##@f.strName g##_fieldcolumn}
##endfor##
{BEGIN endrecord_block}
<td class="gridspacing" style="border:none;">&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
<!-- totals row -->
##if Fields[strTotalsType].len##
{BEGIN totals_row}
<tr>
	##foreach Fields as @f filter @f.bPrinterPage order @f.nPrinterPageOrder##
{BEGIN ##@f.strName g##_fieldfootercolumn}
<td>
{BEGIN ##@f.strName g##_showtotal}
	<b>
		##if @f.strTotalsType=="COUNT"##
			##message COUNT##:
		##elseif @f.strTotalsType=="TOTAL"##
			##message TOTAL##:
		##elseif @f.strTotalsType=="AVERAGE"##
			##message AVERAGE##:
		##endif##
	{$##@f.strName g##_total}
	</b>
{END ##@f.strName g##_showtotal}
</td>
{END ##@f.strName g##_fieldfootercolumn}
	##endfor##
</tr>
{END totals_row}
##endif##		
</table>
{END grid_block}
{$footer}
{END page}
{END body}
</body>
</html>