##include templates\rheader.htm##
<TABLE class=report WIDTH="auto" CELLPADDING=1 CELLSPACING=0 BORDER=0 align=center style="border: solid; border-width: 1px; border-color: black;">
<tr>
##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
<td class=blackshade>##@f.strLabel h##</td>
##endfor##
</tr>
{BEGIN grid_row}
##if @TABLE.bReportShowDetails##
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=data>{$##@f.strName g##_value}</td>
	##endfor##
</tr>
{END row_data}
##endif##
{END grid_row}
##if @TABLE.bReportPageSummary || @TABLE.bReportGlobalSummary##
<tr>
##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
<td class=blackshade>##@f.strLabel h##</td>
##endfor##
</tr>
##endif##
##if @TABLE.bReportPageSummary##
<!--------------------------------------page summary-------------------------------------------->
<tr>
	<td class=pagesummary colspan=##Fields[bReportPage].len##>##message PAGE_SUMMARY## 
	 {$page_total_cnt} - ##message RECORDS_TOTAL##</td>
</tr>
##if Fields[bReportPage && bSum].len##
<!--  Sum -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=pagesummary>
		##if @first##
	##message SUM##&nbsp;
		##endif##
		##if @f.bSum##
	{$page_total##@f.strName g##_sum}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##if Fields[bReportPage && bAvg].len##
<!--  Avg -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=pagesummary>
		##if @first##
	##message AVERAGE##&nbsp;
		##endif##
		##if @f.bAvg##
	{$page_total##@f.strName g##_avg}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##if Fields[bReportPage && bMin].len##
<!--  Min -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=pagesummary>
		##if @first##
	##message MIN##&nbsp;
		##endif##
		##if @f.bMin##
	{$page_total##@f.strName g##_min}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##if Fields[bReportPage && bMax].len##
<!--  Max -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=pagesummary>
		##if @first##
	##message MAX##&nbsp;
		##endif##
		##if @f.bMax##
	{$page_total##@f.strName g##_max}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##endif##
##if @TABLE.bReportGlobalSummary##
<!--------------------------------------global summary-------------------------------------------->
<tr>
	<td class=globalsummary colspan=##Fields[bReportPage].len##>##message GLOBAL_SUMMARY## 
	 {$global_total_cnt} - ##message RECORDS_TOTAL##</td>
</tr>
##if Fields[bReportPage && bSum].len##
<!--  Sum -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=globalsummary>
		##if @first##
	##message SUM##&nbsp;
		##endif##
		##if @f.bSum##
	{$global_total##@f.strName g##_sum}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##if Fields[bReportPage && bAvg].len##
<!--  Avg -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=globalsummary>
		##if @first##
	##message AVERAGE##&nbsp;
		##endif##
		##if @f.bAvg##
	{$global_total##@f.strName g##_avg}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##if Fields[bReportPage && bMin].len##
<!--  Min -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=globalsummary>
		##if @first##
	##message MIN##&nbsp;
		##endif##
		##if @f.bMin##
	{$global_total##@f.strName g##_min}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##if Fields[bReportPage && bMax].len##
<!--  Max -->
<tr>
	##foreach Fields as @f filter @f.bReportPage order nReportPageOrder##
	<td class=globalsummary>
		##if @first##
	##message MAX##&nbsp;
		##endif##
		##if @f.bMax##
	{$global_total##@f.strName g##_max}
		##else##
	&nbsp;
		##endif##
	</td>
	##endfor##
</tr>	
##endif##
##endif##
</table>
##include templates\rfooter.htm##