{extends file="./main.tpl"}
{block name=head}
<script type="text/javascript">
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
</script>
<style>
td{
   font-size: 90%;
   vertical-align: text-top;
}	
a
{
  text-decoration:none;
}
</style>
{/block}
{block name=body}
<form name="partyForm" action="{$smarty.server.PHP_SELF}" method="POST" onsubmit="return confirm('DO You Want To Submit !!!!!')";>
<input type="hidden" name="partyId" value="{$partyId}">
<h1 align="center"><font size="5px">Rojmel List <a href="rojmelprint_new.php?to={$to}&from={$from}"><font size="3px">Print</font></a></font></h1>

<table cellpadding="3" cellspacing="0" border="" align="center" width=70%>
	<tr>
	<td class="main">To
	  {html_select_date prefix="toDt" start_year="-1" end_year="+0"  day_value_format="%02d" field_order="DMY"}
	</td>
	<td class="main">From
	  {html_select_date prefix="fromDt" start_year="-1" end_year="+0"  day_value_format="%02d" field_order="DMY"}
	</td>
	<td class="main">
	  <input type="submit" name="submit" value="Submit">
	</td>
  </tr>
  </table>
<br><br><br>
<table cellspacing="0" border="" width="100%" align="center">
  <tr>
    <td>
	  <table cellspacing="14">
	    <tr><td colspan="5" align="center">Aavak</td></tr>
	    <tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  <td valign="top">Type</td>
		  <td valign="top">Branch</td>
		  <td valign="top">Party Name</td>
		  <td valign="top">Date</td>
		  <td valign="top">Particular</td>
		  <td valign="top">Fine</td>
		  <td valign="top">Amount</td>
		</tr>
		  {section name="sec" loop=$rojmelArray}
		  <tr style="color:green;">
			 <td><a href="rojmeldelete.php?rojmelId={$rojmelArray[sec].rojmelId}" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
			 <td><a href="rojmel.php?rojmelId={$rojmelArray[sec].rojmelId}"><img src="img/edit.png"></a></td>
			 {if $rojmelArray[sec].acc_type == 'D'}
				<td>Direct</td>
			  {else}
				<td>Khata</td>
			  {/if}
			 <td nowrap>{$rojmelArray[sec].branch}</td>
			 <td nowrap>{$rojmelArray[sec].partyName}</td>
			 <td nowrap>{$rojmelArray[sec].rojmelDate}</td>
			 <td nowrap>{$rojmelArray[sec].particular}</td>
			 <td nowrap>{$rojmelArray[sec].fine|string_format:"%.3f"}</td>
			 <td nowrap>{$rojmelArray[sec].amount|string_format:"%.0f"}</td>
		  {/section}
	  </table>
		<td align="center">Javak
		  <table align="center" cellspacing="10">
			<tr>
			  <td>&nbsp;</td>
		      <td>&nbsp;</td>
			  <td>Type</td>
			  <td>Branch</td>
			  <td>Party Name</td>
			  <td>Date</td>
			  <td>Particular</td>
			  <td>Fine</td>
			  <td>Amount</td>
			</tr>
			  {section name="sec1" loop=$javakArray}
			   <tr style="color:red;">
			     <td><a href="rojmeldelete.php?rojmelId={$javakArray[sec1].rojmelId}" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
			     <td><a href="rojmel.php?rojmelId={$javakArray[sec1].rojmelId}"><img src="img/edit.png"></a></td>
				 {if $javakArray[sec1].acc_type == 'D'}
					<td>Direct</td>
				  {else}
					<td>Khata</td>
				  {/if}
				 <td nowrap>{$javakArray[sec1].branch}</td>
				 <td nowrap>{$javakArray[sec1].partyName}</td>
				 <td nowrap>{$javakArray[sec1].rojmelDate}</td>
				 <td nowrap>{$javakArray[sec1].particular}</td>
				 <td nowrap>{$javakArray[sec1].fine|string_format:"%.3f"}</td>
				 <td nowrap>{$javakArray[sec1].amount|string_format:"%.0f"}</td>
			  </tr>
			  {/section}
		   </table>
		</td>
		
	</tr>
		<td><b>Fine :{$aFine|number_format:3} Amount : {$aAmount}</b></td>
		<td><b>Fine :{$jFine|number_format:3} Amount : {$jAmount}</b></td>
</table>
<table>
<tr>
  <td>Branch 0 : </td>
  <td>Fine : {$b0NetFine|number_format:3}</td>
  <td>Amount : {$b0NetAmt}</td>
</tr>
<tr>
  <td>Branch 1 : </td>
  <td>Fine : {$b1NetFine|number_format:3}</td>
  <td>Amount : {$b1NetAmt}</td>
</tr>
</table>
<br>
<table>
<tr>
  <td>Fine : {$netFine|number_format:3}</td>
</tr>
<tr>
<td>Amount : {$netAmount}</td>
</tr>
</table>
{/block}