Server IP : 23.254.227.96 / Your IP : 216.73.216.41 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/cwpsrv/var/services/pma_01-03-2025.bak/templates/table/search/ |
Upload File : |
<?php // Get inputbox based on different column types // (Foreign key, geometrical, enum) if ($_foreigners && PMA_searchColumnInForeigners($_foreigners, $column_name)): ?> <?php if (is_array($foreignData['disp_row'])): ?> <select name="criteriaValues[<?= $column_index; ?>]" id="<?= $column_id , $column_index ?>"> <?= PMA_foreignDropdown( $foreignData['disp_row'], $foreignData['foreign_field'], $foreignData['foreign_display'], '', $foreignMaxLimit ) ?> </select> <?php elseif ($foreignData['foreign_link'] == true): ?> <input type="text" id="<?= $column_id , $column_index; ?>" name="criteriaValues[<?= $column_index; ?>]" id="field_<?= md5($column_name); ?>[<?= $column_index; ?>]" class="textfield" <?php if (isset($criteriaValues[$column_index]) && is_string($criteriaValues[$column_index]) ): ?> value="<?= htmlspecialchars($criteriaValues[$column_index]); ?>" <?php endif; ?> /> <a class="ajax browse_foreign" href="<?= ('browse_foreigners.php') , PMA\libraries\URL::getCommon(array('db' => $db, 'table' => $table)) , ('&field=') , urlencode($column_name) , ('&fieldkey=') , $column_index , ('&fromsearch=1') ?>"> <?= str_replace("'", "\\'", $titles['Browse']); ?> </a> <?php endif; ?> <?php elseif (in_array($column_type, PMA\libraries\Util::getGISDatatypes())): ?> <input type="text" name="criteriaValues[<?= $column_index; ?>]" size="40" class="textfield" id="field_<?= $column_index; ?>" /> <?php if ($in_fbs): ?> <?php $edit_url = 'gis_data_editor.php' . PMA\libraries\URL::getCommon(); $edit_str = PMA\libraries\Util::getIcon('b_edit.png', __('Edit/Insert')); ?> <span class="open_search_gis_editor"> <?= PMA\libraries\Util::linkOrButton( $edit_url, $edit_str, array(), false, false, '_blank' ); ?> </span> <?php endif; ?> <?php elseif (strncasecmp($column_type, 'enum', 4) == 0 || (strncasecmp($column_type, 'set', 3) == 0 && $in_zoom_search_edit) ): ?> <?php $in_zoom_search_edit = false; $column_type = htmlspecialchars($column_type); $value = explode(', ', str_replace("'", '', mb_substr($column_type, 5, -1))); $cnt_value = count($value); /* * Enum in edit mode --> dropdown * Enum in search mode --> multiselect * Set in edit mode --> multiselect * Set in search mode --> input (skipped here, so the 'else' * section would handle it) */ ?> <?php if ((strncasecmp($column_type, 'enum', 4) && ! $in_zoom_search_edit) || (strncasecmp($column_type, 'set', 3) && $in_zoom_search_edit) ): ?> <select name="criteriaValues[<?= $column_index; ?>]" id="<?= $column_id , $column_index; ?>"> <?php else: ?> <select name="criteriaValues[<?= $column_index; ?>]" id="<?= $column_id , $column_index; ?>" multiple="multiple" size="<?= min(3, $cnt_value); ?>"> <?php endif; ?> <!-- Add select options--> <?php for ($j = 0; $j < $cnt_value; $j++): ?> <?php if (isset($criteriaValues[$column_index]) && is_array($criteriaValues[$column_index]) && in_array($value[$j], $criteriaValues[$column_index]) ): ?> <option value="<?= $value[$j]; ?>" selected> <?php echo $value[$j]; ?> </option> <?php else: ?> <option value="<?= $value[$j]; ?>"> <?php echo $value[$j]; ?> </option> <?php endif; ?> <?php endfor; ?> </select> <?php else: ?> <!-- other cases--> <?php $the_class = 'textfield'; if ($column_type == 'date') { $the_class .= ' datefield'; } elseif ($column_type == 'datetime' || substr($column_type, 0, 9) == 'timestamp' ) { $the_class .= ' datetimefield'; } elseif (substr($column_type, 0, 3) == 'bit') { $the_class .= ' bit'; } ?> <input type="text" name="criteriaValues[<?= $column_index; ?>]" size="40" class="<?= $the_class; ?>" id="<?= $column_id , $column_index; ?>" <?php if (isset($criteriaValues[$column_index]) && is_string($criteriaValues[$column_index]) ): ?> value="<?= htmlspecialchars($criteriaValues[$column_index]); ?>" <?php endif; ?>/> <?php endif; ?>