</td>
             <td><?php 
        echo $f->select_field_from_object('from_subinventory_id', subinventory::find_all_of_org_id(${$class}->from_org_id), 'from_subinventory_id', 'subinventory', ${$class}->from_subinventory_id, 'from_subinventory_id', 'from_subinventory_id', '', $readonly);
        ?>
         </td>
             <td><?php 
        echo $f->select_field_from_object('from_locator_id', locator::find_all_of_subinventory(${$class}->from_subinventory_id), 'locator_id', 'locator', ${$class}->from_locator_id, 'from_locator_id', 'locator_id from_subinventory_id', '', $readonly);
        ?>
         </td>
             <td><?php 
        echo $f->val_field_d('supplier_name', 'supplier', 'supplier_name', '', 'supplier_name', 'vf_select_supplier_name');
        echo $f->hidden_field_withId('supplier_id', ${$class}->supplier_id);
        ?>
<i class="generic g_select_supplier_name select_popup clickable fa fa-search" data-class_name="supplier"></i></td>
             <td><?php 
        $supplier_site_obj = !empty(${$class}->supplier_id) ? supplier_site::find_by_parent_id(${$class}->supplier_id) : array();
        echo $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, 'supplier_site_id');
        ?>
 </td>
             <td><?php 
        $f->text_field_d('rfid_reference');
        ?>
</td>
            </tr>
            <?php 
        $count = $count + 1;
    }
}
?>
         </tbody>
         <!--                  Showing a blank form for new entry-->
예제 #2
0
              </thead>
              <tbody class="form_data_line_tbody user_supplier_values" >
               <?php 
$count = 0;
foreach ($user_supplier_object as $user_supplier) {
    if (!empty(${$class}->supplier_id)) {
        $sup = new supplier();
        $sup->findBy_id(${$class}->supplier_id);
        ${$class}->supplier_name = $sup->supplier_name;
        $supplier_site = supplier_site::find_by_id(${$class}->supplier_site_id);
        $supplier_site_obj = [];
        if ($supplier_site) {
            array_push($supplier_site_obj, $supplier_site);
            $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, '', 'supplier_site_id', '', $readonly);
        } else {
            $supplier_site_obj = supplier_site::find_by_parent_id(${$class}->supplier_id);
            $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, '', 'supplier_site_id', '', $readonly);
        }
    } else {
        ${$class}->supplier_name = null;
        $supplier_site_name_statement = form::text_field('supplier_site_id', ${$class}->supplier_site_id);
    }
    ?>
         
                 <tr class="user_supplier_line<?php 
    echo $count;
    ?>
">
                  <td>    
                   <ul class="inline_action">
                    <li class="add_row_img"><img  src="<?php