<form action=""  method="post" id="inv_transaction"  name="inv_transaction">
 <?php echo (!empty($hidden_stmt)) ? $hidden_stmt : ""; ?> 
 <!--create empty form or a single id when search is not clicked and the id is referred from other page -->
 <span class="heading"><?php echo gettext('Inventory Transaction ') ?></span> 
 <div class='tabContainer'>
  <ul class='column header_field'>
   <li>
    <?php $f->l_select_field_from_object('org_id', org::find_all_inventory(), 'org_id', 'org', $$class->org_id, 'org_id', '', 1, $readonly1); ?>  </li>
   <li>
    <?php
    echo!(empty($id_array)) ? $f->l_select_field_from_object('transaction_type_id', transaction_type::find_some_byIdArray($id_array), 'transaction_type_id', 'transaction_type', $$class->transaction_type_id, 'transaction_type_id', '', 1, $readonly1) :
     $f->l_select_field_from_object('transaction_type_id', transaction_type::find_all(), 'transaction_type_id', 'transaction_type', $$class->transaction_type_id, 'transaction_type_id', '', 1, $readonly1);
    ?>
   </li>
  </ul>
 </div>

 <div id ="form_line" class="form_line"><span class="heading">Transaction Details </span>
  <div id="tabsLine">
   <ul class="tabMain">
    <li><a href="#tabsLine-1"><?php echo gettext('General Info') ?></a></li>
    <li><a href="#tabsLine-2"><?php echo gettext('Transfer') ?> </a></li>
    <li><a href="#tabsLine-3"><?php echo gettext('Reference') ?> </a></li>
    <li><a href="#tabsLine-4"><?php echo gettext('Finance') ?></a></li>
    <li><a href="#tabsLine-5"><?php echo gettext('Lot & Serial') ?></a></li>
   </ul>
   <div class="tabContainer"> 
    <div id="tabsLine-1" class="tabContent">
     <table class="form_line_data_table">
      <thead> 
       <tr>
 
      <!--start of hidden data-->
      <!--    End of place for showing error messages-->
      <div id ="form_header">
       <form action=""  method="post" id="inv_transaction"  name="inv_transaction">
        <!--create empty form or a single id when search is not clicked and the id is referred from other page -->
        <span class="heading">Inventory Transaction </span> 
        <ul id="form_top_ul" class="inRow asperWidth headerBgColor">
         <li><lable>Inventory Org </lable>
         <?php 
echo form::select_field_from_object('org_id', org::find_all_inventory(), 'org_id', 'org', ${$class}->org_id, 'org_id', $readonly);
?>
         </li>
         <li><lable>Transaction Type </lable>
         <?php 
echo !empty($id_array) ? form::select_field_from_object('transaction_type_id', transaction_type::find_some_byIdArray($id_array), 'transaction_type_id', 'transaction_type', ${$class}->transaction_type_id, 'transaction_type_id', $readonly) : form::select_field_from_object('transaction_type_id', transaction_type::find_all(), 'transaction_type_id', 'transaction_type', ${$class}->transaction_type_id, 'transaction_type_id', 1);
?>
         </li>
        </ul>
        <div id ="form_line" class="form_line"><span class="heading">Transaction Details </span>
         <div id="tabsLine">
          <ul class="tabMain">
           <li><a href="#tabsLine-1">General Info</a></li>
           <li><a href="#tabsLine-2">Transfer </a></li>
           <li><a href="#tabsLine-3">Reference </a></li>
           <li><a href="#tabsLine-4">Finance </a></li>
           <li><a href="#tabsLine-5">Transaction </a></li>
          </ul>
          <div class="tabContainer"> 
           <div id="tabsLine-1" class="tabContent">
            <table class="form_table">