Leitgedanken/#pma/templates/table/search/search_and_replace.phtml
2022-11-21 09:47:28 +01:00

26 lines
770 B
PHTML

<?= __('Find:'); ?>
<input type="text" value="" name="find" required />
<?= __('Replace with:'); ?>
<input type="text" value="" name="replaceWith" />
<?= __('Column:'); ?>
<select name="columnIndex">
<?php for ($i = 0, $nb = count($columnNames); $i < $nb; $i++): ?>
<?php $type = preg_replace('@\(.*@s', '', $columnTypes[$i]); ?>
<?php if ($GLOBALS['PMA_Types']->getTypeClass($type) == 'CHAR'): ?>
<?php $column = $columnNames[$i]; ?>
<option value="<?= $i; ?>">
<?= htmlspecialchars($column); ?>
</option>
<?php endif; ?>
<?php endfor; ?>
</select>
<br>
<?= PMA\libraries\Util::getCheckbox(
'useRegex',
__('Use regular expression'),
false,
false,
'useRegex'
); ?>