{extends file="./main.tpl"}
{block name=head}
{/block}
{block name=body}
<form action="partyList.php" method="POST">
<table border="1" align="center" cellspacing="0"  width="100%">
	<h2 align="center">Party List</h2>
	<h2 align="center">
		<select name="type" onchange="this.form.submit();">
			<option>Select Type</option>
			  {html_options values=$typeArrayValue output=$typeArrayOutput selected=$type}
		</select>
	</h2>
<thead>
	<tr>
		<th class="table1">&nbsp;</th>
		<th class="table1">&nbsp;</th>
		<th class="table1">Party Name</th>
		<th class="table1">Address</th>
		<th class="table1">Mobile</th>
		<th class="table1">Narration</th>
		<th class="table1">Party Type</th>
		<th class="table1">Fine</th>
		<th class="table1">Amount</th>
		<th class="table1">Delete All</th>
  </tr>
</thead>
<tbody>
  {section name="sec" loop=$partyListArray}
  <tr>
  	<td class="table1" align="center"><a href="party.php?partyId={$partyListArray[sec].partyId}" style="text-decoration:none;" class="link">Edit</a></td>
  	<td class="table1" align="center"><a href="partyDelete.php?partyId={$partyListArray[sec].partyId}" onclick="return confirm('DO You Want To Delete !!!!!')"; class="link"><img src="img/delete.png"></a></td>
  	<td class="table1" align="center">{$partyListArray[sec].partyName}</td>
  	<td class="table1" align="center">{$partyListArray[sec].address}</td>
  	<td class="table1" align="center">{$partyListArray[sec].mobile}</td>
  	<td class="table1" align="center">{$partyListArray[sec].otherInfo}</td>
	{if $partyListArray[sec].partyType == 'V'}
	  <td class="table1" align="center">Vepari</td>
	{else}
	  <td class="table1" align="center">Client</td>
	{/if}
	<td class="table1" align="center">{$partyListArray[sec].totoKg|string_format:"%.3f"}</td>
	<td class="table1" align="center">{$partyListArray[sec].totAmt|string_format:"%.0f"}</td>
	<td class="table1" align="center"><a href="clientdeleteNew.php?partyId={$partyListArray[sec].partyId}" onclick="return confirm('DO You Want To Delete !!!!!')"; class="link"><img src="img/delete.png"></a></td>
  </tr>
  {/section}
</tbody>
</table>
</form>
{/block}