| Server IP : 188.114.96.2 / Your IP : 104.23.197.230 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/phpMyAdmin-5.0.2-all-languages/templates/table/structure/ |
Upload File : |
<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>