| Server IP : 188.114.96.2 / Your IP : 104.23.197.231 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_bak/templates/table/search/ |
Upload File : |
<?php
$odd_row = true;
$type = $collation = $func = $value = array();
/**
* Get already set search criteria (if any)
*/
// Displays column rows for search criteria input
for ($i = 0; $i < 4; $i++): ?>
<?php
// After X-Axis and Y-Axis column rows, display additional criteria
// option
if ($i == 2): ?>
<tr>
<td>
<?= __("Additional search criteria"); ?>
</td>
</tr>
<?php endif; ?>
<tr class="noclick <?= ($odd_row ? 'odd' : 'even'); ?>">
<?php $odd_row = ! $odd_row; ?>
<!-- Select options for column names -->
<th>
<select name="criteriaColumnNames[]" id="tableid_<?= $i; ?>" >
<option value="pma_null">
<?= __('None'); ?>
</option>
<?php for ($j = 0, $nb = count($columnNames); $j < $nb; $j++): ?>
<?php if (isset($_POST['criteriaColumnNames'][$i])
&& $_POST['criteriaColumnNames'][$i] == htmlspecialchars($columnNames[$j])
): ?>
<option value="<?= htmlspecialchars($columnNames[$j]); ?>" selected="selected">
<?= htmlspecialchars($columnNames[$j]); ?>
</option>
<?php else: ?>
<option value="<?= htmlspecialchars($columnNames[$j]); ?>">
<?= htmlspecialchars($columnNames[$j]); ?>
</option>
<?php endif; ?>
<?php endfor; ?>
</select>
</th>
<?php
if (isset($_POST['criteriaColumnNames'])
&& $_POST['criteriaColumnNames'][$i] != 'pma_null'
) {
$key = array_search(
$_POST['criteriaColumnNames'][$i],
$columnNames
);
$properties = $self->getColumnProperties($i, $key);
$type[$i] = $properties['type'];
$collation[$i] = $properties['collation'];
$func[$i] = $properties['func'];
$value[$i] = $properties['value'];
} ?>
<!-- Column type -->
<td dir="ltr">
<?= (isset($type[$i]) ? htmlspecialchars($type[$i]) : ''); ?>
</td>
<!-- Column Collation -->
<td>
<?= (isset($collation[$i]) ? $collation[$i] : ''); ?>
</td>
<!-- Select options for column operators -->
<td>
<?= (isset($func[$i]) ? $func[$i] : ''); ?>
</td>
<!-- Inputbox for search criteria value -->
<td>
<?= (isset($value[$i]) ? $value[$i] : ''); ?>
</td>
</tr>
<!-- Displays hidden fields -->
<tr>
<td>
<input type="hidden"
name="criteriaColumnTypes[<?= $i; ?>]"
id="types_<?= $i; ?>"
<?php if (isset($_POST['criteriaColumnTypes'][$i])): ?>
value="<?= htmlspecialchars($_POST['criteriaColumnTypes'][$i]); ?>"
<?php endif; ?> />
<input type="hidden"
name="criteriaColumnCollations[<?= $i; ?>]"
id="collations_<?= $i; ?>" />
</td>
</tr>
<?php endfor; ?>