<?php
/* Smarty version 3.1.30, created on 2023-03-14 15:31:26
  from "/home/vithprat/leadspro.co.in/templates/clientListAll.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_641045f6488dc1_98952680',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '758bf57db415dc85821bd365675a8a456a798dd7' => 
    array (
      0 => '/home/vithprat/leadspro.co.in/templates/clientListAll.tpl',
      1 => 1522045912,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_641045f6488dc1_98952680 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_html_select_date')) require_once '/home/vithprat/leadspro.co.in/include/smarty/libs/plugins/function.html_select_date.php';
if (!is_callable('smarty_function_html_options')) require_once '/home/vithprat/leadspro.co.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_1674860597641045f630ed72_28372610', 'head');
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_166743488641045f6484089_89049910', 'body');
?>
	<?php $_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_1674860597641045f630ed72_28372610 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_166743488641045f6484089_89049910 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">Client List</font>
<table cellpadding="3" cellspacing="0"  align="center" width=90<?php echo '%>';?>
   <tr>
    <td class="main">To
	  <?php echo smarty_function_html_select_date(array('prefix'=>"toDt",'start_year'=>"-1",'end_year'=>"+0",'day_value_format'=>"%02d",'field_order'=>"DMY"),$_smarty_tpl);?>

	</td>
	<td class="main">From
	  <?php echo smarty_function_html_select_date(array('prefix'=>"fromDt",'start_year'=>"-1",'end_year'=>"+0",'day_value_format'=>"%02d",'field_order'=>"DMY"),$_smarty_tpl);?>

	</td> 
    <td colspan="9">Client Name
	  <select name="partyId" onchange="this.form.submit();" autofocus>
	     <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>
	</td>
	<td class="main">
	  <input type="submit" name="submit" value="Submit">
	</td>
  </tr>
</table>
<table cellspacing="0"  width="100%" border="1">
  <tr>
    <td>Delete</td>
    <td>Edit</td>
    <td>Type</td>
    <td>Particular</td>
    <td>Date</td>
    <td>Rate</td>
    <td>Total</td>
    <td>K.G.</td>
    <td>Total 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="clientdelete.php?clientId=<?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)]['clientId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
     <td><a href="client.php?clientId=<?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)]['clientId'];?>
"><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)]['cliTransType'] == '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)]['particular'];?>
</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)]['cDate'];?>
</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)]['rate'];?>
</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)]['total'];?>
</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)]['kg'];?>
</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)]['totalAmt'];?>
</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 $_smarty_tpl->tpl_vars['finalKg']->value;?>
</td>
	<?php } else { ?>
	  <td colspan="3" align="right" style="color:green;">Final Kg : &nbsp;&nbsp; <?php echo $_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 $_smarty_tpl->tpl_vars['finalAmount']->value;?>
</td>
	<?php } else { ?>
	  <td colspan="3" align="right" style="color:green;">Final Amount : &nbsp;&nbsp; 	<?php echo $_smarty_tpl->tpl_vars['finalAmount']->value;?>
</td>
	<?php }?>
  </tr>
</table>
</form>
<?php
}
}
/* {/block 'body'} */
}
