| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/phpMyAdmin/templates/columns_definitions/ |
Upload File : |
<?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; ?>