<!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>
<title>{$language.lblAdmin} : {$language.lblMenuListFinanceRates}</title>
{include file='CommonStyles.tpl'}
{include file='CommonJavaScript.tpl'}
{include file='CommonCustomStyles.tpl'}
<link href="{$view_styles}/jquery-ui-1.8.19.custom.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="{$view_styles}/grid_listing.css" media="screen" />
</head><body>
<div class="outer_container">
  {include file='CommonTop.tpl'}
  <!--End:Header Container-->
  <!--***********************************************************************END HEADER CONTAINER******************************************************-->
  <div class="content_container">
  	<div class="content_wrapper">
     
    <h2>{$language.lblMenuListFinanceRates}</h2>
	
    <div class="clear"></div>
    <!--End: Right Block-->
    <div class="leftblock  full_width">
      <div class="shadow_outer">
        <div class="shadow_inner" >
          <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.lblVariantCode}</p>
									<span class="form-field01">
										{form->textbox 
											caption="->{$language.lblSelect}" 
											class="select-box" 
											name="variantCode"} 			                 
										</span>
								</li>	
								<li class="column">
									<p class="label-field01">{$language.lblYear}</p>
									<span class="form-field01">
										{form->select name="year" caption="->{$language.lblSelect}" class="select-box" options=$yearArray } 		                 
										</span>
								</li>	
								<li class="column">
									{form->submit name="search" value="{$language.lblSearch}" class="button01 margin-r-10"} 
									{html->anchor href="/product/listfinanceRate/" class="action-link" caption="{$language.lblListAll}"}
								</li>
							   </ul>
						  </div>
						</div>
						
		{form->close}
			
          {if $listfinanceRates}
					  <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.lblVariantCode}</th>
							<th  align="left" valign="middle"  width="10%">{$language.lblFinanceRate}</th>
							<th  align="left" valign="middle"  width="35%">{$language.lblShortDescription}</th>
							<th  align="left" valign="middle"  width="45%">{$language.lblDetailedDescription}</th>
							
						  </tr>
						{foreach $listfinanceRates as $key=>$listfinance}
						  <tr class="shade01">
								<td align="left" valign="middle">{$listfinance['variantCode']}</td>
								<td align="left" valign="middle">{$listfinance['financeRate']}%</td>		
								<td align="left" valign="middle">{$listfinance['shortDescription']}</td>
								<td align="left" valign="middle">{$listfinance['detailedDescription']}</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:Table Listing-->
      </div>
      <!--End:Border 3-->
    </div>
    <!--End:Border 2-->
  </div>
  <!--End: left Block-->
  <div class="clear"></div>
  </div>
</div>
<!--End:Content Container-->
{include file='CommonBottom.tpl'} 
</div>
<!--End:Outer Container-->
{include file='CommonJavaScriptBottom.tpl'}
<!--End:Outer Container-->
{html->messages_script id="common_message"}
</body>
</html>
