<?php
/* Smarty version 3.1.30, created on 2021-07-20 15:46:39
  from "/home/patelin/vedantrey.in/templates/clientList.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_60f6a287304b66_96108453',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '4824963e89592abf8fc022274616245504689f5f' => 
    array (
      0 => '/home/patelin/vedantrey.in/templates/clientList.tpl',
      1 => 1626771884,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_60f6a287304b66_96108453 (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';
if (!is_callable('smarty_function_html_select_date')) require_once '/home/patelin/vedantrey.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_64403860560f6a28722b052_07088859', 'head');
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_205791637360f6a2872fccb1_56923304', '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_64403860560f6a28722b052_07088859 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;
  
}
.td{
  cellpadding:20px;
  cellspacing:20px;
  
}
</style>
<?php
}
}
/* {/block 'head'} */
/* {block 'body'} */
class Block_205791637360f6a2872fccb1_56923304 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>&nbsp;&nbsp;<a href="clientPdf.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyId']->value;?>
&todate=<?php echo $_smarty_tpl->tpl_vars['toDate']->value;?>
&fromDate=<?php echo $_smarty_tpl->tpl_vars['fromDate']->value;?>
" target="_blank" style="text-decoration:none;"><font size="3px;">Print</font></a>
<a href="cdeleteNew.php?partyId=<?php echo $_smarty_tpl->tpl_vars['partyId']->value;?>
" onclick="return confirm('DO You Want To Submit !!!!!');" target="" style="text-decoration:none;"><font size="3px;">Delete</font></a></h1>
<table cellpadding="3" cellspacing="0"  align="center" width=90<?php echo '%>';?>
   <tr>
    <!-- <td>Open Fine : <?php echo $_smarty_tpl->tpl_vars['openingAmt']->value;?>
</td>
	<td>Open Amount : <?php echo $_smarty_tpl->tpl_vars['openingFine']->value;?>
</td>-->
    <td colspan="2">Client Name
	  <select name="partyId" autofocus>
	     <option value="0">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>
	<th>From</th>
  <td><?php echo smarty_function_html_select_date(array('prefix'=>"to",'start_year'=>"-3",'end_year'=>"+1",'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'=>"+1",'field_order'=>"DMY",'day_value_format'=>"%02d"),$_smarty_tpl);?>
</td>
  <td><input type="submit" name="submit" value="Submit"></td>
  </tr>
</table>
<br>
<table cellspacing="0"  width="98%" border="1" align="center">
<tr>
	<td>
		<table cellspacing="14">
			<tr><td colspan="14" align="center">Buy</td></tr>
			<tr>
				<td>Delete</td>
				<td>Edit</td>
				<td>Acc Type</td>
				<td>Sell Type</td>
				<td>Particular</td>
				<td>Date</td>
				<td>Rate</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']++){
?>
			<tr>
				<?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)]['rojmelId'] == 0) {?>
				<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 } else { ?>
				<td></td>
				<td></td>
				<?php }?>
				
			<!-- <?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' && $_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)]['rojmelId'] == 0) {?> -->
			   <!-- <td> Buy </td> -->
			<!-- <?php } elseif ($_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'] == 'A' && $_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)]['rojmelId'] == 0) {?> -->
			   <!-- <td> Sell </td> -->
			<!-- <?php } elseif ($_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'] == 'A' && $_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)]['rojmelId'] > 0) {?> -->
				<!-- <td> Aavak </td> -->
			<!-- <?php } else { ?> -->
				<!-- <td> Javak </td>	 -->
			<!-- <?php }?> -->
			<?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)]['sell_type'] == 'D') {?>
				<td>Direct</td>
			 <?php } else { ?>
				<td>Khata</td>
			<?php }?>
			<?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>Sell</td>
			 <?php } else { ?>
			   <td>Buy</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 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)]['kg']);?>
</td>
				<td><?php echo sprintf("%.0f",$_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>
	</td>
	<td>
		<table cellspacing="14">
			<tr><td colspan="14" align="center">Rojmel Entry</td></tr>
			<tr>
				<!-- <td>Delete</td> -->
				<!-- <td>Edit</td> -->
				<td>Type</td>
				<td>Particular</td>
				<td>Date</td>
				<td>K.G.</td>
				<td>Total Amount</td>
			</tr>
			<?php
$__section_secnew_1_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew'] : false;
$__section_secnew_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['clientDet']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_secnew_1_total = $__section_secnew_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_secnew'] = new Smarty_Variable(array());
if ($__section_secnew_1_total != 0) {
for ($__section_secnew_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] = 0; $__section_secnew_1_iteration <= $__section_secnew_1_total; $__section_secnew_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']++){
?>
			<tr>
				<!-- <?php if ($_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['rojmelId'] == 0) {?> -->
				<!-- <td><a href="clientdelete.php?clientId=<?php echo $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->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['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['clientId'];?>
"><img src="img/edit.png"></a></td> -->
				<!-- <?php } else { ?> -->
				<!-- <td></td> -->
				<!-- <td></td> -->
				<!-- <?php }?> -->
			<!-- <?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' && $_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)]['rojmelId'] == 0) {?> -->
			   <!-- <td> Buy </td> -->
			<!-- <?php } elseif ($_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'] == 'A' && $_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)]['rojmelId'] == 0) {?> -->
			   <!-- <td> Sell </td> -->
			<!-- <?php } elseif ($_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'] == 'A' && $_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)]['rojmelId'] > 0) {?> -->
				<!-- <td> Aavak </td> -->
			<!-- <?php } else { ?> -->
				<!-- <td> Javak </td>	 -->
			<!-- <?php }?> -->
				<!-- <?php if ($_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['sell_type'] == 'D') {?> -->
				 <!-- <td>Direct</td> -->
				 <!-- <?php } else { ?> -->
				 <!-- <td>Khata</td> -->
				<!-- <?php }?> -->
				<?php if ($_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['cliTransType'] == 'J' && $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['is_opening'] == '1') {?>
					<td>Baki</td>
				<?php } elseif ($_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['cliTransType'] == 'A' && $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['is_opening'] == '1') {?>
					<td>Jama</td>
				<?php } elseif ($_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['cliTransType'] == 'A' && $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['is_opening'] == '0') {?>
					<td>Aavak</td>
				<?php } else { ?>
					<td>Javak</td>
				<?php }?>
				<td><?php echo $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['particular'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['cDate'];?>
</td>
				<!-- <td><?php echo $_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['rate'];?>
</td> -->
				<td><?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['kg']);?>
</td>
				<td><?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['clientDet']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] : null)]['totalAmt']);?>
</td>
			</tr>
		  <?php
}
}
if ($__section_secnew_1_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_secnew'] = $__section_secnew_1_saved;
}
?>
		</table>
	</td>
</tr>
</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("%.0f",$_smarty_tpl->tpl_vars['finalAmount']->value);?>
</td>
	<?php } else { ?>
	  <td colspan="3" align="right" style="color:green;">Final Amount : &nbsp;&nbsp; 	<?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['finalAmount']->value);?>
</td>
	<?php }?>
  </tr>
</table>
</form>
<?php
}
}
/* {/block 'body'} */
}
