<?php
/* Smarty version 3.1.30, created on 2025-05-04 18:53:22
  from "/home/hgsonsc1/raajaram.co.in/templates/mcx.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_68176a4aca5218_71338562',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '09cf231d57b450b003b244c64d5bbfe038c56d03' => 
    array (
      0 => '/home/hgsonsc1/raajaram.co.in/templates/mcx.tpl',
      1 => 1746364933,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_68176a4aca5218_71338562 (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';
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

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

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_121710406868176a4aca1bb4_07665569', '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_108166265568176a4ac04a29_82739486 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() {
	$(".mcxId").click(function() {
	if ($(this).is(":checked")) 
	{
		 var dataString = "mcxId=" +$(this).val();
			$.ajax({
			type: "POST",
			url: "updateStatusCheckedmcx.php",
			data: dataString,
			success:function(data)
			{}
		});
	}
	else
	{
		var dataString = "mcxId=" +$(this).val();
			$.ajax({
			type: "POST",
			url: "updateStatusUnCheckedmcx.php",
			data: dataString,
			success:function(data)
			{
			  
			}
		});
	}
  });
});
<?php echo '</script'; ?>
>
<style>
td{
  text-align: center;
  font-weight: bold;
}
</style>
<?php
}
}
/* {/block 'head'} */
/* {block 'body'} */
class Block_121710406868176a4aca1bb4_07665569 extends Smarty_Internal_Block
{
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>

<form name="partyForm"action="<?php echo $_SERVER['PHP_SELF'];?>
" method="POST" onsubmit="return confirm('DO You Want To Submit !!!!!')";>
<h1 align="center"><font size="5px">Bom List</font>&nbsp;<font size="3px"></h1>
<table align="center" width=20<?php echo '%>';?>
<tr>
	<td>Name</td>
	<td>
	  <select name="mcxparId" onchange="this.form.submit();" autofocus>
		<option>Select Name</option>
	    <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['mcxArray']->value['partyId'],'output'=>$_smarty_tpl->tpl_vars['mcxArray']->value['partyName'],'selected'=>$_smarty_tpl->tpl_vars['mcxparId']->value),$_smarty_tpl);?>

	  </select>
	</td>
</tr>
</table>
<table cellpadding="4" cellspacing="0" border="" align="center" width=90<?php echo '%>';?>
  <tr>
    <td>Edit</td>
    <td>Delete</td>
    <td>Type</td>
	<td>Name</td>
    <td>Date</td>
    <td>Rate</td>
    <td>K.G.</td>
	<!-- <td>Brokrage</td> -->
    <td>Total Amount</td>
	<!-- <td></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']++){
?>
   <?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)]['transType'] == 'A') {?>
   <tr style="color:red;">
   <td><a href="mcxentry.php?mcxId=<?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)]['mcxId'];?>
"><img src="img/edit.png"></a></td>
   <td><a href="mcxdelete.php?mcxId=<?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)]['mcxId'];?>
" onclick="return confirm('DO You Want To Delete !!!!!')";><img src="img/delete.png"></a></td>
     <td>Sell</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)]['McxName'];?>
</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)]['transDate'];?>
</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)]['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)]['brokrage'];?>
</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)]['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)]['mcxcheckStatus'] == 1) {?>
	 <td><input type="checkbox" value="<?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)]['mcxId'];?>
" class="mcxId" checked></td>
	 <?php } else { ?>
	 <td><input type="checkbox" value="<?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)]['mcxId'];?>
" class="mcxId"></td>
	 <?php }?>-->
  </tr>
  <?php } else { ?>
     <tr style="color:green;">
	     <td><a href="mcxentry.php?mcxId=<?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)]['mcxId'];?>
"><img src="img/edit.png"></a></td>
	     <td><a href="mcxdelete.php?mcxId=<?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)]['mcxId'];?>
"><img src="img/delete.png"></a></td>
		 <td>Buy</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)]['McxName'];?>
</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)]['transDate'];?>
</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)]['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)]['brokrage'];?>
</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)]['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)]['mcxcheckStatus'] == 1) {?>
		 <td><input type="checkbox" value="<?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)]['mcxId'];?>
" class="mcxId" checked></td>
		 <?php } else { ?>
		 <td><input type="checkbox" value="<?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)]['mcxId'];?>
" class="mcxId"></td>
		 <?php }?>-->
     </tr>
  <?php }?>
  <?php
}
}
if ($__section_sec_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_sec'] = $__section_sec_0_saved;
}
?>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
	<td><?php echo $_smarty_tpl->tpl_vars['finalRasAmt']->value;?>
</td>
	<?php if ($_smarty_tpl->tpl_vars['finalKg']->value < 0) {?>
		<td style="color:green;"><?php echo $_smarty_tpl->tpl_vars['finalKg']->value;?>
</td>
	<?php } else { ?>
		<td style="color:red;"><?php echo $_smarty_tpl->tpl_vars['finalKg']->value;?>
</td>
	<?php }?>
	<td><?php echo $_smarty_tpl->tpl_vars['finalAmt']->value;?>
</td>
  </tr>
</table>
<?php
}
}
/* {/block 'body'} */
}
