<!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="center"
			data-body-width="full"
		>
							{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-align-center			col-md-12
	
">
		 
		<img src="{$file_url images/logo.png}" data-itemtype="image" data-itemid="image" {$item_image} data-pageid="{$pageid}" data-page="details_rprint" />
	 
		<span data-itemtype="text" data-itemid="text7" {$item_text7} data-pageid="{$pageid}" data-small > 
	 </span>
		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c6" data-pageid="{$pageid}"	{$cell_top_c6}
	class=" r-ori-vert			col-md-12
	
">
		 
		{BEGIN mastertable_block}
<div data-itemtype="master_info" data-itemid="master_info" {$item_master_info} data-pageid="{$pageid}">
	{$showmasterfile}
</div>
{END mastertable_block}		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c4" data-pageid="{$pageid}"	{$cell_top_c4}
	class="r-align-center r-ori-vert			col-md-12
	
">
		 
		<span data-itemtype="text" data-itemid="text1" {$item_text1} data-pageid="{$pageid}" data-small > 
	<h2>District Secretariat - Matara</h2></span>
		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c3" data-pageid="{$pageid}"	{$cell_top_c3}
	class=" r-ori-vert			col-md-6
	
">
		 
		<span data-itemtype="text" data-itemid="text" {$item_text} data-pageid="{$pageid}" data-small > 
	{$custom TELEPHONE___04122222331}</span>
		</div>			 
				<div 
	data-cellId="top_c5" data-pageid="{$pageid}"	{$cell_top_c5}
	class="r-align-right r-ori-vert			col-md-6
	
">
		 
		<span data-itemtype="text" data-itemid="text3" {$item_text3} data-pageid="{$pageid}" data-small > 
	{$custom FAX___0412222718}</span>
		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c" data-pageid="{$pageid}"	{$cell_top_c}
	class="r-align-center r-ori-vert			col-md-12
	
">
		 
		<span data-itemtype="text" data-itemid="text6" {$item_text6} data-pageid="{$pageid}" data-small > 
	__________________________________________________________________________________________________________________________________________________</span>
		</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-align-left r-ori-vert			col-md-12
	
">
		{BEGIN firstAboveGridCell}
		 
		<span data-itemtype="text" data-itemid="text2" {$item_text2} data-pageid="{$pageid}" data-small > 
	{$custom XCHZDF}</span>
			{END firstAboveGridCell}	
	</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c3" data-pageid="{$pageid}"	{$cell_above-grid_c3}
	class=" r-ori-vert			col-md-12
	
">
		 
		<span data-itemtype="snippet" data-itemid="snippet" {$item_snippet} data-pageid="{$pageid}" >
{$event allocations_snippet}
</span>		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c2" data-pageid="{$pageid}"	{$cell_above-grid_c2}
	class="r-align-center r-ori-vert			col-md-12
	
">
		 
		<span data-itemtype="text" data-itemid="text4" {$item_text4} data-pageid="{$pageid}" data-small > 
	{$custom _H3_DFGDFG_STRONG__U__SPAN_CLASS__QL_CURSOR_____SPAN___U___STRONG___H3_}</span>
		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c" data-pageid="{$pageid}" data-page="details_rprint"	{$cell_above-grid_c}
	class=" r-ori-vert			col-md-12
	
">
		 
		<span data-itemtype="text" data-itemid="text5" {$item_text5} data-pageid="{$pageid}" data-small > 
	{$custom _H5_CLASS__QL_ALIGN_JUSTIFY__DSGDSGF_STRONG__SPAN_CLASS__QL_CURSOR_____SPAN___STRONG___H5_}</span>
		</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.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="6">
				{$label Details 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 action_newgroup}							
		<tr class="group-spliter-2"  >
			<td class="header_2" colspan="6">
				{$label Details action }:&nbsp;
				{$xaction_grval}
								<span data-itemtype="grid_field" data-field="action" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$action_grval}
</span>			</td>
		</tr>
		
				<tr class="fieldnamesrow group-headers">
																								<td class="blackshade {$fieldclass_id}">{$label Details id }</td>
														<td class="blackshade {$fieldclass_expenditure_code}">{$label Details expenditure_code }</td>
														<td class="blackshade {$fieldclass_amount}">{$label Details amount }</td>
														<td class="blackshade {$fieldclass_date}">{$label Details date }</td>
														<td class="blackshade {$fieldclass_comment}">{$label Details comment }</td>
														<td class="blackshade {$fieldclass_description}">{$label Details description }</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_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$id_value}
</span>			</td>
														<td class="data {$fieldclass_expenditure_code}">
			{$xexpenditure_code_value}
						<span data-itemtype="grid_field" data-field="expenditure_code" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$expenditure_code_value}
</span>			</td>
														<td class="data {$fieldclass_amount}">
			{$xamount_value}
						<span data-itemtype="grid_field" data-field="amount" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$amount_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_comment}">
			{$xcomment_value}
						<span data-itemtype="grid_field" data-field="comment" data-itemid="grid_field8" data-pageid={$pageid} data-record-id="{$recId}">
{$comment_value}
</span>			</td>
														<td class="data {$fieldclass_description}">
			{$xdescription_value}
						<span data-itemtype="grid_field" data-field="description" data-itemid="grid_field9" data-pageid={$pageid} data-record-id="{$recId}">
{$description_value}
</span>			</td>
									</tr>
		{END row_data}
	
	<!---  group summary-->
					{BEGIN action_endgroup}

		<tr >
					<td class="group_2" colspan="6">
				{mlang_message SUMMARY_FOR} {$label Details action } {$action_grval} - <span class="summary-2" data-type="summary">
					{$groupaction_total_cnt}
				</span> {mlang_message RECORDS_TOTAL}			</td>			
				</tr>
		
		
		
		
			

		{END action_endgroup}
							{BEGIN department_endgroup}

		<tr >
					<td class="group_1" colspan="6">
				{mlang_message SUMMARY_FOR} {$label Details department } {$department_grval} - <span class="summary-1" data-type="summary">
					{$groupdepartment_total_cnt}
				</span> {mlang_message RECORDS_TOTAL}			</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>
