<form method="post" action="tbl_addfield.php" id="addColumns" name="addColumns" onsubmit="return checkFormElementInRange(this, 'num_fields', '<?= str_replace('\'', '\\\'', __('You have to add at least one column.')); ?>', 1)"> <?= PMA_URL_getHiddenInputs($GLOBALS['db'], $GLOBALS['table']); ?> <?php if (PMA\libraries\Util::showIcons('ActionLinksMode')): ?> <?= PMA\libraries\Util::getImage('b_insrow.png', __('Add column')); ?> <?php endif; ?> <?php $num_fields = '<input type="number" name="num_fields" value="1" onfocus="this.select()" min="1" required />'; ?> <?= sprintf(__('Add %s column(s)'), $num_fields); ?> <input type="hidden" name="field_where" value="after"/> <!-- I tried displaying the drop-down inside the label but with Firefox the drop-down was blinking --> <select name="after_field" onchange="checkFirst()"> <option value="first" data-pos = "first"> <?= __('at beginning of table'); ?> </option> <?php $cols_count = count($columns_list); foreach ($columns_list as $one_column_name): ?> <?php if (--$cols_count == 0): ?> <option value="<?= htmlspecialchars($one_column_name); ?>" selected="selected"> <?php else: ?> <option value="<?= htmlspecialchars($one_column_name); ?>"> <?php endif; ?> <?= sprintf(__('after %s'), htmlspecialchars($one_column_name)); ?> </option> <?php endforeach; ?> </select> <input type="submit" value="<?= __('Go'); ?>" /> </form>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
action_row_in_structure_table.phtml | File | 1.12 KB | 0644 |
|
actions_in_table_structure.phtml | File | 5.99 KB | 0644 |
|
add_column.phtml | File | 1.54 KB | 0644 |
|
check_all_table_column.phtml | File | 2.48 KB | 0644 |
|
display_partitions.phtml | File | 7.45 KB | 0644 |
|
display_structure.phtml | File | 9.15 KB | 0644 |
|
display_table_stats.phtml | File | 3.74 KB | 0644 |
|
move_columns_dialog.phtml | File | 333 B | 0644 |
|
optional_action_links.phtml | File | 1.38 KB | 0644 |
|
partition_definition_form.phtml | File | 463 B | 0644 |
|
row_stats_table.phtml | File | 4.08 KB | 0644 |
|
table_structure_header.phtml | File | 862 B | 0644 |
|
table_structure_row.phtml | File | 2.47 KB | 0644 |
|