<?php $options = array( '' => '', 'VIRTUAL' => 'VIRTUAL', ); $serverType = PMA\libraries\Util::getServerType(); if ($serverType == 'MariaDB') { $options['PERSISTENT'] = 'PERSISTENT'; } else { $options['STORED'] = 'STORED'; } $expression = ''; if (isset($columnMeta['Expression'])) { $expression = $columnMeta['Expression']; } ?> <select name="field_virtuality[<?= $columnNumber; ?>]" id="field_<?= $columnNumber; ?>_<?=($ci - $ci_offset); ?>" class="virtuality"> <?php foreach ($options as $key => $value): ?> <option value="<?= $key; ?>" <?php if (isset($columnMeta['Extra']) && $key != '' && strpos($columnMeta['Extra'], $key) === 0): ?> selected="selected" <?php endif; ?>> <?= $value; ?> </option> <?php endforeach; ?> </select> <br /> <?php if ($GLOBALS['cfg']['CharEditing'] == 'textarea'): ?> <textarea name="field_expression[<?= $columnNumber; ?>]" cols="15" class="textfield expression"> <?= htmlspecialchars($expression); ?> </textarea> <?php else: ?> <input type="text" name="field_expression[<?= $columnNumber; ?>]" size="12" value="<?= htmlspecialchars($expression); ?>" placeholder="<?= __('Expression'); ?>" class="textfield expression" /> <?php endif; ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
column_adjust_privileges.phtml | File | 716 B | 0644 |
|
column_attribute.phtml | File | 1.01 KB | 0644 |
|
column_attributes.phtml | File | 8.34 KB | 0644 |
|
column_auto_increment.phtml | File | 350 B | 0644 |
|
column_comment.phtml | File | 485 B | 0644 |
|
column_default.phtml | File | 1.82 KB | 0644 |
|
column_definitions_form.phtml | File | 6.59 KB | 0644 |
|
column_extra.phtml | File | 316 B | 0644 |
|
column_indexes.phtml | File | 1.32 KB | 0644 |
|
column_length.phtml | File | 458 B | 0644 |
|
column_name.phtml | File | 1.46 KB | 0644 |
|
column_null.phtml | File | 356 B | 0644 |
|
column_type.phtml | File | 390 B | 0644 |
|
column_virtuality.phtml | File | 1.43 KB | 0644 |
|
mime_type.phtml | File | 897 B | 0644 |
|
move_column.phtml | File | 774 B | 0644 |
|
partitions.phtml | File | 8.25 KB | 0644 |
|
table_fields_definitions.phtml | File | 4.91 KB | 0644 |
|
transformation.phtml | File | 1.4 KB | 0644 |
|
transformation_option.phtml | File | 471 B | 0644 |
|