echo '<div class="container">' . K_NEWLINE; echo '<div class="tceformbox">' . K_NEWLINE; echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" enctype="multipart/form-data" id="form_editor">' . K_NEWLINE; echo F_connection_selector($sel_a_obj_id, $sel_b_obj_id, $sel_cbt_id); echo getFormNoscriptSelect('selectrecord'); echo '<div class="row"><hr /></div>' . K_NEWLINE; if (isset($cab_ids) and !empty($cab_ids)) { echo getFormDescriptionLine($l['w_object'] . ' (A)', '', F_get_object_path($cab_a_obj_id, true)); echo getFormDescriptionLine($l['w_object'] . ' (B)', '', F_get_object_path($cab_b_obj_id, true)); echo getFormDescriptionLine($l['w_connection_type'], '', $cbt_name); } else { echo F_object_selector($cab_a_obj_id, 'cab_a_obj_id', $l['w_object'] . ' (A)', false, false); echo F_object_selector($cab_b_obj_id, 'cab_b_obj_id', $l['w_object'] . ' (B)', false, false); echo F_select_connection_type($cab_cbt_id); } echo F_select_color($cab_color, 'cab_color', $l['w_color'], $l['h_cable_color']); echo '<div class="row">' . K_NEWLINE; // show buttons by case if (isset($cab_ids) and !empty($cab_ids)) { echo '<span style="background-color:#999999;">'; echo '<input type="checkbox" name="confirmupdate" id="confirmupdate" value="1" title="confirm → update" />'; F_submit_button('update', $l['w_update'], $l['h_update']); echo '</span>'; F_submit_button('delete', $l['w_delete'], $l['h_delete']); } else { F_submit_button('add', $l['w_add'], $l['h_add']); } F_submit_button('clear', $l['w_clear'], $l['h_clear']); echo '</div>' . K_NEWLINE; echo '<div class="row">' . K_NEWLINE; echo ' ' . K_NEWLINE;
while ($m = F_db_fetch_array($r)) { echo '<option value="' . $m['atb_id'] . '"'; if (F_isObjectAttribute($obt_id, $m['atb_id'])) { echo ' selected="selected"'; $m['atb_name'] = '* ' . $m['atb_name']; } echo '>' . htmlspecialchars($m['atb_name'], ENT_NOQUOTES, $l['a_meta_charset']) . '</option>' . K_NEWLINE; } } else { echo '</select></span></div>' . K_NEWLINE; F_display_db_error(); } echo '</select>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo F_select_color($obt_color, 'obt_color', $l['w_color'], $l['h_object_color']); echo getFormRowCheckBox('obt_virtual', $l['w_virtual'], $l['h_virtual_object'], '', '1', $obt_virtual, false, ''); echo '<div class="row">' . K_NEWLINE; // show buttons by case if (isset($obt_id) and $obt_id > 0) { echo '<span style="background-color:#999999;">'; echo '<input type="checkbox" name="confirmupdate" id="confirmupdate" value="1" title="confirm → update" />'; F_submit_button('update', $l['w_update'], $l['h_update']); echo '</span>'; F_submit_button('delete', $l['w_delete'], $l['h_delete']); //F_submit_button('add', $l['w_add'], $l['h_add']); } else { F_submit_button('add', $l['w_add'], $l['h_add']); } F_submit_button('clear', $l['w_clear'], $l['h_clear']); // comma separated list of required fields