]> git.joonet.de Git - adminer.git/commitdiff
Cross links to select and table (bug #2236232)
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 23 Jan 2009 15:50:42 +0000 (15:50 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 23 Jan 2009 15:50:42 +0000 (15:50 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@550 7c3ca157-0c34-0410-bff1-cbf682f78f5c

lang/cs.inc.php
select.inc.php
table.inc.php

index 6a71e058eeafd5e8692a0ceafba45ffa992f586f..3b631352c1eed03c46141886079fed166a133144 100644 (file)
@@ -211,4 +211,6 @@ $translations = array(
        '%d row(s) has been imported.' => array('Byl importován %d záznam.', 'Byly importovány %d záznamy.', 'Bylo importováno %d záznamů.'),
        'CSV Import' => 'Import CSV',
        'Import' => 'Import',
+       'Table structure' => 'Struktura tabulky',
+       'Select table' => 'Vypsat tabulku',
 );
index 046ac5cad4c992209905e501c6303b5c438b3615..044bb7520136aa88d6f8c88131c0f49bda89001e 100644 (file)
@@ -131,10 +131,13 @@ if ($_POST && !$error) {
 }
 page_header(lang('Select') . ": " . htmlspecialchars($_GET["select"]), $error);
 
+echo "<p>";
 if (isset($rights["insert"])) {
        //! pass search values forth and back
-       echo '<p><a href="' . htmlspecialchars($SELF) . 'edit=' . urlencode($_GET['select']) . '">' . lang('New item') . "</a></p>\n";
+       echo '<a href="' . htmlspecialchars($SELF) . 'edit=' . urlencode($_GET['select']) . '">' . lang('New item') . '</a> ';
 }
+echo '<a href="' . htmlspecialchars($SELF) . 'table=' . urlencode($_GET['select']) . '">' . lang('Table structure') . '</a>';
+echo "</p>\n";
 
 if (!$columns) {
        echo "<p class='error'>" . lang('Unable to select the table') . ($fields ? "" : ": " . htmlspecialchars($mysql->error)) . ".</p>\n";
index caaba99c9bf7cca54f429ac059f282adf7d2e000..aa66d7c4788361738a99e145a7d2b4fd61723f09 100644 (file)
@@ -21,6 +21,7 @@ if ($result) {
        echo "<p>";
        echo '<a href="' . htmlspecialchars($SELF) . 'create=' . urlencode($_GET["table"]) . '">' . lang('Alter table') . '</a>';
        echo ($auto_increment_only ? '' : ' <a href="' . htmlspecialchars($SELF) . 'default=' . urlencode($_GET["table"]) . '">' . lang('Default values') . '</a>');
+       echo ' <a href="' . htmlspecialchars($SELF) . 'select=' . urlencode($_GET["table"]) . '">' . lang('Select table') . '</a>';
        echo "</p>\n";
        
        echo "<h3>" . lang('Indexes') . "</h3>\n";