Autodisplay long table names in tables filter plugin
This commit is contained in:
parent
69d49e30c5
commit
4b4fa16a37
|
@ -855,7 +855,7 @@ DROP PROCEDURE adminer_alter;
|
||||||
* @return null
|
* @return null
|
||||||
*/
|
*/
|
||||||
function tablesPrint($tables) {
|
function tablesPrint($tables) {
|
||||||
echo '<p id="tables" onmouseover="menuOver(this);" onmouseout="menuOut(this);">' . "\n";
|
echo "<p id='tables' onmouseover='menuOver(this);' onmouseout='menuOut(this);'>\n";
|
||||||
foreach ($tables as $table => $type) {
|
foreach ($tables as $table => $type) {
|
||||||
echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table) . ">" . lang('select') . "</a> ";
|
echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table) . ">" . lang('select') . "</a> ";
|
||||||
echo '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold($_GET["table"] == $table) . " title='" . lang('Show structure') . "'>" . $this->tableName(array("Name" => $table)) . "</a><br>\n"; //! Adminer::tableName may work with full table status
|
echo '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold($_GET["table"] == $table) . " title='" . lang('Show structure') . "'>" . $this->tableName(array("Name" => $table)) . "</a><br>\n"; //! Adminer::tableName may work with full table status
|
||||||
|
|
|
@ -559,7 +559,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||||
}
|
}
|
||||||
|
|
||||||
function tablesPrint($tables) {
|
function tablesPrint($tables) {
|
||||||
echo '<p id="tables" onmouseover="menuOver(this);" onmouseout="menuOut(this);">' . "\n";
|
echo "<p id='tables' onmouseover='menuOver(this);' onmouseout='menuOut(this);'>\n";
|
||||||
foreach ($tables as $row) {
|
foreach ($tables as $row) {
|
||||||
$name = $this->tableName($row);
|
$name = $this->tableName($row);
|
||||||
if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name
|
if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name
|
||||||
|
|
|
@ -23,7 +23,7 @@ function tablesFilter(value) {
|
||||||
</script>
|
</script>
|
||||||
<p class="jsonly"><input onkeyup="tablesFilter(this.value);">
|
<p class="jsonly"><input onkeyup="tablesFilter(this.value);">
|
||||||
<?php
|
<?php
|
||||||
echo "<p id='tables'>\n";
|
echo "<p id='tables' onmouseover='menuOver(this);' onmouseout='menuOut(this);'>\n";
|
||||||
foreach ($tables as $table => $type) {
|
foreach ($tables as $table => $type) {
|
||||||
echo '<span><a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table) . ">" . lang('select') . "</a> ";
|
echo '<span><a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table) . ">" . lang('select') . "</a> ";
|
||||||
echo '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold($_GET["table"] == $table) . ">" . h($table) . "</a><br></span>\n";
|
echo '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold($_GET["table"] == $table) . ">" . h($table) . "</a><br></span>\n";
|
||||||
|
|
Loading…
Reference in a new issue