<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>
table {  border-collapse: collapse} 
td { 
 padding: 5px; 
 margin: 0px; 
 border-width: 1px; 
 border-style: solid; 
 border-color: #000000; 
}
.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##

{BEGIN grid_block}

<table align='center' width='95%' border='0' cellpadding=3 cellspacing=2>
<tr><td>
<table align='center' width='100%' border='0' cellpadding=3 cellspacing=0>
{BEGIN grid_row}
{BEGIN grid_record}
##foreach Fields as @f filter @f.bPrinterPage order @f.nPrinterPageOrder##
{BEGIN ##@f.strName g##_fieldcolumn}
<tr>
##if @f.strName=="Category"##
<td class=blackshade><font size=2><b>
##else##
<td>
##endif##
##if @f.strName=="Title"##<b>##endif##
##if @f.strName=="Subcategory"##<b><u>##endif##
##if @f.strName=="Posted"##<i>##endif##
{$##@f.strName g##_value}
##if @f.strName=="Posted"##</i>##endif##
##if @f.strName=="Title"##</b>##endif##
##if @f.strName=="Subcategory"##</u></b>##endif##
##if @f.strName=="Category"##</b></font>##endif##
</td>
</tr>
{END ##@f.strName g##_fieldcolumn}
##endfor##
{BEGIN endrecord_block}
<td class="gridspacing">&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}
</td></tr></table>
{$footer}
{END page}
{END body}
</body>
</html>