<?php
/* Smarty version 3.1.30, created on 2021-07-10 19:07:32
  from "/home/patelin/vedantrey.in/templates/partyList.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_60e9a29cc898e8_25326983',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '74d7772c99f7b0361e94acb11e600f2c4f28da58' => 
    array (
      0 => '/home/patelin/vedantrey.in/templates/partyList.tpl',
      1 => 1625210331,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_60e9a29cc898e8_25326983 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_html_options')) require_once '/home/patelin/vedantrey.in/include/smarty/libs/plugins/function.html_options.php';
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_37044707960e9a29cbd8218_71892253', 'head');
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_86940724660e9a29cc86714_07232743', 'body');
$_smarty_tpl->inheritance->endChild();
$_smarty_tpl->_subTemplateRender("file:./main.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'head'} */
class Block_37044707960e9a29cbd8218_71892253 extends Smarty_Internal_Block
{
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<?php
}
}
/* {/block 'head'} */
/* {block 'body'} */
class Block_86940724660e9a29cc86714_07232743 extends Smarty_Internal_Block
{
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<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>
			  <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['typeArrayValue']->value,'output'=>$_smarty_tpl->tpl_vars['typeArrayOutput']->value,'selected'=>$_smarty_tpl->tpl_vars['type']->value),$_smarty_tpl);?>

		</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>
  <?php
$__section_sec_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_sec']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec'] : false;
$__section_sec_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['partyListArray']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_sec_0_total = $__section_sec_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_sec'] = new Smarty_Variable(array());
if ($__section_sec_0_total != 0) {
for ($__section_sec_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] = 0; $__section_sec_0_iteration <= $__section_sec_0_total; $__section_sec_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']++){
?>
  <tr>
  	<td class="table1" align="center"><a href="party.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['partyId'];?>
" style="text-decoration:none;" class="link">Edit</a></td>
  	<td class="table1" align="center"><a href="partyDelete.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['partyId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')"; class="link"><img src="img/delete.png"></a></td>
  	<td class="table1" align="center"><?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['partyName'];?>
</td>
  	<td class="table1" align="center"><?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['address'];?>
</td>
  	<td class="table1" align="center"><?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['mobile'];?>
</td>
  	<td class="table1" align="center"><?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['otherInfo'];?>
</td>
	<?php if ($_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['partyType'] == 'V') {?>
	  <td class="table1" align="center">Vepari</td>
	<?php } else { ?>
	  <td class="table1" align="center">Client</td>
	<?php }?>
	<td class="table1" align="center"><?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['totoKg']);?>
</td>
	<td class="table1" align="center"><?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['totAmt']);?>
</td>
	<td class="table1" align="center"><a href="clientdeleteNew.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyListArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['partyId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')"; class="link"><img src="img/delete.png"></a></td>
  </tr>
  <?php
}
}
if ($__section_sec_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_sec'] = $__section_sec_0_saved;
}
?>
</tbody>
</table>
</form>
<?php
}
}
/* {/block 'body'} */
}
