{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;
}
.main{
  border:none;
}
</style>
{/block}
{block name=body}
<form name="partyForm"action="{$smarty.server.PHP_SELF}" method="POST">
<h1 align="center"><font size="5px">Mcx All List</font></h1>
<table cellpadding="3" cellspacing="0" border="" align="center" width=90%>
	<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>
<table cellpadding="3" cellspacing="0" border="" align="center" width=90%>
  <tr>
    <td>Type</td>
    <td>Date</td>
    <td>Name</td>
    <td>Rate</td>
    <td>K.G.</td>
  </tr>
  {section name="sec" loop=$clientDetail}
   {if $clientDetail[sec].transType == 'A'}
   <tr style="color:Green;">
     <td>Aavak</td>
     <td>{$clientDetail[sec].transDate}</td>
     <td>{$clientDetail[sec].partyName}</td>
     <td>{$clientDetail[sec].rate}</td>
     <td>{$clientDetail[sec].kg}</td>
  </tr>
  {else}
     <tr style="color:Red;">
		 <td>Javak</td>
		 <td>{$clientDetail[sec].transDate}</td>
		 <td>{$clientDetail[sec].partyName}</td>
		 <td>{$clientDetail[sec].rate}</td>
		 <td>{$clientDetail[sec].kg}</td>
     </tr>
  {/if}
  {/section}
</table>
{/block}