<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
			<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title>{$language.lblAdmin} : {$language.lblManageLoanDetails}</title>
			{include file='CommonStyles.tpl'}
			{include file='CommonCustomStyles.tpl'}
			{include file='CommonJavaScript.tpl'}
			<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" />
			<link rel="stylesheet" type="text/css" href="{$view_styles}/right-menu.css" />
			<script type="text/javascript" src="{$view_javascript}/table.plugin.js"></script>
			</head><body>
			<div class="outer_container"> {include file='CommonTop.tpl'} 
			  <!--End:Header Container--> 
			  <!--***********************************************************************START CONTAINER SECTION******************************************************-->
			  <div class="content_container">
				<!--End: Right Block-->
				  <div class="content_wrapper">
					<h2>{$language.lblManageLoanDetails}</h2>
					<div class="inner_content_wrapper"> 
					  <div id="common_message"></div>
                                           {form->start name="formSearch" action="" method="post" enctype="multipart/form-data"}
						<div class="search_container">
						  <div class="inner single-box">
							<ul class="clearfix">	
								<li class="column">
									<p class="label-field01">{$language.lblName}</p>
									<span class="form-field01">
										{form->textbox 
											class="select-box" 
											name="searchName"} 			                 
										</span>
								</li>
								<li class="column">
									<p class="label-field01">{$language.lblEmailID}</p>
									<span class="form-field01">
										{form->textbox 
											class="select-box" 
											name="searchEmail"} 			                 
										</span>
								</li>	
								                                            <li class="column">
									<p class="label-field01">{$language.lblMenuBrands}</p>
									<span class="form-field01">
										{form->select class="select-box" name="brandID" caption="->{$language.lblSelect}" options=$listBrand}			                 
										</span>
								</li>       
								<li class="column">
									{form->submit name="search" value="{$language.lblSearch}" class="button01 margin-r-10"} 
									{html->anchor href="/product/loanDetails/" class="action-link" caption="{$language.lblListAll}"}
								</li>
							   </ul>
						  </div>
						</div>
						{if $resloanlist}
						  <div class="sort_links">
							{form->submit class="button-link01 fixing_right" name="export" value=$language.lblExport}
							 <div class="clear"></div>
						  </div>
						  {/if}
						{form->close}
						
		
					  {if $resloanlist}
					  <div class="grid_table00"> 
					   {form->start name="formList" action=""  method="post" enctype="multipart/form-data"} 
					   <table width="100%" border="0" cellspacing="0" cellpadding="0"   >
						  <tr>
						  
							  
							<th  align="left" valign="middle"  width="10%">{$language.lblName}</th>
                            <th  align="left" valign="middle"  width="7%">{$language.lblPhone}</th>
							<th  align="left" valign="middle"  width="10%">{$language.lblEmailID}</th>
							<th  align="left" valign="middle"  width="5%">{$language.lblMenuBrands}</th>
							<th  align="left" valign="middle"  width="7%">{$language.lblLocation}</th>
							<th  align="left" valign="middle"  width="5%">{$language.lblEmploymentType}</th>
							<th  align="left" valign="middle"  width="7%">{$language.lblMonthlyIncome}</th>
							<th  align="left" valign="middle"  width="8%">{$language.lblCreditcardlimit}</th>
							<th  align="left" valign="middle"  width="7%">{$language.lblMonthlypayment}</th>
							<th  align="left" valign="middle"  width="18%">{$language.lblVehicleTitle}</th>
							<th  align="left" valign="middle"  width="16%">{$language.lblAppliedDate}</th>
						</tr>
		
						  {foreach $resloanlist as $key=>$loan}
						
						  <tr class="shade01">
								
								<td align="left" valign="middle">
									{$loan['firstname']} {$loan['lastname']}
								</td>
								<td align="left" valign="middle">
									{$loan['phone']}
								</td>
								<td align="left" valign="middle">
									{$loan['emailID']}
								</td>
								 <td align="left" valign="middle">
									{$loan['brandName']}
								</td>
								{if $loan['location']!='' }
								<td align="left" valign="middle">
									{$loan['location']}
								</td>
								{else}
								<td align="left" valign="middle">
									-
								</td>
								{/if}
								{if $loan['employmenttype']!='' }
                                <td align="left" valign="middle">
									{$loan['employmenttype']}
								</td>
								{else}
								<td align="left" valign="middle">
									-
								</td>
								{/if}
								{if $loan['monthlyincome']!='' }
								 <td align="left" valign="middle">
									{$loan['monthlyincome']}
								</td>
								{else}
								<td align="left" valign="middle">
									-
								</td>
								{/if}
								{if $loan['totalcreditcardlimit']!='' }
								 <td align="left" valign="middle">
									{$loan['totalcreditcardlimit']}
								</td>
								{else}
								<td align="left" valign="middle">
									-
								</td>
								{/if}
								{if $loan['loanmonthlyPayment']!='' }
                                <td align="left" valign="middle">
									{$loan['loanmonthlyPayment']}
								</td>
                                {else}
								<td align="left" valign="middle">
									-
								</td>
								{/if}
								<td align="left" valign="middle">
									{$loan['vehicleTitle']}
								</td>
								<td align="left" valign="middle">
								{if $loan['createdDate'] neq '0000-00-00 00:00:00'}
									{$loan['createdDate']|date_format:$settingsDateFormat} {$loan['createdDate']|date_format:$settingsTimeFormat}
								{/if} 
								</td>
						  </tr>
						  {/foreach}
						 
						</table>
						</div>
						{form->close}
						<div class="fixing_right pagination_outer" >{paginate->layout  key="page" label_record="{$language.lblRecorsFound}" label_pages="{$language.lblPages}"} </div>
						<div class="clear"></div>
						{else}
						<div class="message_info" id="common_message">{$language.msgNoRecords}</div>
						{/if}
					  <!--End:From Listing--> 
					</div>
					<!--End:Border 3--> 
				  </div>
				  <!--End:Border 2--> 
				<!--End: left Block-->
				<div class="clear"></div>
			  </div>
			  <!--End: Content--> 
	
			  {include file='CommonBottom.tpl'} </div>
			<!--***********************************************************************END CONTAINER SECTION******************************************************--> 
			<!--End:Content Container--> 
			<!--End:Outer Container--> 
			{include file='CommonJavaScriptBottom.tpl'} 
			
			<script type="text/javascript">
			var msgDeleteItem	= "{$language.msgDeleteItem}";
			var msgSelectItem	= "{$language.msgSelectItem}";
			var lblSelectAction			= "{$language.lblSelectAction}";
			var lblSelectItem			= "{$language.lblSelectItem}";
			var msgSelectSearchCriteria	= "{$language.msgSelectSearchCriteria}";
			</script>
        <script type="text/javascript">
            $(document).on('click', "#search", function () 
			{
            if ($.trim($('#searchName').val()) == "" && $.trim($('#searchEmail').val()) == "" && $.trim($('#brandID').val()) == "") {
            jAlert(msgSelectSearchCriteria);
            return false;
			}
        return true;
            
        });
            </script>
		
			{html->messages_script id="common_message"}
			</body>
			</html>

		