Show type by field name (thanks to Jakub Sochor)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@810 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
473c3a2adb
commit
cb2c957148
|
@ -35,7 +35,7 @@ function adminer_table_name($row) {
|
|||
* @return string
|
||||
*/
|
||||
function adminer_field_name($fields, $key) {
|
||||
return call_adminer('field_name', htmlspecialchars($key), $fields, $key);
|
||||
return call_adminer('field_name', '<span title="' . htmlspecialchars($fields[$key]["full_type"]) . '">' . htmlspecialchars($key) . '</span>', $fields, $key);
|
||||
}
|
||||
|
||||
/** Links after select heading
|
||||
|
|
|
@ -13,7 +13,7 @@ $columns = array(); // selectable columns
|
|||
unset($text_length);
|
||||
foreach ($fields as $key => $field) {
|
||||
if (isset($field["privileges"]["select"])) {
|
||||
$columns[$key] = adminer_field_name($fields, $key); //! numeric $key is problematic in optionlist()
|
||||
$columns[$key] = strip_tags(adminer_field_name($fields, $key)); //! numeric $key is problematic in optionlist()
|
||||
if (preg_match('~text|blob~', $field["type"])) {
|
||||
$text_length = (isset($_GET["text_length"]) ? $_GET["text_length"] : "100");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue