<?php
/* Smarty version 3.1.30, created on 2022-05-13 16:29:03
  from "/home/vithprat/paribombay.co.in/templates/mcxentry.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_627e39f745ade9_52670146',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2546faa175d819d2cd263051fef9b8bc01fababb' => 
    array (
      0 => '/home/vithprat/paribombay.co.in/templates/mcxentry.tpl',
      1 => 1618576006,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:./main.tpl' => 1,
  ),
),false)) {
function content_627e39f745ade9_52670146 (Smarty_Internal_Template $_smarty_tpl) {
if (!is_callable('smarty_function_html_options')) require_once '/home/vithprat/paribombay.co.in/include/smarty/libs/plugins/function.html_options.php';
if (!is_callable('smarty_function_html_select_date')) require_once '/home/vithprat/paribombay.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_1677487062627e39f742d534_89396955', 'head');
?>

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

<?php echo '<script'; ?>
 type="text/javascript">
function getAmt()
{
  var rate    = $('.rate').val() != '' ? $('.rate').val() : 0;
  var kg      = $('.kg').val() != '' ? $('.kg').val() : 0;
  var total   = 0;
  
  total = (parseFloat(rate) * parseFloat (kg));
  
  $('.total').val(total.toFixed(2));
}							
<?php echo '</script'; ?>
>
<style>
td{
  border: none;
}
</style>
<?php
}
}
/* {/block 'head'} */
/* {block 'body'} */
class Block_398093634627e39f7457e69_85610423 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="mcxId" value="<?php echo $_smarty_tpl->tpl_vars['mcxId']->value;?>
">
<h1 align="center"><font size="5px">Mcx Entry</font></h1>
<table cellpadding="3" cellspacing="0" border="" align="center" width=50<?php echo '%>';?>
   <tr>
    <td align="left">Mcx Name
	  <select name="mcxPartyId" required>
	     <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['mcxPartyId']->value),$_smarty_tpl);?>

	  </select>
	</td>
	<td align="center">Date
	   <?php echo smarty_function_html_select_date(array('prefix'=>"rdt",'start_year'=>"-1",'end_year'=>"+0",'day_value_format'=>"%02d",'field_order'=>"DMY",'time'=>$_smarty_tpl->tpl_vars['transDate']->value),$_smarty_tpl);?>

	</td>
  </tr>
  </table>
  <br>
  <table cellpadding="3" cellspacing="0" border="" align="center" width=30<?php echo '%>';?>
   <tr>
    <td>Type</td>
    <td>
	  <select name="transType" autofocus>
	    <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['typeArrayValue']->value,'output'=>$_smarty_tpl->tpl_vars['typeArrayOutput']->value,'selected'=>$_smarty_tpl->tpl_vars['rojTransType']->value),$_smarty_tpl);?>

	  </select>
	</td>
  </tr>
  <tr>
    <td>Rate</td>
	<td><input type="text" name="rate" class="rate" value="<?php echo $_smarty_tpl->tpl_vars['rate']->value;?>
" onblur="getAmt();"></td>
  </tr>
  <tr>
    <td>Kg</td>
	<td><input type="text" name="kg" class="kg" value="<?php echo $_smarty_tpl->tpl_vars['kg']->value;?>
" onblur="getAmt();"></td>
  </tr>
  <tr>
    <td>Amount</td>
	<td><input type="text" name="totalAmt" class="total" value="<?php echo $_smarty_tpl->tpl_vars['totalAmt']->value;?>
"></td>
  </tr>
  <tr>
  	<td colspan="3" align="center"><input type="submit" value="Submit" name="submit" class="btn"></td>
  </tr>
</table>
</form>
<?php
}
}
/* {/block 'body'} */
}
