1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +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:
jakubvrana
2009-10-28 12:21:21 +00:00
parent 0c6811e4e6
commit fde11717bd
4 changed files with 6 additions and 7 deletions

View File

@@ -73,7 +73,7 @@ class Adminer {
*/
function selectLinks($tableStatus, $set = "") {
$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>';
if (isset($tableStatus["Rows"])) {
echo ' <a href="' . h(ME) . 'create=' . urlencode($TABLE) . '">' . lang('Alter table') . '</a>';
@@ -471,7 +471,7 @@ class Adminer {
$databases = get_databases();
?>
<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); ?>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"]]; ?>">

View File

@@ -252,7 +252,7 @@ if (!$columns) {
flush();
$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) {
// display first, previous 3, next 3 and last page
$max_page = floor(($found_rows - 1) / $limit);

View File

@@ -43,7 +43,7 @@ class Adminer {
function selectLinks($tableStatus, $set = "") {
$TABLE = $tableStatus["Name"];
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") {
?>
<form action="" method="post">
<p>
<p class="logout">
<input type="hidden" name="token" value="<?php echo $_SESSION["tokens"][$_GET["server"]]; ?>">
<input type="submit" name="logout" value="<?php echo lang('Logout'); ?>">
</p>

View File

@@ -1,5 +1,3 @@
Add whisperer to fields with foreign key
Highlight found fields
MySQL 5 BIT data type
Transactions in export
Create view and routine options
@@ -19,3 +17,4 @@ Editor:
JavaScript data validation - columns containing word email, url, ...
Joining tables - PRIMARY KEY (table, joining)
Rank, Tree structure
Add whisperer to fields with foreign key to big table