<!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-report" {$bodyattrs}>
	{BEGIN body}
		<style>
		{$containerCss}
		</style>
		<div class="r-vbar-page">
			<div data-width="" data-fixed class="r-left clearfix {$leftbar_class}" >
								<div data-location="left" id="form_left_{$pageid}" data-makeup="leftbar" {$form_left} data-pageid="{$pageid}">
{BEGIN left_block}
 
     
         

			<div data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell class="clearfix " data-itemid="logo1" {$item_logo1}>
				{BEGIN logo_block}
	<A data-itemtype="logo" data-itemid="logo1" {$item_logo1} data-pageid="{$pageid}" class="navbar-brand" href="{$home_link}" data-pageid="{$pageid}" {$logo_hiddenattr}>
		{$logo}
	</A>
{END logo_block}
				<button data-pageid="1" type="button" class="navbar-toggle collapsed" data-runner-toggle="collapse" data-target="[data-mobile-controlled]">	
					<span class="sr-only">Toggle navigation</span>	
					<span class="icon-bar"></span>					
				</button>				
			</div>
		
 

			<div class="clearfix " data-cellId="left_c0" data-pageid="{$pageid}" data-logo-cell data-itemid="expand_button" {$item_expand_button} data-topcell-item-type="expand_button" >
				<span data-itemtype="expand_button" data-itemid="expand_button" {$item_expand_button} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="Expand" class="btn btn-link   
	" href="#" >
					<span class="glyphicon glyphicon-triangle-right"></span>
										</a>
</span>
			</div>
		
     
     
         

			<div data-cellId="left_c1" data-pageid="{$pageid}" class="clearfix  r-ori-vert " data-itemtype="menu" data-itemid="menu" {$item_menu} data-pageid="{$pageid}">
				{$menu main}			</div>
		
 

			<div class="clearfix  r-ori-vert" data-cellId="left_c1" data-pageid="{$pageid}" data-itemid="search_panel" {$item_search_panel} data-topcell-item-type="search_panel" >
				<!-- Begin Search panel content -->
<div class="searchOptions panel panel-primary searchPanelContainer " {$srchOpt_attrs} data-itemtype="search_panel" data-itemid="search_panel" {$item_search_panel} data-pageid="{$pageid}" >

	<div class="panel-heading">
		<div class="btn-group" id="addSearchFieldButton{$id}">
			<button id="showHideControlChooseMenu{$id}" type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
			{mlang_message SEARCH_IN}			<span class="caret"></span>
			</button>
		</div>


		<div class="btn-group searchpanel-options" id="searchPanelOptions{$id}">
			<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
				<span class="glyphicon glyphicon glyphicon-option-vertical"></span>
			</button>
			<ul class="dropdown-menu dropdown-left">
				<li id="showHideSearchType{$id}" {$showHideCtrlsOpt_attrs}><a>{mlang_message SEARCH_SHOW_OPTIONS_BUTTON}</a></li>
				<li role="separator" class="divider"></li>
				<li class="srchCritTop" style="display: none;"><a><input type="radio" name="srchType{$id}" id="radioAll" {$all_checkbox}><label for="radioAll"><span class="glyphicon">&nbsp;</span>{mlang_message SEARCH_ALL_CONDITIONS}</label></a></li>
				<li class="srchCritTop" style="display: none;"><a><input type="radio" name="srchType{$id}" id="radioAny" {$any_checkbox}><label for="radioAny"><span class="glyphicon">&nbsp;</span>{mlang_message SEARCH_ANY_CONDITIONS}</label></a></li>
				<li role="separator" class="divider"></li>
				<li><a class="close-button"><span class="glyphicon glyphicon-remove">&nbsp;</span>{mlang_message HIDE}</a></li>
			</ul>
		</div>


		</div>
	<div class="panel-body controlsBlock" {$bottomSearchButt_attrs} >


		
		{BEGIN searchCtrlBlock}
		<div class="srchPanelRow form-group" {$filterRow_attrs}>
			<label>{$fLabel}</label>	{$delCtrlButt}
				<span class="rnr-searchtype">{$searchtype}</span>
				<span class="rnr-searchcontrol">{$searchcontrol}</span>
				<span class="rnr-searchcontrol">{$searchcontrol1}</span>
		</div>
		{END searchCtrlBlock}
																		{BEGIN searchCtrlBlock_accounting_code}


		<div class="form-group srchPanelRow {$filterRow_class_accounting_code}" {$filterRow_attrs_accounting_code}>
			<label>{$label allocation_detail_Report accounting_code }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_accounting_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_accounting_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_accounting_code}</span>
						</div>
		{END searchCtrlBlock_accounting_code}
																{BEGIN searchCtrlBlock_sub_office_code}


		<div class="form-group srchPanelRow {$filterRow_class_sub_office_code}" {$filterRow_attrs_sub_office_code}>
			<label>{$label allocation_detail_Report sub_office_code }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_sub_office_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_sub_office_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_sub_office_code}</span>
						</div>
		{END searchCtrlBlock_sub_office_code}
																{BEGIN searchCtrlBlock_sub_office}


		<div class="form-group srchPanelRow {$filterRow_class_sub_office}" {$filterRow_attrs_sub_office}>
			<label>{$label allocation_detail_Report sub_office }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_sub_office}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_sub_office}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_sub_office}</span>
						</div>
		{END searchCtrlBlock_sub_office}
																{BEGIN searchCtrlBlock_expenditure_code}


		<div class="form-group srchPanelRow {$filterRow_class_expenditure_code}" {$filterRow_attrs_expenditure_code}>
			<label>{$label allocation_detail_Report expenditure_code }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_expenditure_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_expenditure_code}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_expenditure_code}</span>
						</div>
		{END searchCtrlBlock_expenditure_code}
																{BEGIN searchCtrlBlock_description}


		<div class="form-group srchPanelRow {$filterRow_class_description}" {$filterRow_attrs_description}>
			<label>{$label allocation_detail_Report description }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_description}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_description}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_description}</span>
						</div>
		{END searchCtrlBlock_description}
																{BEGIN searchCtrlBlock_department}


		<div class="form-group srchPanelRow {$filterRow_class_department}" {$filterRow_attrs_department}>
			<label>{$label allocation_detail_Report department }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_department}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_department}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_department}</span>
						</div>
		{END searchCtrlBlock_department}
																{BEGIN searchCtrlBlock_date}


		<div class="form-group srchPanelRow {$filterRow_class_date}" {$filterRow_attrs_date}>
			<label>{$label allocation_detail_Report date }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_date}</span>
						</div>
		{END searchCtrlBlock_date}
																{BEGIN searchCtrlBlock_comment}


		<div class="form-group srchPanelRow {$filterRow_class_comment}" {$filterRow_attrs_comment}>
			<label>{$label allocation_detail_Report comment }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_comment}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_comment}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_comment}</span>
						</div>
		{END searchCtrlBlock_comment}
																{BEGIN searchCtrlBlock_amount}


		<div class="form-group srchPanelRow {$filterRow_class_amount}" {$filterRow_attrs_amount}>
			<label>{$label allocation_detail_Report amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_amount}</span>
						</div>
		{END searchCtrlBlock_amount}
																{BEGIN searchCtrlBlock_action}


		<div class="form-group srchPanelRow {$filterRow_class_action}" {$filterRow_attrs_action}>
			<label>{$label allocation_detail_Report action }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_action}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_action}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_action}</span>
						</div>
		{END searchCtrlBlock_action}
		

	</div>

	<div class="panel-footer bottomSearchButt" {$bottomSearchButt_attrs}>
		<button class="btn btn-primary" id="searchButton{$id}" {$searchbutton_attrs}>{mlang_message SEARCH}</button>
		<button class="btn btn-default" {$showAllCont_attrs} {$showallbutton_attrs}>{mlang_message SHOW_ALL}</button>
	</div>
</div>
<!-- End Search panel content -->
			</div>
		
 

			<div class="clearfix  r-ori-vert" data-cellId="left_c1" data-pageid="{$pageid}" data-itemid="filter_panel" {$item_filter_panel} data-topcell-item-type="filter_panel" >
				<div data-itemtype="filter_panel" data-itemid="filter_panel" {$item_filter_panel} data-pageid="{$pageid}">
<!--
	<button type="button" class="btn btn-info bs-togglebutton bottom-margin collapsed" data-runner-toggle="collapse" data-target=".filterPanelContainer">	
		<span class="glyphicon glyphicon-filter"><span> Filter	
	</button>
-->	
	<div class="filterPanelContainer {$filterPanelStateClass}">



			
	 	

		
		 
		 

		 	

		{BEGIN filter_control_action}
		<div class="panel panel-info filter-field filter-action-container">
			<div class="panel-heading filter-expander">
																	<span class="filter-indicator glyphicon glyphicon-triangle-bottom"></span>	

			
				<label>{$label allocation_detail_Report action }</label>

				{BEGIN clearLink_action}
				<a href="#" class="filter-clear filter-clear-action">{mlang_message FILTER_CLEAR}</a>
				{END clearLink_action}				
			</div>

			<ul class="list-group">
				{BEGIN filterCtrlBlock_action}
				<li class="list-group-item filter-values filter-values-action {$collapsedClass_action} {$visibilityClass_action}">
					{$action_filter}
								
			
			
				</li>				
				{END filterCtrlBlock_action}

							{BEGIN filter_button_showmore_action}
				<li class="list-group-item filter-show-more {$collapsedClass_action} {$showMoreBtnClass_action}">
					<a class="filter-show-more-link filterShowMore_action" href="#">{$show_n_more_action}</a>
				</li>
				{END filter_button_showmore_action}			
			


			

				
	
			</ul>			
		</div>
		{END filter_control_action}
	 
	</div>
</div>			</div>
		
    {END left_block}
</div>				</div>	
			<div class="r-content-col" data-resize-left="leftbar">
				<div  class="r-topheader" data-resize-name="topbar">
									{BEGIN supertop_block}
<nav class="navbar navbar-default" 
	data-location="supertop" id="form_supertop_{$pageid}" data-makeup="leftbar" {$form_supertop} data-pageid="{$pageid}" >
			 
							 
				<span class="navbar-form  navbar-header" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="collapse_button" {$item_collapse_button} data-topcell-item-type="collapse_button" >
				<span data-itemtype="collapse_button" data-itemid="collapse_button" {$item_collapse_button} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="Collapse" class="btn-link   
	 glyphicon glyphicon-triangle-left" href="#" >		
				
								</a>
</span>
			</span>
		 
				<span class="navbar-form  navbar-collapse" data-cellId="supertop_c1" data-pageid="{$pageid}" data-itemid="breadcrumb" {$item_breadcrumb} data-topcell-item-type="breadcrumb" >
				{BEGIN breadcrumb}
<ol class="breadcrumb" data-itemtype="breadcrumb" data-itemid="breadcrumb" {$item_breadcrumb} data-pageid="{$pageid}">
<li ><a href="{$crumb_home_link}"><span class="glyphicon glyphicon-home"></span></a>{$crumb_dropdown}</li>
{BEGIN crumb}
  <li class="{$crumb_item_class}">
{BEGIN crumb_title_link}
	<a {$crumb_attrs}>{$crumb_title}</a>
{END crumb_title_link}
{BEGIN crumb_title_span}
	<span {$crumb_attrs}>{$crumb_title}</span>
{END crumb_title_span}	
	{$crumb_dropdown}
  </li>
{END crumb}
</ol>
{END breadcrumb}			</span>
							 
							 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="simple_search" {$item_simple_search} data-topcell-item-type="simple_search" >
				<span data-itemtype="simple_search" data-itemid="simple_search" {$item_simple_search} data-pageid="{$pageid}" class="form-group">

<div  class="input-group">
{BEGIN searchform_text}
	<input type="search" class="form-control" {$searchfor_attrs} size="25">
{END searchform_text}
	<span class="input-group-btn">
	{BEGIN searchform_showall}
		<button class="btn btn-default" {$showAllCont_attrs} {$showallbutton_attrs} title="{mlang_message SHOW_ALL}">
			<span class="glyphicon glyphicon-remove"></span>
		</button>
	{END searchform_showall}
	{BEGIN searchform_search}
	<button {$searchbutton_attrs} class="btn btn-primary" >
		<span class="glyphicon glyphicon-search"></span>
	</button>
	{END searchform_search}
	</span>
</div>
		
</span>			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="list_options" {$item_list_options} data-topcell-item-type="list_options" >
				<span data-itemtype="list_options" data-itemid="list_options" {$item_list_options} data-pageid="{$pageid}" data-small data-button-item>
	<span class="dropdown ">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
							<span class="glyphicon glyphicon-cog"></span>
									<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
								<li data-itemtype="advsearch_link" data-itemid="advsearch_link" {$item_advsearch_link} data-pageid="{$pageid}" data-small >
				<a   href="allocation_detail_report_search.php{$stateLink_full}" {$advsearchlink_attrs}  title="" >
				
		{mlang_message ADVANCED_SEARCH}		
		</a>
	</li>
							{BEGIN searchPanelTopButtons}
	<li data-itemtype="show_search_panel" data-itemid="show_search_panel" {$item_show_search_panel} data-pageid="{$pageid}" data-small >
				<a  id="showOptPanel{$id}"  title="" >
				
		{mlang_message SHOW_SEARCH_PANEL}		
		</a>
	</li>
{END searchPanelTopButtons}
							{BEGIN searchPanelTopButtons}
	<li data-itemtype="hide_search_panel" data-itemid="hide_search_panel" {$item_hide_search_panel} data-pageid="{$pageid}" data-small >
				<a  id="hideOptPanel{$id}"  title="" >
				
		{mlang_message HIDE_SEARCH_PANEL}		
		</a>
	</li>
{END searchPanelTopButtons}
							<li role="separator" class="divider"></li>							{BEGIN export_link}
	<li data-itemtype="export_report_excel" data-itemid="export_report_excel" {$item_export_report_excel} data-pageid="{$pageid}" data-small >
				<a  href="allocation_detail_report_print.php?all=1&amp;format=excel{$stateLink}" {$excellink_attrs}  title="" >
				
		{mlang_message EXPORT_TO_EXCEL}		
		</a>
	</li>
{END export_link}
							{BEGIN export_link}
	<li data-itemtype="export_report_word" data-itemid="export_report_word" {$item_export_report_word} data-pageid="{$pageid}" data-small >
				<a  href="allocation_detail_report_print.php?all=1&amp;format=word{$stateLink}" {$wordlink_attrs}  title="" >
				
		{mlang_message EXPORT_TO_WORD}		
		</a>
	</li>
{END export_link}
							<li role="separator" class="divider"></li>								{BEGIN EnglishLANGLINK}
	<li><a href="#" data-lang="English" class="rnr-langlink">
		{BEGIN EnglishLANGLINK_ACTIVE}<span class="glyphicon glyphicon-ok">&nbsp;</span>{END EnglishLANGLINK_ACTIVE}
		English</a></li>
	{END EnglishLANGLINK}
	{BEGIN sinhalaLANGLINK}
	<li><a href="#" data-lang="sinhala" class="rnr-langlink">
		{BEGIN sinhalaLANGLINK_ACTIVE}<span class="glyphicon glyphicon-ok">&nbsp;</span>{END sinhalaLANGLINK_ACTIVE}
		සිංහල</a></li>
	{END sinhalaLANGLINK}
					</ul>
	</span>
</span>
			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="loginform_login" {$item_loginform_login} data-topcell-item-type="loginform_login" >
				{BEGIN guestloginbutton}
<span data-itemtype="loginform_login" data-itemid="loginform_login" {$item_loginform_login} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" href="#" {$guestloginlink_attrs} >
							{mlang_message LOGIN}			</a>
</span>
{END guestloginbutton}
			</span>
		 
				<span class="navbar-form r-align-right navbar-collapse" data-cellId="supertop_c2" data-pageid="{$pageid}" data-itemid="username_button" {$item_username_button} data-topcell-item-type="username_button" >
				{BEGIN loggedas_message}
<span data-itemtype="username_button" data-itemid="username_button" {$item_username_button} data-pageid="{$pageid}" data-small data-button-item>
	<span class="dropdown ">
		<button type="button" title="" class="btn btn-default   dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">		
							<span class="glyphicon glyphicon-user"></span>
						{$username}			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
							{BEGIN logoutbutton}
	<li data-itemtype="logout_link" data-itemid="logout_link" {$item_logout_link} data-pageid="{$pageid}" data-small >
				<a  href="#" {$logoutlink_attrs}  title="" >
				
		{mlang_message LOG_OUT}		
		</a>
	</li>
{END logoutbutton}
							{BEGIN changepwd_link}
	<li data-itemtype="changepassword_link" data-itemid="changepassword_link" {$item_changepassword_link} data-pageid="{$pageid}" data-small >
				<a  href="#" {$changepwdlink_attrs}  title="" >
				
		{mlang_message CHANGE_PASSWORD}		
		</a>
	</li>
{END changepwd_link}
					</ul>
	</span>
</span>
{END loggedas_message}
			</span>
								</nav>
{END supertop_block}
						{$locking}
				</div>	
				<div class="r-body" data-resize-top="topbar" data-body-width="standard">
					{$header}
					<div class="r-top">
									{BEGIN top_block}
<div class="r-form" data-location="top" id="form_top_{$pageid}" data-makeup="leftbar" {$form_top} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="top_c3" data-pageid="{$pageid}"	{$cell_top_c3}
	class=" r-ori-vert			col-md-12
	
">
			</div>					</div>
	</div>		
{END top_block}
						</div>
					<div class="r-above">
										{BEGIN above-grid_block}
<div class="r-form" data-location="above-grid" id="form_above-grid_{$pageid}" data-makeup="leftbar" {$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-6
	
">
		{BEGIN firstAboveGridCell}
				{END firstAboveGridCell}	
	</div>			 
				<div 
	data-cellId="above-grid_c2" data-pageid="{$pageid}"	{$cell_above-grid_c2}
	class="r-align-right			col-md-6
	
">
		 
		<span data-itemtype="details_found" data-itemid="details_found" {$item_details_found} data-pageid="{$pageid}" data-small >
{$details_found_labeldetails_found}
</span>	 
		<span data-itemtype="page_size" data-itemid="page_size" {$item_page_size} data-pageid="{$pageid}" >
		{$grpsPerPage}
</span>	 
		{BEGIN print_friendly}
<span id="printpanelblock{$id}"  data-pageid="{$pageid}" {$printpanel_hiddenattr} data-itemtype="print_panel" data-itemid="print_panel" {$item_print_panel} data-pageid="{$pageid}">
	<button title="{mlang_message WR_PRINT_FRIENDLY}" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
					<span class="glyphicon glyphicon-print"></span>
				<span class="caret"></span>
	</button>
	<ul class="dropdown-menu pull-right">
										 
				 
					<li class="container-fluid 
										">
									<div id="print_friendly_scope{$id}">
	<div class="row">
		<div class="col-md-4">
			{mlang_message PPANEL_SCOPE}		</div>

		{BEGIN print_friendly_all}
		<div class="col-md-8">
			<label for="printAll{$id}">
				<input type="radio" id="printAll{$id}" data-href="allocation_detail_report_print.php?all=1&amp;{$crosstable_attrs}" name="printScope">
									{mlang_message PPANEL_WHOLE_REPORT}							</label>
		</div>
		{END print_friendly_all}
	</div>
	<div class="row">
		<div class="col-md-4">&nbsp;</div>
		<div class="col-md-8">
			<label for="printPage{$id}">
				<input name="printScope" id="printPage{$id}" type="radio" checked data-href="allocation_detail_report_print.php?{$crosstable_attrs}">
				{mlang_message PPANEL_THIS_PAGE}			</label>
		</div>
	</div>
	
	</div>				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
										">
									<div>
	<label for="printPerPage{$id}">
					{mlang_message GROUPS_PP}							
	</label>
	<input type="number" id="printPerPage{$id}" value="{$print_recspp}" class="rnr-printrecspp">		
</div>
				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
					 text-center 					">
									<span data-itemtype="print_button" data-itemid="print_button" {$item_print_button} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" id="print_friendly_button{$id}" >
							{mlang_message PPANEL_PRINT}			</a>
</span>
				 
					</li>
															</ul>
</span>
{END print_friendly}
		</div>					</div>
	</div>		
{END above-grid_block}
						</div>
					<div class="r-grid">
										{BEGIN grid_block}
{BEGIN grid_tabs}
  <ul class="nav nav-tabs bsgrid_tabs">
	{$grid_tabs_content}
  </ul>
{END grid_tabs}
{BEGIN message_block}
<div data-grid-message data-pageid="{$pageid}" class="alert {$message_class}" role="alert" {$grid_message_attrs}>{$message}</div>
{END message_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.blackshade {
		font-size: 120%;
	}
	.summaryrow > * {
		border:solid #808080 1px; 
		border-left: none; 
		border-right: none;
	}
		td.blackshade {
		border-bottom:solid #808080 1px; 
	}
	.grouptotalsrow + :not(.grouptotalsrow) > * {
		border-top:solid #808080 1px; 
	}
	</style>

<div class="rnr-cw-grid rnr-s-2 asbuttons {$pageStyleName}" data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$form_grid} data-pageid="{$pageid}" >
					
 <!-- 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="8">
				{$label allocation_detail_Report department }:&nbsp;
										<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 expenditure_code_newgroup}

		<tr class="group-spliter-2" >
							<td class="group_1">&nbsp;</td>
				
			<td class="header_2" colspan="7">
				{$label allocation_detail_Report expenditure_code }:&nbsp;
										<span data-itemtype="grid_field" data-field="expenditure_code" data-itemid="grid_field3" data-pageid={$pageid} data-record-id="{$recId}">
{$expenditure_code_grval}
</span>			</td>
		</tr>

					{END expenditure_code_newgroup}
			{BEGIN action_newgroup}

		<tr class="group-spliter-3" >
							<td class="group_1">&nbsp;</td>
							<td class="group_2">&nbsp;</td>
				
			<td class="header_3" colspan="6">
				{$label allocation_detail_Report action }:&nbsp;
										<span data-itemtype="grid_field" data-field="action" data-itemid="grid_field4" data-pageid={$pageid} data-record-id="{$recId}">
{$action_grval}
</span>			</td>
		</tr>

					<tr class="group-headers">
							<td class="group_1">&nbsp;</td>
							<td class="group_2">&nbsp;</td>
							<td class="group_3">&nbsp;</td>
																																											<td class="blackshade {$fieldclass_date}">{$label allocation_detail_Report date }</td>
																	<td class="blackshade {$fieldclass_accounting_code}">{$label allocation_detail_Report accounting_code }</td>
																	<td class="blackshade {$fieldclass_amount}">{$label allocation_detail_Report amount }</td>
																	<td class="blackshade {$fieldclass_comment}">{$label allocation_detail_Report comment }</td>
																	<td class="blackshade {$fieldclass_description}">{$label allocation_detail_Report description }</td>
											</tr>
					{END action_newgroup}
	
			<!--  data-->
		{BEGIN row_data}
		<tr>
							<td class="group_1">
									&nbsp;
								</td>
							<td class="group_2">
									&nbsp;
								</td>
							<td class="group_3">
									&nbsp;
								</td>
				
																																							<td class="data {$fieldclass_date}">
								<span data-itemtype="grid_field" data-field="date" data-itemid="grid_field5" data-pageid={$pageid} data-record-id="{$recId}">
{$date_value}
</span>			</td>
																	<td class="data {$fieldclass_accounting_code}">
								<span data-itemtype="grid_field" data-field="accounting_code" data-itemid="grid_field6" data-pageid={$pageid} data-record-id="{$recId}">
{$accounting_code_value}
</span>			</td>
																	<td class="data {$fieldclass_amount}">
								<span data-itemtype="grid_field" data-field="amount" data-itemid="grid_field7" data-pageid={$pageid} data-record-id="{$recId}">
{$amount_value}
</span>			</td>
																	<td class="data {$fieldclass_comment}">
								<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}">
								<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 class="summaryrow" >
										<td class="group_1" style="border-top: none;"></td>
							<td class="group_2" style="border-top: none;"></td>
							
						<td  class="group_3" colspan=6 >
				{mlang_message SUMMARY_FOR}&nbsp;{$label allocation_detail_Report action }&nbsp;{$action_grval}
					- <span class="summary-3" data-type="summary">{$groupaction_total_cnt}
					</span> {mlang_message RECORDS_TOTAL}			</td>
					</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_3">{mlang_message SUM}</td>
								
						<td class="group_3">&nbsp;</td>
								
						<td class="group_3">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_3">
				<span class="summary-3" data-type="sum" data-field="amount">
					{$groupaction_totalamount_sum}
				</span>
			</td>
								
						<td class="group_3">&nbsp;</td>
								
						<td class="group_3">&nbsp;</td>
							</tr>
	
	
	
	
		{END action_endgroup}
							{BEGIN expenditure_code_endgroup}

		<tr class="summaryrow" >
										<td class="group_1" style="border-top: none;"></td>
							
						<td  class="group_2" colspan=7 >
				{mlang_message SUMMARY_FOR}&nbsp;{$label allocation_detail_Report expenditure_code }&nbsp;{$expenditure_code_grval}
					- <span class="summary-2" data-type="summary">{$groupexpenditure_code_total_cnt}
					</span> {mlang_message RECORDS_TOTAL}			</td>
					</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">&nbsp;</td>
								
						<td class="group_2">{mlang_message SUM}</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_2">
				<span class="summary-2" data-type="sum" data-field="amount">
					{$groupexpenditure_code_totalamount_sum}
				</span>
			</td>
								
						<td class="group_2">&nbsp;</td>
								
						<td class="group_2">&nbsp;</td>
							</tr>
	
	
	
	
		{END expenditure_code_endgroup}
							{BEGIN department_endgroup}

		<tr class="summaryrow" >
			
						<td  class="group_1" colspan=8 >
				{mlang_message SUMMARY_FOR}&nbsp;{$label allocation_detail_Report department }&nbsp;{$department_grval}
					- <span class="summary-1" data-type="summary">{$groupdepartment_total_cnt}
					</span> {mlang_message RECORDS_TOTAL}			</td>
					</tr>

		<!--  Sum -->
		<tr class="grouptotalsrow" >
					
						<td class="group_1">{mlang_message SUM}</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="{$fieldclass_amount} group_1">
				<span class="summary-1" data-type="sum" data-field="amount">
					{$groupdepartment_totalamount_sum}
				</span>
			</td>
								
						<td class="group_1">&nbsp;</td>
								
						<td class="group_1">&nbsp;</td>
							</tr>
	
	
	
	
		{END department_endgroup}
			
{END grid_row}


	


    


	</tbody>
</table>		</div>
	{END grid_block}						</div>
					<div class="r-below">
										{BEGIN below-grid_block}
<div class="r-form" data-location="below-grid" id="form_below-grid_{$pageid}" data-makeup="leftbar" {$form_below-grid} data-pageid="{$pageid}" >		
	 
		<div class="row">
			 
				<div 
	data-cellId="below-grid_c1" data-pageid="{$pageid}"	{$cell_below-grid_c1}
	class="r-align-center r-ori-vert			col-md-12
	
">
		 
		{BEGIN pagination_block}
<span data-itemtype="pagination" data-itemid="pagination" {$item_pagination} data-pageid="{$pageid}" >
{$pagination}
</span>
{END pagination_block}
		</div>					</div>
	</div>		
{END below-grid_block}
						</div>
					{$footer}
				</div>	
			</div>	
		</div>
	{END body}
	</body>
</html>
