<th>Field Name</th> <th>Label</th> <th>Type</th> <th>Control Type</th> <th>Control Value</th> <th>Control UOM</th> <th>Display Weight</th> <th>Active</th> </tr> </thead> <tbody class="form_data_detail_tbody_ln"> <?php $detailCount = 0; if (!empty($ef_refer_value_i)) { $extra_field_object = []; $extra_field_object = sys_extra_field_instance::find_by_referenceKeyValue($ef_refer_key, $ef_refer_value_i); } if (empty($extra_field_object)) { $extra_field_object = array(new sys_extra_field_instance()); } foreach ($extra_field_object as $extra_field) { ?> <tr class="sys_extra_field<?php echo $count . '-' . $detailCount; ?> "> <td> <ul class="inline_action"> <li class="add_row_detail_img3"><i class="fa fa-plus-circle"></i></li> <li class="remove_row_img"><i class="fa fa-minus-circle"></i></li> <li><input type="checkbox" name="detail_id_cb" value="<?php
" class="show document_id sys_extra_field_instance_id"><img src="<?php echo HOME_URL; ?> themes/images/refresh.png"/></a> </li> <li><label>Field Name :</label> <?php $f->text_field_dm('field_name'); ?> </li> <li><label>Description :</label> <?php form::text_field_wid('description'); ?> </li> <li><label>Field Type :</label> <?php echo $f->select_field_from_object('field_type', sys_extra_field_instance::sys_extra_field_instance_type(), 'option_line_code', 'option_line_value', ${$class}->field_type, '', '', 1, $readonly1); ?> </li> <li><label>Display Type :</label> <?php echo $f->select_field_from_array('display_type', sys_extra_field_instance::$display_type_a, ${$class}->display_type); ?> </li> <li><label>Active ? :</label> <?php echo $f->checkBox_field('active_cb', ${$class}->active_cb); ?> </li> </ul> </div>
echo '<ul class="column five_column">'; echo $f->hidden_field('wip_wo_header_id', $routing_line->wip_wo_header_id); echo $f->hidden_field('routing_sequence', $routing_line->routing_sequence); echo $f->hidden_field('wip_wo_routing_line_id', $routing_line->wip_wo_routing_line_id); if (!empty($routing_line->wip_wo_routing_line_id)) { $extra_field_object = sys_extra_field_instance::find_by_referenceKeyValue('wip_wo_routing_line', $routing_line->wip_wo_routing_line_id); } if (empty($extra_field_object)) { $extra_field_object = array(new sys_extra_field_instance()); } foreach ($extra_field_object as $ef) { if (empty($ef->field_name)) { continue; } $ef_table = 'extra_field_' . $ef->sys_field_name; $ef_all_value = sys_extra_field_instance::find_by_fieldName_referenceDetails($ef->sys_field_name, 'wip_wo_routing_line', $routing_line->wip_wo_routing_line_id); if ($ef_all_value) { $ef_value_key = $ef_table . '_value'; $ef_value = $ef_all_value->{$ef_value_key}; } else { $ef_value = null; } $lable = !empty($ef->label) ? $ef->label : $ef->sys_field_name; echo "<li><label>{$lable} : </label>"; switch ($ef->field_type) { case 'LIST': if (!empty($ef->list_values)) { $arr = unserialize($ef->list_values); echo $f->select_field_from_array($ef->sys_field_name, $arr, $ef_value); } else { echo $f->text_field($ef->sys_field_name, $ef_value);