{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{
  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}">
<h1 align="center"><font size="5px">Client Today List</font></h1>
<table align="center" width="50%">
	<tr>
	  <td>From</td>
	  <td>{html_select_date prefix="to" start_year="-1" end_year="+0" field_order="DMY" day_value_format="%02d"}</td>
	  <th>To</th>
	  <td>{html_select_date prefix="from" start_year="-1" end_year="+0" field_order="DMY" day_value_format="%02d"}</td>
	  <td><input type="submit" name="submit" value="Submit"></td>
	</tr>
</table>
<br>
<table align="center" width="80%" border="1">
  <tr>
    <td>Type</td>
    <td>Name</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].partyName}</td>
     <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}	