{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">
<input type="hidden" name="partyId" value="{$partyId}">
<h1 align="center"><font size="5px">Purchuran List</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">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="purdelete.php?purchId={$rojmelArray[sec].purchId}" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
			 <td><a href="parchuran.php?purchId={$rojmelArray[sec].purchId}"><img src="img/edit.png"></a></td>
			 <td nowrap>{$rojmelArray[sec].partyName}</td>
			 <td nowrap>{$rojmelArray[sec].purchDate}</td>
			 <td nowrap>{$rojmelArray[sec].particular}</td>
			 <td nowrap>{$rojmelArray[sec].fine|number_format:3}</td>
			 <td nowrap>{$rojmelArray[sec].amount}</td>
		  {/section}
	  </table>
		<td align="center">Javak
		  <table align="center" cellspacing="10">
			<tr>
			  <td>&nbsp;</td>
		      <td>&nbsp;</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="purdelete.php?purchId={$javakArray[sec1].purchId}" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
			     <td><a href="parchuran.php?purchId={$javakArray[sec1].purchId}"><img src="img/edit.png"></a></td>
				 <td nowrap>{$javakArray[sec1].partyName}</td>
				 <td nowrap>{$javakArray[sec1].purchDate}</td>
				 <td nowrap>{$javakArray[sec1].particular}</td>
				 <td nowrap>{$javakArray[sec1].fine|number_format:3}</td>
				 <td nowrap>{$javakArray[sec1].amount}</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>Fine : {$netFine|number_format:3}</td>
</tr>
<tr>
<td>Amount : {$netAmount}</td>
</tr>
</table>
</form>
{/block}