<?php
/* Smarty version 3.1.30, created on 2025-06-27 13:13:00
  from "/home/hgsonsc1/raajaram.co.in/templates/clientList_new.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_685e4b84ae68c2_19539525',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '765c9239bc42627a99ab4ff083634dc720932992' => 
    array (
      0 => '/home/hgsonsc1/raajaram.co.in/templates/clientList_new.tpl',
      1 => 1751010170,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_685e4b84ae68c2_19539525 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_html_options')) require_once '/home/hgsonsc1/raajaram.co.in/include/smarty/libs/plugins/function.html_options.php';
if (!is_callable('smarty_function_html_select_date')) require_once '/home/hgsonsc1/raajaram.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_526903788685e4b8490e787_01638385', 'head');
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_1752688449685e4b84adcdd9_13547108', '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_526903788685e4b8490e787_01638385 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;
	}
}
$(function() {
	$(".saudaId").click(function() {
	if ($(this).is(":checked")) 
	{
		 var dataString = "saudaId=" +$(this).val();
			$.ajax({
			type: "POST",
			url: "updateStatusCheckedmcx.php",
			data: dataString,
			success:function(data)
			{}
		});
	}
	else
	{
		var dataString = "saudaId=" +$(this).val();
			$.ajax({
			type: "POST",
			url: "updateStatusUnCheckedmcx.php",
			data: dataString,
			success:function(data)
			{
			  
			}
		});
	}
  });
});
<?php echo '</script'; ?>
>
<style>
td{
  text-align: center;
  font-weight: bold;
  vertical-align: super;
  
}
</style>
<?php
}
}
/* {/block 'head'} */
/* {block 'body'} */
class Block_1752688449685e4b84adcdd9_13547108 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;?>
">
<table cellpadding="1" cellspacing="0"  align="center" width=90<?php echo '%>';?>
   <tr>
    <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",'time'=>$_smarty_tpl->tpl_vars['weeklyDate']->value),$_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="90%" border="1" align="center">
  <tr>
    <td>
	  <table class="table" cellspacing="3" width="95%" align="center">
	    <tr><td colspan="9" align="center">Buy</td></tr>
	    <tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		  <!-- <td valign="top">Type</td> -->
		  <td valign="top">Party Name</td>
		  <td valign="top">Branch</td>
		  <td valign="top">Metal Type</td>
		  <td valign="top">Date</td>
		  <td valign="top">Particular</td>
		  <td valign="top">Cash Type</td>
		  <td valign="top">Rate</td>
		  <td valign="top">Fine</td>
		  <td valign="top">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['rojmelArray']->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 style="color:green;">
			 <td><a href="saudadelete.php?saudaId=<?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['saudaId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
			 <td><a href="sauda.php?saudaId=<?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['saudaId'];?>
"><img src="img/edit.png"></a></td>
			 <!-- <?php if ($_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['acc_type'] == 'D') {?> -->
				<!-- <td>Direct</td> -->
			  <!-- <?php } else { ?> -->
				<!-- <td>Khata</td> -->
			  <!-- <?php }?> -->
			 <td nowrap><?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['partyName'];?>
</td>
			 <td nowrap><?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['branch'];?>
</td>
			 <td nowrap><?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['metal_type'];?>
</td>
			 <td nowrap><?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['saudaDate'];?>
</td>
			 <td nowrap><?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['particular'];?>
</td>
			 <?php if ($_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['cash_type'] == 'R') {?>
			 <td nowrap>RTGS</td>
			 <?php } else { ?>
			 <td nowrap>Cash</td>
			 <?php }?>
			 <td nowrap><?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['rate'];?>
</td>
			 <td nowrap><?php echo number_format($_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['fine'],3);?>
</td>
			 <td nowrap><?php echo number_format($_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['amount'],2);?>
</td>
			 <?php if ($_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['mcxcheckStatus'] == 1) {?>
			 <td><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['saudaId'];?>
" class="saudaId" checked></td>
			 <?php } else { ?>
			 <td><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['rojmelArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec']->value['index'] : null)]['saudaId'];?>
" class="saudaId"></td>
			 <?php }?>
		  <?php
}
}
if ($__section_sec_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_sec'] = $__section_sec_0_saved;
}
?>
	  </table>
	  <td align="center">Sell
	  <table class="table" cellspacing="3" width="95%" align="center">
			<tr>
			  <td>&nbsp;</td>
		      <td>&nbsp;</td>
			  <!-- <td>Type</td> -->
			  <td>Party Name</td>
			  <td>Branch</td>
			  <td>Metal Type</td>
			  <td>Date</td>
			  <td>Particular</td>
			  <td valign="top">Cash Type</td>
			  <td valign="top">Rate</td>
			  <td>Fine</td>
			  <td>Amount</td>
			</tr>
			  <?php
$__section_sec1_1_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1'] : false;
$__section_sec1_1_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['javakArray']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_sec1_1_total = $__section_sec1_1_loop;
$_smarty_tpl->tpl_vars['__smarty_section_sec1'] = new Smarty_Variable(array());
if ($__section_sec1_1_total != 0) {
for ($__section_sec1_1_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] = 0; $__section_sec1_1_iteration <= $__section_sec1_1_total; $__section_sec1_1_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']++){
?>
			   <tr style="color:red;">
			     <td><a href="saudadelete.php?saudaId=<?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['saudaId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
			     <td><a href="sauda.php?saudaId=<?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['saudaId'];?>
"><img src="img/edit.png"></a></td>
				 <!-- <?php if ($_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['acc_type'] == 'D') {?> -->
					<!-- <td>Direct</td> -->
				  <!-- <?php } else { ?> -->
					<!-- <td>Khata</td> -->
				  <!-- <?php }?> -->
				 <td nowrap><?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['partyName'];?>
</td>
				 <td nowrap><?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['branch'];?>
</td>
				 <td nowrap><?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['metal_type'];?>
</td>
				 <td nowrap><?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['saudaDate'];?>
</td>
				 <td nowrap><?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['particular'];?>
</td>
				 <?php if ($_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['cash_type'] == 'R') {?>
				 <td nowrap>RTGS</td>
				 <?php } else { ?>
				 <td nowrap>Cash</td>
				<?php }?>
				 <td nowrap><?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['rate'];?>
</td>
				 <td nowrap><?php echo number_format($_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['fine'],3);?>
</td>
				 <td nowrap><?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['amount']);?>
</td>
				 <?php if ($_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['mcxcheckStatus'] == 1) {?>
				 <td><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['saudaId'];?>
" class="saudaId" checked></td>
				 <?php } else { ?>
				 <td><input type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['javakArray']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec1']->value['index'] : null)]['saudaId'];?>
" class="saudaId"></td>
				 <?php }?>
			  </tr>
			  <?php
}
}
if ($__section_sec1_1_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_sec1'] = $__section_sec1_1_saved;
}
?>
		   </table>
		</td>
	</tr>
</table>
<table cellspacing="0"  width="95%" border="1" align="center">
<tr>
	<td>
		<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<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>
	</td>
</table>
<table cellspacing="0"  width="95%" border="1" align="center">
<tr>
	<td>
		<table cellspacing="1">
			<tr><td colspan="9" align="center">Buy</td></tr>
			<tr>
				<td>Delete</td>
				<td>Edit</td>
				<td>Metal Type</td>
				<td>Date</td>
				<td>Acc Type</td>
				<td>Sell Type</td>
				<td>Particular</td>
				<td>Rate</td>
				<td>K.G.</td>
				<td>Total Amount</td>
			</tr>
			<?php
$__section_sec11_2_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11'] : false;
$__section_sec11_2_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['clientDetail']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_sec11_2_total = $__section_sec11_2_loop;
$_smarty_tpl->tpl_vars['__smarty_section_sec11'] = new Smarty_Variable(array());
if ($__section_sec11_2_total != 0) {
for ($__section_sec11_2_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] = 0; $__section_sec11_2_iteration <= $__section_sec11_2_total; $__section_sec11_2_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']++){
?>
			<tr>
				<?php if ($_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->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_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['clientId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
				<td><a href="sauda.php?saudaId=<?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['saudaId'];?>
"><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 }?> -->
			<td><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['metal_type'];?>
</td>
			<td nowrap><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['cDate'];?>
</td>
			<?php if ($_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->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_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->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_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['particular'];?>
</td>
				<td nowrap><?php echo $_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['rate'];?>
</td>
				<td nowrap><?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['kg']);?>
</td>
				<td nowrap><?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['clientDetail']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_sec11']->value['index'] : null)]['totalAmt']);?>
</td>
			</tr>
		  <?php
}
}
if ($__section_sec11_2_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_sec11'] = $__section_sec11_2_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>Date</td>
				<td>Particular</td>
				<td>Metal Type</td>
				<td>K.G.</td>
				<td>Total Amount</td>
			</tr>
			<?php
$__section_secnew_3_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_secnew']) ? $_smarty_tpl->tpl_vars['__smarty_section_secnew'] : false;
$__section_secnew_3_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['clientDet']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_secnew_3_total = $__section_secnew_3_loop;
$_smarty_tpl->tpl_vars['__smarty_section_secnew'] = new Smarty_Variable(array());
if ($__section_secnew_3_total != 0) {
for ($__section_secnew_3_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_secnew']->value['index'] = 0; $__section_secnew_3_iteration <= $__section_secnew_3_total; $__section_secnew_3_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>Javak</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>Aavak</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 nowrap><?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 nowrap><?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 nowrap><?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)]['metal_type'];?>
</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 nowrap><?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 nowrap><?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_3_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_secnew'] = $__section_secnew_3_saved;
}
?>
		</table>
	</td>
</tr>
</table>
<br>
<!-- <table align="center" border=""> -->
<!-- <tr> -->
    <!-- <td>Buy Kg : &nbsp;&nbsp; 	<?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['clientTotalKg']->value);?>
</td> -->
	<!-- <td>Buy Amount : &nbsp;&nbsp; <?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['clientTotalAmt']->value);?>
</td> -->
<!-- </tr> -->
<!-- <tr> -->
    <!-- <td>Rojmel Kg : &nbsp;&nbsp; 	<?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['grossKg']->value);?>
</td> -->
	<!-- <td>Rojmel Amount : &nbsp;&nbsp; <?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['grossAmt']->value);?>
</td> -->
<!-- </tr> -->
<!-- </table> -->
<!-- <br> -->

<table align="center" border="">
<tr>
	<td> Final RTGS Amount : <?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['finalRtAmt']->value);?>
</td>
	<td> Final CASH Amount : <?php echo sprintf("%.0f",$_smarty_tpl->tpl_vars['finalCAmt']->value);?>
</td>
</tr>
<tr>
	<td> CHORSA : <?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['netChorsa']->value);?>
</td>
	<td> SILI : <?php echo sprintf("%.3f",$_smarty_tpl->tpl_vars['netSili']->value);?>
</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'} */
}
