<!doctype html>
<html  {$html_attrs}>
	<head>
				<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>{$pagetitle}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<base href="{$projectPath}">
		<link REL="stylesheet" href="styles/default.css?{$wizardBuildKey}" type="text/css">
	{BEGIN rtlCSS}
	<link REL="stylesheet" href="styles/defaultRTL.css?{$wizardBuildKey}" type="text/css">
	{END rtlCSS}
	{BEGIN styleCSSFiles}
	<link REL="stylesheet" href="{$stylepath}" type="text/css">
	{END styleCSSFiles}
	</head>

	<body class="{$stylename} function-rprint" {$bodyattrs}>
	{BEGIN body}
		{$header}
		<style>
			{$containerCss}
		</style>
		{$locking}
		<div class="r-small-page" 
			data-body-align="left"
			data-body-width="standard"
		>
							{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="small" {$form_top} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c2" data-pageid="{$pageid}"	{$cell_top_c2}
	class=" r-ori-vert			col-md-12
	
">
		 
		<h2 data-itemtype="print_header" data-itemid="print_header" {$item_print_header} data-pageid="{$pageid}" >{$pagetitlelabel Report1 rprint}</h2>
	 
		{BEGIN printtabheader}
<span data-itemtype="print_subheader" data-itemid="print_subheader" {$item_print_subheader} data-pageid="{$pageid}" >
{$printtabheader_text}
</span>
{END printtabheader}
		</div>					</div>
	</div>		
{END top_block}
									{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="small" {$form_above-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c1" data-pageid="{$pageid}"	{$cell_above-grid_c1}
	class=" r-ori-vert			col-md-12
	
">
		{BEGIN firstAboveGridCell}
		 
		<span data-itemtype="print_pages" data-itemid="print_pages" {$item_print_pages} data-pageid="{$pageid}" data-small >
	{$print_pages_labelprint_pages}
</span>			{END firstAboveGridCell}	
	</div>					</div>
	</div>		
{END above-grid_block}
									{BEGIN grid_block}
<style>
	td.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary.pagesummary {
		background-color: #ffffbb;
	}
	td.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary.globalsummary {background-color: #ffe0b0;
	}
	.rnr-report {
		width: 100%;
	}
	td {
		padding: 2px; 4px;
	}
			td.group_1{
			background-color: #90EE90;
		}
		td.nbgroup_1{
			background-color: #90EE90;
		}
		td.header_1 {
			background-color: #7ACA7A; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_2{
			background-color: #ADD8E6;
		}
		td.nbgroup_2{
			background-color: #ADD8E6;
		}
		td.header_2 {
			background-color: #93B7C3; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_3{
			background-color: #FFB6C1;
		}
		td.nbgroup_3{
			background-color: #FFB6C1;
		}
		td.header_3 {
			background-color: #D89AA4; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
			td.group_4{
			background-color: #FFFACD;
		}
		td.nbgroup_4{
			background-color: #FFFACD;
		}
		td.header_4 {
			background-color: #D8D4AE; 
			font-size: 120%;
			padding: 2px 8px;
			font-weight: bold;
		}
		td.blackshade {
		font-size: 120%;
	}
	.summaryrow > * {
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
		.fieldnamesrow > * 
	{
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
	</style>
<div id="grid_block{$id}" class="rnr-report-gridblock">
						
 <!-- add to settings ? -->


<table class="table table-striped table-bordered rnr-b-grid rnr-gridtable" cellpadding="0" >
	<tbody>			
{BEGIN grid_row}
				<!--  group headers -->
	 
		{BEGIN department_newgroup}							
		<tr class="group-spliter-1"  >
			<td class="header_1" colspan="3">
				{$label Report1 department }:&nbsp;
				{$xdepartment_grval}
								<span data-itemtype="grid_field" data-field="department" data-itemid="grid_field2" data-pageid={$pageid} data-record-id="{$recId}">
{$department_grval}
</span>			</td>
		</tr>
		
				{END department_newgroup}
	 
		{BEGIN sub_office_newgroup}							
		<tr class="group-spliter-2"  >
			<td class="header_2" colspan="3">
				{$label Report1 sub_office }:&nbsp;
				{$xsub_office_grval}
								<span data-itemtype="grid_field" data-field="sub_office" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$sub_office_grval}
</span>			</td>
		</tr>
		
				{END sub_office_newgroup}
	 
		{BEGIN expenditure_code_newgroup}							
		<tr class="group-spliter-3"  >
			<td class="header_3" colspan="3">
				{$label Report1 expenditure_code }:&nbsp;
				{$xexpenditure_code_grval}
								<span data-itemtype="grid_field" data-field="expenditure_code" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$expenditure_code_grval}
</span>			</td>
		</tr>
		
				{END expenditure_code_newgroup}
	 
		{BEGIN action_newgroup}							
		<tr class="group-spliter-4"  >
			<td class="header_4" colspan="3">
				{$label Report1 action }:&nbsp;
				{$xaction_grval}
								<span data-itemtype="grid_field" data-field="action" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$action_grval}
</span>			</td>
		</tr>
		
				<tr class="fieldnamesrow group-headers">
																																						<td class="blackshade {$fieldclass_id}">{$label Report1 id }</td>
														<td class="blackshade {$fieldclass_date}">{$label Report1 date }</td>
														<td class="blackshade {$fieldclass_amount}">{$label Report1 amount }</td>
									</tr>
				{END action_newgroup}
		

			<!--  data-->
		{BEGIN row_data}
		<tr >
																																						<td class="data {$fieldclass_id}">
			{$xid_value}
						<span data-itemtype="grid_field" data-field="id" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$id_value}
</span>			</td>
														<td class="data {$fieldclass_date}">
			{$xdate_value}
						<span data-itemtype="grid_field" data-field="date" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$date_value}
</span>			</td>
														<td class="data {$fieldclass_amount}">
			{$xamount_value}
						<span data-itemtype="grid_field" data-field="amount" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$amount_value}
</span>			</td>
									</tr>
		{END row_data}
	
	<!---  group summary-->
					{BEGIN action_endgroup}

		<tr >
					<td class="group_4" colspan="3">
				{mlang_message SUMMARY_FOR} {$label Report1 action } {$action_grval} - <span class="summary-4" data-type="summary">
					{$groupaction_total_cnt}
				</span> {mlang_message RECORDS_TOTAL}			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_4">
									{mlang_message SUM}									&nbsp;
							
				</td>
												<td class="group_4">
									&nbsp;
							
				</td>
												<td class="group_4 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-4" data-type="sum" data-field="amount">					
						{$groupaction_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END action_endgroup}
							{BEGIN expenditure_code_endgroup}

		<tr >
					<td class="group_3" colspan="3">
				{mlang_message SUMMARY_FOR} {$label Report1 expenditure_code } {$expenditure_code_grval} - <span class="summary-3" data-type="summary">
					{$groupexpenditure_code_total_cnt}
				</span> {mlang_message RECORDS_TOTAL}			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_3">
									{mlang_message SUM}									&nbsp;
							
				</td>
												<td class="group_3">
									&nbsp;
							
				</td>
												<td class="group_3 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-3" data-type="sum" data-field="amount">					
						{$groupexpenditure_code_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END expenditure_code_endgroup}
							{BEGIN sub_office_endgroup}

		<tr >
					<td class="group_2" colspan="3">
				{mlang_message SUMMARY_FOR} {$label Report1 sub_office } {$sub_office_grval} - <span class="summary-2" data-type="summary">
					{$groupsub_office_total_cnt}
				</span> {mlang_message RECORDS_TOTAL}			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_2">
									{mlang_message SUM}									&nbsp;
							
				</td>
												<td class="group_2">
									&nbsp;
							
				</td>
												<td class="group_2 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-2" data-type="sum" data-field="amount">					
						{$groupsub_office_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END sub_office_endgroup}
							{BEGIN department_endgroup}

		<tr >
					<td class="group_1" colspan="3">
				{mlang_message SUMMARY_FOR} {$label Report1 department } {$department_grval} - <span class="summary-1" data-type="summary">
					{$groupdepartment_total_cnt}
				</span> {mlang_message RECORDS_TOTAL}			</td>			
				</tr>
		
					<!--  Sum -->
			<tr >
												<td class="group_1">
									{mlang_message SUM}									&nbsp;
							
				</td>
												<td class="group_1">
									&nbsp;
							
				</td>
												<td class="group_1 {$fieldclass_amount}">
									&nbsp;
									<span class="summary-1" data-type="sum" data-field="amount">					
						{$groupdepartment_totalamount_sum}
					</span>			
							
				</td>
						</tr>
		
		
		
			

		{END department_endgroup}
			
{END grid_row}





    
    


	</tbody>
</table>			</div>
{END grid_block}									{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="small" {$form_below-grid} data-pageid="{$pageid}" >		
	</div>		
{END below-grid_block}
			</div>
		{$footer}
	{END body}
	</body>
</html>
