<?php
/* Smarty version 3.1.30, created on 2023-04-22 14:07:27
  from "/home/hgsonsc1/hbm.foundbeta.co.in/templates/vepariList.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_64439cc7c0f221_68493536',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '8bead3e26d9cd4a2ed1f1f2f4c038463c8243be3' => 
    array (
      0 => '/home/hgsonsc1/hbm.foundbeta.co.in/templates/vepariList.tpl',
      1 => 1615049100,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_64439cc7c0f221_68493536 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_html_options')) require_once '/home/hgsonsc1/hbm.foundbeta.co.in/include/smarty/libs/plugins/function.html_options.php';
if (!is_callable('smarty_function_html_select_date')) require_once '/home/hgsonsc1/hbm.foundbeta.co.in/include/smarty/libs/plugins/function.html_select_date.php';
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

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

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_133259245064439cc7c07ad6_38033431', '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_170542277864439cc7b00ba9_19330351 extends Smarty_Internal_Block
{
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<?php echo '<script'; ?>
 type="text/javascript">
function myFunction()
{
	if(confirm("Are You Sure To Delete")== true)
	{
		return true;
	}
	else
	{
		return false;
	}
}
<?php echo '</script'; ?>
>
<style>
td{
  text-align: center;
  font-weight: bold;
  
}
</style>
<?php
}
}
/* {/block 'head'} */
/* {block 'body'} */
class Block_133259245064439cc7c07ad6_38033431 extends Smarty_Internal_Block
{
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<form name="partyForm"action="<?php echo $_SERVER['PHP_SELF'];?>
" method="POST">
<input type="hidden" name="partyId" value="<?php echo $_smarty_tpl->tpl_vars['partyId']->value;?>
">
<h1 align="center"><font size="5px">Vepari List</font>&nbsp;&nbsp;<a href="vepariprint.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyId']->value;?>
" target="_blank" style="text-decoration:none;"><font size="3px;">Print</font></a>
<a href="vepariDel.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyId']->value;?>
" style="text-decoration:none;"><font size="3px;">Delete</font></a></h1>
<table cellpadding="3" cellspacing="0"  align="center" width=90<?php echo '%>';?>
   <tr>
    <td colspan="9">Vepari Name
	  <select name="partyId">
	     <option value="">Select Party</option>
	    <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['clientArray']->value['partyId'],'output'=>$_smarty_tpl->tpl_vars['clientArray']->value['partyName'],'selected'=>$_smarty_tpl->tpl_vars['partyId']->value),$_smarty_tpl);?>

	  </select>
	  <th>From</th>
  <td><?php echo smarty_function_html_select_date(array('prefix'=>"to",'start_year'=>"-3",'end_year'=>"+0",'field_order'=>"DMY",'day_value_format'=>"%02d"),$_smarty_tpl);?>
</td>
  <th>To</th>
  <td><?php echo smarty_function_html_select_date(array('prefix'=>"from",'start_year'=>"-3",'end_year'=>"+0",'field_order'=>"DMY",'day_value_format'=>"%02d"),$_smarty_tpl);?>
</td>
  <td><input type="submit" name="submit" value="Submit"></td>
	</td>
  </tr>
</table>
<table cellspacing="0"  width="100%" border="1">
  <tr>
    <td></td>
    <td>Edit</td>
    <td>Type</td>
    <td>Particular</td>
    <td>Date</td>
    <td>Rate</td>
    <td>Rate Diff</td>
    <td>Total</td>
    <td>K.G.</td>
    <td>Tax Total Amount</td>
    <td>Tcs Per</td>
    <td>Tcs Amount</td>
    <td>Final Amount</td>
  </tr>
  <?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['clientDetail']->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']++){
?>
     <td><a href="veparidelete.php?vepariId=<?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vepariId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
     <td><a href="vepari.php?vepariId=<?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vepariId'];?>
"><img src="img/edit.png"></a></td>
	 <?php if ($_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['veTransType'] == 'J') {?>
	   <td>Javak </td>
	 <?php } else { ?>
	   <td>Aavak </td>
	 <?php }?>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vParti'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vDate'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vRate'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vDiff'];
echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vDiffAmt'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vTotal'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vkg'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['vTotalAmt'];?>
</td>
     <td><?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['tcsPer']);?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['tcsAmt'];?>
</td>
     <td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['finalAmt'];?>
</td>
  </tr>
  <?php
}
}
if ($__section_sec_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_sec'] = $__section_sec_0_saved;
}
?>
</table>
<br>
<table align="center" border="">
<tr>
	<?php if ($_smarty_tpl->tpl_vars['finalkg']->value < 0) {?>
      <td colspan="3" align="right" style="color:red;">Final Kg : &nbsp;&nbsp; 	<?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['finalKg']->value);?>
</td>
	<?php } else { ?>
	  <td colspan="3" align="right" style="color:green;">Final Kg : &nbsp;&nbsp; <?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['finalKg']->value);?>
</td>
	<?php }?>
</tr>
<tr>
   
	<?php if ($_smarty_tpl->tpl_vars['finalkg']->value < 0) {?>
      <td colspan="3" align="right" style="color:red;">Final Amount : &nbsp;&nbsp; 	<?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['finalAmount']->value);?>
</td>
	<?php } else { ?>
	  <td colspan="3" align="right" style="color:green;">Final Amount : &nbsp;&nbsp; 	<?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['finalAmount']->value);?>
</td>
	<?php }?>
  </tr>
</table>
</form>
<?php
}
}
/* {/block 'body'} */
}
