</tr> </thead> <tbody class="form_data_line_tbody"> <?php $count = 0; if (!empty($search_result)) { foreach ($search_result as $inv_reservation) { if (!empty($$class->onhand_id)) { $onhand_i = onhand_v::find_by_id($$class->onhand_id); $$class->onhand = $onhand_i->onhand; $$class->reservable_onhand = $onhand_i->reservable_onhand; }else{ $$class->onhand = $$class->reservable_onhand = null; } if (!empty($$class->inv_serial_number_id)) { $inv_serial_number_i = inv_serial_number::find_by_id($$class->inv_serial_number_id); $$class->serial_number = $inv_serial_number_i->serial_number; }else{ $$class->serial_number = null; } ?> <tr class="inv_reservation_line<?php echo $count ?>"> <td><?php $f->seq_field_d($count); ?></td> <td><?php echo $f->select_field_from_array('supply_type', inv_reservation::$supply_type_a, $$class->supply_type); ?></td> <td><?php echo $f->select_field_from_object('subinventory_id', subinventory::find_all_of_org_id($$class->org_id), 'subinventory_id', 'subinventory' ,$$class->subinventory_id, '' , 'subinventory_id subinventory'); ?> </td> <td><?php echo $f->select_field_from_object('locator_id', locator::find_all_of_subinventory($$class->subinventory_id), 'locator_id', 'locator' , $$class->locator_id, '', 'locator_id locator'); ?> </td> <td><?php echo $f->val_field_wid('serial_number', 'inv_serial_number', 'serial_number', 'item_id_m'); echo $f->hidden_field('inv_serial_number_id', $$class->inv_serial_number_id); echo $f->hidden_field_withCLass('org_id', '', 'popup_value'); echo $f->hidden_field_withCLass('item_id_m', '', 'popup_value item_id_m');
?> </th> <th><?php echo gettext('End Date'); ?> </th> </tr> </thead> <tbody class="form_data_detail_tbody"> <?php $detailCount = 0; foreach ($hd_service_contract_detail_object as $hd_service_contract_detail) { $class_third = 'hd_service_contract_detail'; ${$class_third} =& $hd_service_contract_detail; ${$class_third}->item_number = !empty(${$class_third}->item_id_m) ? item::find_by_item_id_m(${$class_third}->item_id_m)->item_number : ''; ${$class_third}->serial_number = !empty(${$class_third}->inv_serial_number_id) ? inv_serial_number::find_by_id(${$class_third}->inv_serial_number_id)->serial_number : ''; ?> <tr class="hd_service_contract_detail<?php echo $count . '-' . $detailCount; ?> "> <td> <?php echo ino_inline_action(${$class_third}->hd_service_contract_detail_id, array('hd_service_contract_header_id' => ${$class}->hd_service_contract_header_id, 'hd_service_contract_line_id' => ${$class_second}->hd_service_contract_line_id), 'add_row_detail_img', 'detail_id_cb'); ?> </td> <td><?php $f->seq_field_detail_d($detailCount); ?> </td> <td><?php