Differentiate views in navigation (thanks to Petr Kobelka)

This commit is contained in:
Jakub Vrana 2013-10-24 22:04:57 -07:00
parent bcbec6871f
commit 8d9ef7afd2
4 changed files with 6 additions and 3 deletions

View file

@ -845,7 +845,7 @@ username.form['auth[driver]'].onchange();
echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table) . ">" . lang('select') . "</a> "; echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table || $_GET["edit"] == $table) . ">" . lang('select') . "</a> ";
$name = $this->tableName($status); $name = $this->tableName($status);
echo (support("table") echo (support("table")
? '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"]))) . " title='" . lang('Show structure') . "'>$name</a>" ? '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold(in_array($table, array($_GET["table"], $_GET["create"], $_GET["indexes"], $_GET["foreign"], $_GET["trigger"])), (is_view($status) ? "view" : "")) . " title='" . lang('Show structure') . "'>$name</a>"
: "<span>$name</span>" : "<span>$name</span>"
) . "<br>\n"; ) . "<br>\n";
} }

View file

@ -183,10 +183,11 @@ function print_fieldset($id, $legend, $visible = false, $onclick = "") {
/** Return class='active' if $bold is true /** Return class='active' if $bold is true
* @param bool * @param bool
* @param string
* @return string * @return string
*/ */
function bold($bold) { function bold($bold, $class = "") {
return ($bold ? " class='active'" : ""); return ($bold ? " class='active $class'" : ($class ? " class='$class'" : ""));
} }
/** Generate class for odd rows /** Generate class for odd rows

View file

@ -48,6 +48,7 @@ input.required { box-shadow: 1px 1px 1px red; }
.datetime { text-align: right; } .datetime { text-align: right; }
.type { width: 15ex; width: auto\9; } .type { width: 15ex; width: auto\9; }
.options select { width: 20ex; width: auto\9; } .options select { width: 20ex; width: auto\9; }
.view { font-style: italic; }
.active { font-weight: bold; } .active { font-weight: bold; }
.sqlarea { width: 98%; } .sqlarea { width: 98%; }
.icon { width: 18px; height: 18px; background-color: navy; } .icon { width: 18px; height: 18px; background-color: navy; }

View file

@ -9,6 +9,7 @@ Add button for dropping an index
Display number of selected rows Display number of selected rows
Add links to documentation Add links to documentation
Disable underlining links Disable underlining links
Differentiate views in navigation
Improve speed of CSV import Improve speed of CSV import
Keep form values after refresh in Firefox Keep form values after refresh in Firefox
Encrypt passwords stored in session by a key stored in cookie Encrypt passwords stored in session by a key stored in cookie