$id_field)); $name = $field['name']; $display_on_front = $field['display_on_front']; print_page_header (__("Update agent custom field"), "images/note.png", false, "", true, ""); } else { print_page_header (__("Create agent custom field"), "images/note.png", false, "", true, ""); } $table->width = '450px'; $table->data = array (); $table->data[0][0] = __('Name'); $table->data[0][1] = print_input_text ('name', $name, '', 35, 100, true); $table->data[1][0] = __('Display on front').print_help_tip (__('The fields with display on front enabled will be displayed into the agent details'), true); $table->data[1][1] = print_checkbox ('display_on_front', 1, $display_on_front, true); echo '
'; print_table ($table); echo '
'; if ($id_field) { print_input_hidden ('update_field', 1); print_input_hidden ('id_field', $id_field); print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"'); } else { print_input_hidden ('create_field', 1); print_submit_button (__('Create'), 'crtbutton', false, 'class="sub wand"'); } echo '
'; echo '
'; ?>