{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{
  text-align: center;
  font-weight: bold;
  
}
.td{
  cellpadding:20px;
  cellspacing:20px;
  
}
</style>
{/block}
{block name=body}
<form name="partyForm"action="{$smarty.server.PHP_SELF}" method="POST">
<input type="hidden" name="partyId" value="{$partyId}">
<table cellpadding="3" cellspacing="0"  align="center" width=90% style="margin-top:50px;">
   <tr>
    <!-- <td>Open Fine : {$openingAmt}</td>
	<td>Open Amount : {$openingFine}</td>-->
    <td colspan="7" align="center">Client Name : {$partyName}
	</td>
	<td>
	  From
      {$toDate|date_format:'d-m-Y'}
	</td>
	<td>To
       {$fromDate|date_format:'d-m-Y'}
  </tr>
  <!-- <tr style="margin-top:10px;">
    <td style="margin-top:10px;">Opening Fine : {$openingFine}</td> 
    <td style="margin-top:10px;">Opening Amount : {$openingAmt}</td>
  </tr> -->
</table>
<br>
<table cellspacing="0"  align="center" width="80%" border="1">
  <tr>
    <td>Type</td>
    <td>Particular</td>
    <td>Date</td>
    <td>Rate</td>
    <td>K.G.</td>
    <td>Total Amount</td>
  </tr>
  {section name="sec" loop=$clientDetail}
	 {if $clientDetail[sec].cliTransType == 'J'}
	   <td> Javak </td>
	 {else}
	   <td> Aavak </td>
	 {/if}
     <td>{$clientDetail[sec].particular}</td>
     <td>{$clientDetail[sec].cDate}</td>
     <td>{$clientDetail[sec].rate}</td>
     <td>{$clientDetail[sec].kg}</td>
     <td>{$clientDetail[sec].totalAmt}</td>
  </tr>
  {/section}
</table>
<br>
<table align="center" border="">
<tr>
	{if $finalkg < 0}
      <td colspan="3" align="right" style="color:red;">Final Kg : &nbsp;&nbsp; 	{$finalKg|string_format:"%.3f"}</td>
	{else}
	  <td colspan="3" align="right" style="color:green;">Final Kg : &nbsp;&nbsp; {$finalKg|string_format:"%.3f"}</td>
	{/if}
</tr>
<tr>
	{if $finalkg < 0}
      <td colspan="3" align="right" style="color:red;">Final Amount : &nbsp;&nbsp; 	{$finalAmount|string_format:"%.3f"}</td>
	{else}
	  <td colspan="3" align="right" style="color:green;">Final Amount : &nbsp;&nbsp; 	{$finalAmount|string_format:"%.3f"}</td>
	{/if}
  </tr>
</table>
</form>
{/block}	