mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Add CSS classes (thanks to cvicebni ubor)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1218 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -73,7 +73,7 @@ class Adminer {
|
|||||||
*/
|
*/
|
||||||
function selectLinks($tableStatus, $set = "") {
|
function selectLinks($tableStatus, $set = "") {
|
||||||
$TABLE = $tableStatus["Name"];
|
$TABLE = $tableStatus["Name"];
|
||||||
echo '<p><a href="' . h(ME) . 'select=' . urlencode($TABLE) . '">' . lang('Select table') . '</a>';
|
echo '<p class="tabs"><a href="' . h(ME) . 'select=' . urlencode($TABLE) . '">' . lang('Select table') . '</a>';
|
||||||
echo ' <a href="' . h(ME) . 'table=' . urlencode($TABLE) . '">' . lang('Table structure') . '</a>';
|
echo ' <a href="' . h(ME) . 'table=' . urlencode($TABLE) . '">' . lang('Table structure') . '</a>';
|
||||||
if (isset($tableStatus["Rows"])) {
|
if (isset($tableStatus["Rows"])) {
|
||||||
echo ' <a href="' . h(ME) . 'create=' . urlencode($TABLE) . '">' . lang('Alter table') . '</a>';
|
echo ' <a href="' . h(ME) . 'create=' . urlencode($TABLE) . '">' . lang('Alter table') . '</a>';
|
||||||
@@ -471,7 +471,7 @@ class Adminer {
|
|||||||
$databases = get_databases();
|
$databases = get_databases();
|
||||||
?>
|
?>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<p>
|
<p class="logout">
|
||||||
<a href="<?php echo h(ME); ?>sql="><?php echo lang('SQL command'); ?></a>
|
<a href="<?php echo h(ME); ?>sql="><?php echo lang('SQL command'); ?></a>
|
||||||
<a href="<?php echo h(ME); ?>dump=<?php echo urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]); ?>"><?php echo lang('Dump'); ?></a>
|
<a href="<?php echo h(ME); ?>dump=<?php echo urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]); ?>"><?php echo lang('Dump'); ?></a>
|
||||||
<input type="hidden" name="token" value="<?php echo $_SESSION["tokens"][$_GET["server"]]; ?>">
|
<input type="hidden" name="token" value="<?php echo $_SESSION["tokens"][$_GET["server"]]; ?>">
|
||||||
|
@@ -252,7 +252,7 @@ if (!$columns) {
|
|||||||
flush();
|
flush();
|
||||||
$found_rows = $connection->result($connection->query("SELECT COUNT(*) FROM " . idf_escape($TABLE) . ($where ? " WHERE " . implode(" AND ", $where) : "")));
|
$found_rows = $connection->result($connection->query("SELECT COUNT(*) FROM " . idf_escape($TABLE) . ($where ? " WHERE " . implode(" AND ", $where) : "")));
|
||||||
}
|
}
|
||||||
echo "<p>";
|
echo "<p class='pages'>";
|
||||||
if (intval($limit) && $found_rows > $limit) {
|
if (intval($limit) && $found_rows > $limit) {
|
||||||
// display first, previous 3, next 3 and last page
|
// display first, previous 3, next 3 and last page
|
||||||
$max_page = floor(($found_rows - 1) / $limit);
|
$max_page = floor(($found_rows - 1) / $limit);
|
||||||
|
@@ -43,7 +43,7 @@ class Adminer {
|
|||||||
function selectLinks($tableStatus, $set = "") {
|
function selectLinks($tableStatus, $set = "") {
|
||||||
$TABLE = $tableStatus["Name"];
|
$TABLE = $tableStatus["Name"];
|
||||||
if (isset($set)) {
|
if (isset($set)) {
|
||||||
echo '<p><a href="' . h(ME . 'edit=' . urlencode($TABLE) . $set) . '">' . lang('New item') . "</a>\n";
|
echo '<p class="tabs"><a href="' . h(ME . 'edit=' . urlencode($TABLE) . $set) . '">' . lang('New item') . "</a>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -433,7 +433,7 @@ ORDER BY ORDINAL_POSITION");
|
|||||||
if ($missing != "auth") {
|
if ($missing != "auth") {
|
||||||
?>
|
?>
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
<p>
|
<p class="logout">
|
||||||
<input type="hidden" name="token" value="<?php echo $_SESSION["tokens"][$_GET["server"]]; ?>">
|
<input type="hidden" name="token" value="<?php echo $_SESSION["tokens"][$_GET["server"]]; ?>">
|
||||||
<input type="submit" name="logout" value="<?php echo lang('Logout'); ?>">
|
<input type="submit" name="logout" value="<?php echo lang('Logout'); ?>">
|
||||||
</p>
|
</p>
|
||||||
|
3
todo.txt
3
todo.txt
@@ -1,5 +1,3 @@
|
|||||||
Add whisperer to fields with foreign key
|
|
||||||
Highlight found fields
|
|
||||||
MySQL 5 BIT data type
|
MySQL 5 BIT data type
|
||||||
Transactions in export
|
Transactions in export
|
||||||
Create view and routine options
|
Create view and routine options
|
||||||
@@ -19,3 +17,4 @@ Editor:
|
|||||||
JavaScript data validation - columns containing word email, url, ...
|
JavaScript data validation - columns containing word email, url, ...
|
||||||
Joining tables - PRIMARY KEY (table, joining)
|
Joining tables - PRIMARY KEY (table, joining)
|
||||||
Rank, Tree structure
|
Rank, Tree structure
|
||||||
|
Add whisperer to fields with foreign key to big table
|
||||||
|
Reference in New Issue
Block a user