width = '98%'; $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->style[2] = 'font-weight: bold'; $table->size = array (); $table->size[0] = '20%'; $table->data = array (); $table->colspan[0][1] = 3; $table->data[0][0] = __('Name'); $table->data[0][2] = html_print_input_text ('name', $name, '', 35, 255, true); $table->colspan[1][1] = 3; $table->data[1][0] = __('Command'); $table->data[1][0] .= ui_print_help_icon ('alert_macros', true); $table->data[1][1] = html_print_input_text ('command', $command, '', 80, 255, true); $table->colspan[2][1] = 3; $table->data[2][0] = __('Description'); $table->data[2][1] = html_print_textarea ('description', 10, 30, $description, '', true); for ($i=1; $i<=10; $i++) { $table->data['field'.$i][0] = sprintf(__('Field %s description'), $i); // Only show help on first row if ($i == 1) { $table->data['field'.$i][0] .= ui_print_help_icon ('alert_fields_description', true); } if (!empty($fields_descriptions)) { $field_description = $fields_descriptions[$i-1]; } else { $field_description = ''; } $table->data['field'.$i][1] = html_print_input_text ('field'.$i.'_description', $field_description, '', 35, 255, true); $table->data['field'.$i][2] = sprintf(__('Field %s values'), $i); // Only show help on first row if ($i == 1) { $table->data['field'.$i][2] .= ui_print_help_icon ('alert_fields_values', true); } if (!empty($fields_values)) { $field_values = $fields_values[$i-1]; } else { $field_values = ''; } $table->data['field'.$i][3] = html_print_input_text ('field'.$i.'_values', $field_values, '', 65, 255, true); } echo '
'; html_print_table ($table); echo '
'; if ($id) { html_print_input_hidden ('id', $id); html_print_input_hidden ('update_command', 1); html_print_submit_button (__('Update'), 'create', false, 'class="sub upd"'); } else { html_print_input_hidden ('create_command', 1); html_print_submit_button (__('Create'), 'create', false, 'class="sub wand"'); } echo '
'; echo '
'; enterprise_hook('close_meta_frame'); ?>