{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.php"><font size="3px">Print</font></a></font></h1>
<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="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>
			 <td nowrap>{$rojmelArray[sec].partyName}</td>
			 <td nowrap>{$rojmelArray[sec].rojmelDate}</td>
			 <td nowrap>{$rojmelArray[sec].particular}</td>
			 <td nowrap>{$rojmelArray[sec].fine}</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="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>
				 <td nowrap>{$javakArray[sec1].partyName}</td>
				 <td nowrap>{$javakArray[sec1].rojmelDate}</td>
				 <td nowrap>{$javakArray[sec1].particular}</td>
				 <td nowrap>{$javakArray[sec1].fine}</td>
				 <td nowrap>{$javakArray[sec1].amount}</td>
			  </tr>
			  {/section}
		   </table>
		</td>
	</tr>
</table>
<table>
<tr>
  <td>Fine : {$netFine}</td>
</tr>
<tr>
<td>Amount : {$netAmount}</td>
</tr>
</table>
{/block}