<!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-list" {$bodyattrs}>
	{BEGIN body}
		<style>
		{$containerCss}
		</style>
		<div class="r-vbar-page">
			<div data-width="150px" 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">
			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>Show options</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>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>any condition</label></a></li>
				<li role="separator" class="divider"></li>
				<li><a class="close-button"><span class="glyphicon glyphicon-remove">&nbsp;</span>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_loan_id}


		<div class="form-group srchPanelRow {$filterRow_class_loan_id}" {$filterRow_attrs_loan_id}>
			<label>{$label H_Loans loan_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_loan_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_loan_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_loan_id}</span>
						</div>
		{END searchCtrlBlock_loan_id}
																{BEGIN searchCtrlBlock_customer_id}


		<div class="form-group srchPanelRow {$filterRow_class_customer_id}" {$filterRow_attrs_customer_id}>
			<label>{$label H_Loans customer_id }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_customer_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_customer_id}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_customer_id}</span>
						</div>
		{END searchCtrlBlock_customer_id}
																{BEGIN searchCtrlBlock_remaining_installments}


		<div class="form-group srchPanelRow {$filterRow_class_remaining_installments}" {$filterRow_attrs_remaining_installments}>
			<label>{$label H_Loans remaining_installments }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_remaining_installments}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_remaining_installments}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_remaining_installments}</span>
						</div>
		{END searchCtrlBlock_remaining_installments}
																{BEGIN searchCtrlBlock_remaining_days}


		<div class="form-group srchPanelRow {$filterRow_class_remaining_days}" {$filterRow_attrs_remaining_days}>
			<label>{$label H_Loans remaining_days }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_remaining_days}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_remaining_days}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_remaining_days}</span>
						</div>
		{END searchCtrlBlock_remaining_days}
																{BEGIN searchCtrlBlock_arrears_amount}


		<div class="form-group srchPanelRow {$filterRow_class_arrears_amount}" {$filterRow_attrs_arrears_amount}>
			<label>{$label H_Loans arrears_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_arrears_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_arrears_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_arrears_amount}</span>
						</div>
		{END searchCtrlBlock_arrears_amount}
																{BEGIN searchCtrlBlock_remaining_balance}


		<div class="form-group srchPanelRow {$filterRow_class_remaining_balance}" {$filterRow_attrs_remaining_balance}>
			<label>{$label H_Loans remaining_balance }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_remaining_balance}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_remaining_balance}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_remaining_balance}</span>
						</div>
		{END searchCtrlBlock_remaining_balance}
																{BEGIN searchCtrlBlock_should_pay}


		<div class="form-group srchPanelRow {$filterRow_class_should_pay}" {$filterRow_attrs_should_pay}>
			<label>{$label H_Loans should_pay }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_should_pay}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_should_pay}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_should_pay}</span>
						</div>
		{END searchCtrlBlock_should_pay}
																{BEGIN searchCtrlBlock_total_collected}


		<div class="form-group srchPanelRow {$filterRow_class_total_collected}" {$filterRow_attrs_total_collected}>
			<label>{$label H_Loans total_collected }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_total_collected}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_total_collected}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_total_collected}</span>
						</div>
		{END searchCtrlBlock_total_collected}
																{BEGIN searchCtrlBlock_profit_amount}


		<div class="form-group srchPanelRow {$filterRow_class_profit_amount}" {$filterRow_attrs_profit_amount}>
			<label>{$label H_Loans profit_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_profit_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_profit_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_profit_amount}</span>
						</div>
		{END searchCtrlBlock_profit_amount}
																{BEGIN searchCtrlBlock_status}


		<div class="form-group srchPanelRow {$filterRow_class_status}" {$filterRow_attrs_status}>
			<label>{$label H_Loans status }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_status}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_status}</span>
						</div>
		{END searchCtrlBlock_status}
																{BEGIN searchCtrlBlock_end_date}


		<div class="form-group srchPanelRow {$filterRow_class_end_date}" {$filterRow_attrs_end_date}>
			<label>{$label H_Loans end_date }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_end_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_end_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_end_date}</span>
						</div>
		{END searchCtrlBlock_end_date}
																{BEGIN searchCtrlBlock_start_date}


		<div class="form-group srchPanelRow {$filterRow_class_start_date}" {$filterRow_attrs_start_date}>
			<label>{$label H_Loans start_date }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_start_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_start_date}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_start_date}</span>
						</div>
		{END searchCtrlBlock_start_date}
																{BEGIN searchCtrlBlock_payment_interval_days}


		<div class="form-group srchPanelRow {$filterRow_class_payment_interval_days}" {$filterRow_attrs_payment_interval_days}>
			<label>{$label H_Loans payment_interval_days }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_payment_interval_days}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_payment_interval_days}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_payment_interval_days}</span>
						</div>
		{END searchCtrlBlock_payment_interval_days}
																{BEGIN searchCtrlBlock_installment_amount}


		<div class="form-group srchPanelRow {$filterRow_class_installment_amount}" {$filterRow_attrs_installment_amount}>
			<label>{$label H_Loans installment_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_installment_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_installment_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_installment_amount}</span>
						</div>
		{END searchCtrlBlock_installment_amount}
																{BEGIN searchCtrlBlock_total_payable}


		<div class="form-group srchPanelRow {$filterRow_class_total_payable}" {$filterRow_attrs_total_payable}>
			<label>{$label H_Loans total_payable }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_total_payable}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_total_payable}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_total_payable}</span>
						</div>
		{END searchCtrlBlock_total_payable}
																{BEGIN searchCtrlBlock_loan_amount}


		<div class="form-group srchPanelRow {$filterRow_class_loan_amount}" {$filterRow_attrs_loan_amount}>
			<label>{$label H_Loans loan_amount }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_loan_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_loan_amount}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_loan_amount}</span>
						</div>
		{END searchCtrlBlock_loan_amount}
																{BEGIN searchCtrlBlock_guarantor_2}


		<div class="form-group srchPanelRow {$filterRow_class_guarantor_2}" {$filterRow_attrs_guarantor_2}>
			<label>{$label H_Loans guarantor_2 }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_guarantor_2}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_guarantor_2}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_guarantor_2}</span>
						</div>
		{END searchCtrlBlock_guarantor_2}
																{BEGIN searchCtrlBlock_guarantor_1}


		<div class="form-group srchPanelRow {$filterRow_class_guarantor_1}" {$filterRow_attrs_guarantor_1}>
			<label>{$label H_Loans guarantor_1 }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_guarantor_1}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_guarantor_1}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_guarantor_1}</span>
						</div>
		{END searchCtrlBlock_guarantor_1}
																{BEGIN searchCtrlBlock_horno}


		<div class="form-group srchPanelRow {$filterRow_class_horno}" {$filterRow_attrs_horno}>
			<label>{$label H_Loans horno }</label>

							{$delCtrlButt}
			
								<span class="rnr-searchtype">{$searchtype_horno}</span>
								<span class="rnr-searchcontrol">{$searchcontrol_horno}</span>
								<span class="rnr-searchcontrol">{$searchcontrol1_horno}</span>
						</div>
		{END searchCtrlBlock_horno}
		

	</div>

	<div class="panel-footer bottomSearchButt" {$bottomSearchButt_attrs}>
		<button class="btn btn-primary" id="searchButton{$id}" {$searchbutton_attrs}>Search</button>
		<button class="btn btn-default" {$showAllCont_attrs} {$showallbutton_attrs}>Show all</button>
	</div>
</div>
<!-- End Search panel content -->
			</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="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="h_loans_search.php{$stateLink_full}" {$advsearchlink_attrs}  title="" >
				
		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="" >
				
		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="" >
				
		Hide search panel		
		</a>
	</li>
{END searchPanelTopButtons}
							<li role="separator" class="divider"></li>							{BEGIN export_link}
	<li data-itemtype="export" data-itemid="export" {$item_export} data-pageid="{$pageid}" data-small >
				<a  href="#" {$exportlink_attrs}  title="" >
				
		Export results		
		</a>
	</li>
{END export_link}
							<li role="separator" class="divider"></li>							{BEGIN import_link}
	<li data-itemtype="import" data-itemid="import" {$item_import} data-pageid="{$pageid}" data-small >
				<a  {$importlink_attrs} href="h_loans_import.php{$stateLink_full}"  title="" >
				
		Import		
		</a>
	</li>
{END import_link}
					</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} >
							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="" >
				
		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="" >
				
		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="compact">
					{$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_c2" data-pageid="{$pageid}"	{$cell_top_c2}
	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}
		 
		{BEGIN inlineadd_link}
<span data-itemtype="inline_add" data-itemid="inline_add" {$item_inline_add} data-pageid="{$pageid}" data-small data-button-item>
	<a type="button" title="" class="btn btn-primary   
	" {$inlineaddlink_attrs} >
							Inline Add			</a>
</span>
{END inlineadd_link}
			{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}" >
		{$recsPerPage}
</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="Print-friendly page" 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">
			Scope:		</div>

		{BEGIN print_friendly_all}
		<div class="col-md-8">
			<label for="printAll{$id}">
				<input type="radio" id="printAll{$id}" data-href="h_loans_print.php?all=1&amp;{$crosstable_attrs}" name="printScope">
									Print all pages							</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="h_loans_print.php?{$crosstable_attrs}">
				Print this page			</label>
		</div>
	</div>
	
		<div class="row">
		<div class="col-md-4">
			&nbsp;
		</div>
		<div class="col-md-8">
			<label style="color: gray;" for="printSelection{$id}">
			<input name="printScope" disabled="disabled" id="printSelection{$id}" type="radio">
			Print selected			</label>
		</div>
	</div>
	</div>				 
					</li>
											<li class="divider" role="separator"></li>
																				 
				 
					<li class="container-fluid 
										">
									<div>
	<label for="printPerPage{$id}">
					Records Per Page							
	</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}" >
							Print			</a>
</span>
				 
					</li>
															</ul>
</span>
{END print_friendly}
	 
		<div id="fildhidepanel{$id}" class="bs-fildhidepanel 
	 showHide	 reorder	keep-open btn-group"
	data-itemtype="columns_control" data-itemid="columns_control" {$item_columns_control} data-pageid="{$pageid}"	title="Show/hide columns"
	>
	<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button"><i class="glyphicon glyphicon-th-list"></i> <span class="caret"></span></button>
	<ul role="menu" class="dropdown-menu dropdown-left">
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_loan_id" checked="checked" value="1" data-field="loan_id" data-fieldname="loan_id">
					<span>{$label H_Loans loan_id }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_guarantor_1" checked="checked" value="1" data-field="guarantor_1" data-fieldname="guarantor_1">
					<span>{$label H_Loans guarantor_1 }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_guarantor_2" checked="checked" value="1" data-field="guarantor_2" data-fieldname="guarantor_2">
					<span>{$label H_Loans guarantor_2 }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_loan_amount" checked="checked" value="1" data-field="loan_amount" data-fieldname="loan_amount">
					<span>{$label H_Loans loan_amount }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_total_payable" checked="checked" value="1" data-field="total_payable" data-fieldname="total_payable">
					<span>{$label H_Loans total_payable }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_installment_amount" checked="checked" value="1" data-field="installment_amount" data-fieldname="installment_amount">
					<span>{$label H_Loans installment_amount }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_payment_interval_days" checked="checked" value="1" data-field="payment_interval_days" data-fieldname="payment_interval_days">
					<span>{$label H_Loans payment_interval_days }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_start_date" checked="checked" value="1" data-field="start_date" data-fieldname="start_date">
					<span>{$label H_Loans start_date }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_end_date" checked="checked" value="1" data-field="end_date" data-fieldname="end_date">
					<span>{$label H_Loans end_date }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_status" checked="checked" value="1" data-field="status" data-fieldname="status">
					<span>{$label H_Loans status }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_profit_amount" checked="checked" value="1" data-field="profit_amount" data-fieldname="profit_amount">
					<span>{$label H_Loans profit_amount }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_total_collected" checked="checked" value="1" data-field="total_collected" data-fieldname="total_collected">
					<span>{$label H_Loans total_collected }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_should_pay" checked="checked" value="1" data-field="should_pay" data-fieldname="should_pay">
					<span>{$label H_Loans should_pay }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_remaining_balance" checked="checked" value="1" data-field="remaining_balance" data-fieldname="remaining_balance">
					<span>{$label H_Loans remaining_balance }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_arrears_amount" checked="checked" value="1" data-field="arrears_amount" data-fieldname="arrears_amount">
					<span>{$label H_Loans arrears_amount }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_remaining_days" checked="checked" value="1" data-field="remaining_days" data-fieldname="remaining_days">
					<span>{$label H_Loans remaining_days }</span>
				</label>
			</div>
					</a>
		</li>
							<li>
		<a>
					  	<div class="checkbox">
				<label>
					<input type="checkbox" id="hide_remaining_installments" checked="checked" value="1" data-field="remaining_installments" data-fieldname="remaining_installments">
					<span>{$label H_Loans remaining_installments }</span>
				</label>
			</div>
					</a>
		</li>
			</ul>
</div>
		</div>					</div>
	 
		<div class="row">
			 
				<div 
	data-cellId="above-grid_c3" data-pageid="{$pageid}"	{$cell_above-grid_c3}
	class=" r-ori-vert			col-md-6
	
">
			</div>			 
				<div 
	data-cellId="above-grid_c4" data-pageid="{$pageid}"	{$cell_above-grid_c4}
	class="r-align-right r-ori-vert			col-md-6
	
">
		 
		<div class="form-inline sortby-ctrl" data-itemtype="sort_dropdown" data-itemid="sort_dropdown" {$item_sort_dropdown} data-pageid="{$pageid}">
Sort by&nbsp;{$sortByDropdown}
</div>		</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>
@media screen and (max-width: 767px) {
		[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="loan_id"]:before {
		content: "{$label H_Loans loan_id}";
	}
				[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="guarantor_1"]:before {
		content: "{$label H_Loans guarantor_1}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="guarantor_2"]:before {
		content: "{$label H_Loans guarantor_2}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="loan_amount"]:before {
		content: "{$label H_Loans loan_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="total_payable"]:before {
		content: "{$label H_Loans total_payable}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="installment_amount"]:before {
		content: "{$label H_Loans installment_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="payment_interval_days"]:before {
		content: "{$label H_Loans payment_interval_days}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="start_date"]:before {
		content: "{$label H_Loans start_date}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="end_date"]:before {
		content: "{$label H_Loans end_date}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="status"]:before {
		content: "{$label H_Loans status}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="profit_amount"]:before {
		content: "{$label H_Loans profit_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="total_collected"]:before {
		content: "{$label H_Loans total_collected}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="should_pay"]:before {
		content: "{$label H_Loans should_pay}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="remaining_balance"]:before {
		content: "{$label H_Loans remaining_balance}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="arrears_amount"]:before {
		content: "{$label H_Loans arrears_amount}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="remaining_days"]:before {
		content: "{$label H_Loans remaining_days}";
	}
			[data-pageid="{$pageid}"][data-itemtype="grid_field"][data-field="remaining_installments"]:before {
		content: "{$label H_Loans remaining_installments}";
	}
		}
</style>
<table data-location="grid" id="form_grid_{$pageid}" data-makeup="leftbar" {$form_grid} data-pageid="{$pageid}" class=" table {$grid_classes}  r-flexgrid rnr-b-grid rnr-gridtable" 
	cellpadding="0" 
	data-body-height="1"
>
						<thead>
			{BEGIN grid_header}
					
		 
						<tr {$rowattrs} {$row_grid_0} class="{$rowclass} 
									{$gridHeader_class}
									
								r-gridrow
							">
				 
					{BEGIN cellblock_grid_headcell_icons}
	<th
	
	{$cell_grid_headcell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_headcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"		data-control-cell
	
	>

	
	</th>
	{END cellblock_grid_headcell_icons}
				 
					{BEGIN cellblock_grid_headcell_field}
	<th
	
	{$cell_grid_headcell_field}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$loan_id_class}
			"

			data-field="loan_id"
	
	data-cellId="grid_headcell_field" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN loan_id_fieldheadercolumn}
	{BEGIN loan_id_fieldheader}
	<SPAN {$loan_id_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field2" {$item_simple_grid_field2} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="loan_id">
	{$label H_Loans loan_id }	{$arrow_icon_loan_id}
	</SPAN>
	{END loan_id_fieldheader}
{END loan_id_fieldheadercolumn}

	 
		{BEGIN status_fieldheadercolumn}
	{BEGIN status_fieldheader}
	<SPAN {$status_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field34" {$item_simple_grid_field34} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="status">
	{$label H_Loans status }	{$arrow_icon_status}
	</SPAN>
	{END status_fieldheader}
{END status_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field}
				 
					{BEGIN cellblock_grid_headcell_field6}
	<th
	
	{$cell_grid_headcell_field6}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$loan_amount_class}
			"

			data-field="loan_amount"
	
	data-cellId="grid_headcell_field6" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN loan_amount_fieldheadercolumn}
	{BEGIN loan_amount_fieldheader}
	<SPAN {$loan_amount_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field28" {$item_simple_grid_field28} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="loan_amount">
	{$label H_Loans loan_amount }	{$arrow_icon_loan_amount}
	</SPAN>
	{END loan_amount_fieldheader}
{END loan_amount_fieldheadercolumn}

	 
		{BEGIN total_payable_fieldheadercolumn}
	{BEGIN total_payable_fieldheader}
	<SPAN {$total_payable_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field29" {$item_simple_grid_field29} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="total_payable">
	{$label H_Loans total_payable }	{$arrow_icon_total_payable}
	</SPAN>
	{END total_payable_fieldheader}
{END total_payable_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field6}
				 
					{BEGIN cellblock_grid_headcell_field8}
	<th
	
	{$cell_grid_headcell_field8}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$installment_amount_class}
			"

			data-field="installment_amount"
	
	data-cellId="grid_headcell_field8" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN installment_amount_fieldheadercolumn}
	{BEGIN installment_amount_fieldheader}
	<SPAN {$installment_amount_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field30" {$item_simple_grid_field30} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="installment_amount">
	{$label H_Loans installment_amount }	{$arrow_icon_installment_amount}
	</SPAN>
	{END installment_amount_fieldheader}
{END installment_amount_fieldheadercolumn}

	 
		{BEGIN payment_interval_days_fieldheadercolumn}
	{BEGIN payment_interval_days_fieldheader}
	<SPAN {$payment_interval_days_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field31" {$item_simple_grid_field31} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="payment_interval_days">
	{$label H_Loans payment_interval_days }	{$arrow_icon_payment_interval_days}
	</SPAN>
	{END payment_interval_days_fieldheader}
{END payment_interval_days_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field8}
				 
					{BEGIN cellblock_grid_headcell_field10}
	<th
	
	{$cell_grid_headcell_field10}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$start_date_class}
			"

			data-field="start_date"
	
	data-cellId="grid_headcell_field10" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN start_date_fieldheadercolumn}
	{BEGIN start_date_fieldheader}
	<SPAN {$start_date_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field32" {$item_simple_grid_field32} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="start_date">
	{$label H_Loans start_date }	{$arrow_icon_start_date}
	</SPAN>
	{END start_date_fieldheader}
{END start_date_fieldheadercolumn}

	 
		{BEGIN end_date_fieldheadercolumn}
	{BEGIN end_date_fieldheader}
	<SPAN {$end_date_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field33" {$item_simple_grid_field33} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="end_date">
	{$label H_Loans end_date }	{$arrow_icon_end_date}
	</SPAN>
	{END end_date_fieldheader}
{END end_date_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field10}
				 
					{BEGIN cellblock_grid_headcell_field12}
	<th
	
	{$cell_grid_headcell_field12}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$profit_amount_class}
			"

			data-field="profit_amount"
	
	data-cellId="grid_headcell_field12" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN profit_amount_fieldheadercolumn}
	{BEGIN profit_amount_fieldheader}
	<SPAN {$profit_amount_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field35" {$item_simple_grid_field35} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="profit_amount">
	{$label H_Loans profit_amount }	{$arrow_icon_profit_amount}
	</SPAN>
	{END profit_amount_fieldheader}
{END profit_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field12}
				 
					{BEGIN cellblock_grid_headcell_field14}
	<th
	
	{$cell_grid_headcell_field14}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$total_collected_class}
			"

			data-field="total_collected"
	
	data-cellId="grid_headcell_field14" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN total_collected_fieldheadercolumn}
	{BEGIN total_collected_fieldheader}
	<SPAN {$total_collected_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field36" {$item_simple_grid_field36} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="total_collected">
	{$label H_Loans total_collected }	{$arrow_icon_total_collected}
	</SPAN>
	{END total_collected_fieldheader}
{END total_collected_fieldheadercolumn}

	 
		{BEGIN remaining_balance_fieldheadercolumn}
	{BEGIN remaining_balance_fieldheader}
	<SPAN {$remaining_balance_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field38" {$item_simple_grid_field38} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="remaining_balance">
	{$label H_Loans remaining_balance }	{$arrow_icon_remaining_balance}
	</SPAN>
	{END remaining_balance_fieldheader}
{END remaining_balance_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field14}
				 
					{BEGIN cellblock_grid_headcell_field16}
	<th
	
	{$cell_grid_headcell_field16}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$should_pay_class}
			"

			data-field="should_pay"
	
	data-cellId="grid_headcell_field16" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN should_pay_fieldheadercolumn}
	{BEGIN should_pay_fieldheader}
	<SPAN {$should_pay_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field37" {$item_simple_grid_field37} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="should_pay">
	{$label H_Loans should_pay }	{$arrow_icon_should_pay}
	</SPAN>
	{END should_pay_fieldheader}
{END should_pay_fieldheadercolumn}

	 
		{BEGIN arrears_amount_fieldheadercolumn}
	{BEGIN arrears_amount_fieldheader}
	<SPAN {$arrears_amount_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field39" {$item_simple_grid_field39} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="arrears_amount">
	{$label H_Loans arrears_amount }	{$arrow_icon_arrears_amount}
	</SPAN>
	{END arrears_amount_fieldheader}
{END arrears_amount_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field16}
				 
					{BEGIN cellblock_grid_headcell_field18}
	<th
	
	{$cell_grid_headcell_field18}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$remaining_days_class}
			"

			data-field="remaining_days"
	
	data-cellId="grid_headcell_field18" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN remaining_days_fieldheadercolumn}
	{BEGIN remaining_days_fieldheader}
	<SPAN {$remaining_days_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field40" {$item_simple_grid_field40} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="remaining_days">
	{$label H_Loans remaining_days }	{$arrow_icon_remaining_days}
	</SPAN>
	{END remaining_days_fieldheader}
{END remaining_days_fieldheadercolumn}

	 
		{BEGIN remaining_installments_fieldheadercolumn}
	{BEGIN remaining_installments_fieldheader}
	<SPAN {$remaining_installments_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field41" {$item_simple_grid_field41} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="remaining_installments">
	{$label H_Loans remaining_installments }	{$arrow_icon_remaining_installments}
	</SPAN>
	{END remaining_installments_fieldheader}
{END remaining_installments_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field18}
				 
					{BEGIN cellblock_grid_headcell_field20}
	<th
	
	{$cell_grid_headcell_field20}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$guarantor_1_class}
			"

			data-field="guarantor_1"
	
	data-cellId="grid_headcell_field20" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN guarantor_1_fieldheadercolumn}
	{BEGIN guarantor_1_fieldheader}
	<SPAN {$guarantor_1_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field42" {$item_simple_grid_field42} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="guarantor_1">
	{$label H_Loans guarantor_1 }	{$arrow_icon_guarantor_1}
	</SPAN>
	{END guarantor_1_fieldheader}
{END guarantor_1_fieldheadercolumn}

	 
		{BEGIN guarantor_2_fieldheadercolumn}
	{BEGIN guarantor_2_fieldheader}
	<SPAN {$guarantor_2_orderlinkattrs} data-itemtype="grid_field_label" data-itemid="simple_grid_field43" {$item_simple_grid_field43} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="guarantor_2">
	{$label H_Loans guarantor_2 }	{$arrow_icon_guarantor_2}
	</SPAN>
	{END guarantor_2_fieldheader}
{END guarantor_2_fieldheadercolumn}

	
	</th>
	{END cellblock_grid_headcell_field20}
							</tr>
					 
					 
					
					{END grid_header}
			</thead>
															<tbody>
					{BEGIN grid_row}
									
		 
					 
						<tr {$rowattrs} {$row_grid_1} class="{$rowclass} 
								
								r-gridrow
							">
				 
					{BEGIN cellblock_grid_cell_icons}
	<td
	
	{$cell_grid_cell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_cell_icons" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"		data-control-cell
	
	>

	 
		{BEGIN inline_cancel}
<span data-itemtype="grid_inline_cancel" data-itemid="grid_inline_cancel" {$item_grid_inline_cancel} data-pageid="{$pageid}" data-record-id="{$recId}" data-small data-button-item>
	<a type="button" title="Cancel" class="btn-link   
	 glyphicon glyphicon-remove" {$inlinerevertlink_attrs} title="Cancel" >		
				
								</a>
</span>
{END inline_cancel}
	
	</td>
	{END cellblock_grid_cell_icons}
				 
					{BEGIN cellblock_grid_cell_field}
	<td
	
	{$cell_grid_cell_field}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$loan_id_class}
			"

			data-field="loan_id"
	
	data-cellId="grid_cell_field" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN loan_id_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field" {$item_simple_grid_field} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="loan_id" data-default-width >
{$loan_id_value}
</span>
{END loan_id_fieldcolumn}	 
		{BEGIN status_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field15" {$item_simple_grid_field15} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="status" data-default-width >
{$status_value}
</span>
{END status_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field}
				 
					{BEGIN cellblock_grid_cell_field6}
	<td
	
	{$cell_grid_cell_field6}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$loan_amount_class}
			"

			data-field="loan_amount"
	
	data-cellId="grid_cell_field6" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN loan_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field9" {$item_simple_grid_field9} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="loan_amount" data-default-width >
{$loan_amount_value}
</span>
{END loan_amount_fieldcolumn}	 
		{BEGIN total_payable_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field10" {$item_simple_grid_field10} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="total_payable" data-default-width >
{$total_payable_value}
</span>
{END total_payable_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field6}
				 
					{BEGIN cellblock_grid_cell_field8}
	<td
	
	{$cell_grid_cell_field8}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$installment_amount_class}
			"

			data-field="installment_amount"
	
	data-cellId="grid_cell_field8" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN installment_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field11" {$item_simple_grid_field11} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="installment_amount" data-default-width >
{$installment_amount_value}
</span>
{END installment_amount_fieldcolumn}	 
		{BEGIN payment_interval_days_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field12" {$item_simple_grid_field12} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="payment_interval_days" data-default-width >
{$payment_interval_days_value}
</span>
{END payment_interval_days_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field8}
				 
					{BEGIN cellblock_grid_cell_field10}
	<td
	
	{$cell_grid_cell_field10}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$start_date_class}
			"

			data-field="start_date"
	
	data-cellId="grid_cell_field10" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN start_date_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field13" {$item_simple_grid_field13} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="start_date" data-default-width >
{$start_date_value}
</span>
{END start_date_fieldcolumn}	 
		{BEGIN end_date_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field14" {$item_simple_grid_field14} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="end_date" data-default-width >
{$end_date_value}
</span>
{END end_date_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field10}
				 
					{BEGIN cellblock_grid_cell_field12}
	<td
	
	{$cell_grid_cell_field12}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$profit_amount_class}
			"

			data-field="profit_amount"
	
	data-cellId="grid_cell_field12" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN profit_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field16" {$item_simple_grid_field16} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="profit_amount" data-default-width >
{$profit_amount_value}
</span>
{END profit_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field12}
				 
					{BEGIN cellblock_grid_cell_field14}
	<td
	
	{$cell_grid_cell_field14}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$total_collected_class}
			"

			data-field="total_collected"
	
	data-cellId="grid_cell_field14" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN total_collected_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field17" {$item_simple_grid_field17} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="total_collected" data-default-width >
{$total_collected_value}
</span>
{END total_collected_fieldcolumn}	 
		{BEGIN remaining_balance_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field19" {$item_simple_grid_field19} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="remaining_balance" data-default-width >
{$remaining_balance_value}
</span>
{END remaining_balance_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field14}
				 
					{BEGIN cellblock_grid_cell_field16}
	<td
	
	{$cell_grid_cell_field16}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$should_pay_class}
			"

			data-field="should_pay"
	
	data-cellId="grid_cell_field16" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN should_pay_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field18" {$item_simple_grid_field18} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="should_pay" data-default-width >
{$should_pay_value}
</span>
{END should_pay_fieldcolumn}	 
		{BEGIN arrears_amount_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field20" {$item_simple_grid_field20} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="arrears_amount" data-default-width >
{$arrears_amount_value}
</span>
{END arrears_amount_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field16}
				 
					{BEGIN cellblock_grid_cell_field18}
	<td
	
	{$cell_grid_cell_field18}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$remaining_days_class}
			"

			data-field="remaining_days"
	
	data-cellId="grid_cell_field18" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN remaining_days_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field21" {$item_simple_grid_field21} data-pageid="{$pageid}" data-page="h_loans_list" data-record-id="{$recId}" data-field="remaining_days" data-default-width >
{$remaining_days_value}
</span>
{END remaining_days_fieldcolumn}	 
		{BEGIN remaining_installments_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field22" {$item_simple_grid_field22} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="remaining_installments" data-default-width >
{$remaining_installments_value}
</span>
{END remaining_installments_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field18}
				 
					{BEGIN cellblock_grid_cell_field20}
	<td
	
	{$cell_grid_cell_field20}
	{$recordattrs}
	class="
		r-align-center r-ori-vert				{$guarantor_1_class}
			"

			data-field="guarantor_1"
	
	data-cellId="grid_cell_field20" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	 
		{BEGIN guarantor_1_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field3" {$item_simple_grid_field3} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="guarantor_1" data-default-width >
{$guarantor_1_value}
</span>
{END guarantor_1_fieldcolumn}	 
		{BEGIN guarantor_2_fieldcolumn}
<span data-itemtype="grid_field" data-itemid="simple_grid_field4" {$item_simple_grid_field4} data-pageid="{$pageid}" data-record-id="{$recId}" data-field="guarantor_2" data-default-width >
{$guarantor_2_value}
</span>
{END guarantor_2_fieldcolumn}	
	</td>
	{END cellblock_grid_cell_field20}
							</tr>
					 
					
											{END grid_row}
					</tbody>
													<tfoot>
					
		 
					 
					 
						<tr {$rowattrs} {$row_grid_2} class="{$rowclass} 
									{$gridFooter_class}
									
								r-gridrow
							">
				 
					{BEGIN cellblock_grid_footcell_icons}
	<td
	
	{$cell_grid_footcell_icons}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_icons" data-pageid="{$pageid}" data-record-id="{$recId}"	
	>

	
	</td>
	{END cellblock_grid_footcell_icons}
				 
					{BEGIN cellblock_grid_footcell_field}
	<td
	
	{$cell_grid_footcell_field}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field}
				 
					{BEGIN cellblock_grid_footcell_field6}
	<td
	
	{$cell_grid_footcell_field6}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field6" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field6}
				 
					{BEGIN cellblock_grid_footcell_field8}
	<td
	
	{$cell_grid_footcell_field8}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field8" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field8}
				 
					{BEGIN cellblock_grid_footcell_field10}
	<td
	
	{$cell_grid_footcell_field10}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field10" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field10}
				 
					{BEGIN cellblock_grid_footcell_field12}
	<td
	
	{$cell_grid_footcell_field12}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field12" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field12}
				 
					{BEGIN cellblock_grid_footcell_field14}
	<td
	
	{$cell_grid_footcell_field14}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field14" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field14}
				 
					{BEGIN cellblock_grid_footcell_field16}
	<td
	
	{$cell_grid_footcell_field16}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field16" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field16}
				 
					{BEGIN cellblock_grid_footcell_field18}
	<td
	
	{$cell_grid_footcell_field18}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field18" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field18}
				 
					{BEGIN cellblock_grid_footcell_field20}
	<td
	
	{$cell_grid_footcell_field20}
	{$recordattrs}
	class="
		 r-ori-vert			"

	
	data-cellId="grid_footcell_field20" data-pageid="{$pageid}" data-record-id="{$recId}" data-page="h_loans_list"	
	>

	
	</td>
	{END cellblock_grid_footcell_field20}
							</tr>
					
					</tfoot>
				</table>
{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>
