Skip to content

Commit

Permalink
Link last page above data in select
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jun 10, 2010
1 parent 9ef397a commit f7069c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/adminer.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function backwardKeysPrint($backwardKeys, $row) {
*/
function selectQuery($query) {
global $jush;
return "<p><code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code> <a href='" . h(ME) . "sql=" . urlencode($query) . "'>" . lang('Edit') . "</a>\n";
return "<p><a href='" . h(remove_from_uri("page")) . "&amp;page=last' title='" . lang('last') . "'>&gt;&gt;</a> <code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code> <a href='" . h(ME) . "sql=" . urlencode($query) . "'>" . lang('Edit') . "</a>\n";
}

/** Description of a row in a table
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Autofocus username in login form
Disable spellchecking in SQL textareas
Display auto_increment value of inserted item
Allow disabling auto_increment value export
Link last page above data in select
Link table names in SQL queries
Japanese translation
Defer table information in database overview to JavaScript (performance)
Expand Down
1 change: 1 addition & 0 deletions editor/include/adminer.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ function selectLinks($tableStatus, $set = "") {
if (isset($set)) {
echo '<p class="tabs"><a href="' . h(ME . 'edit=' . urlencode($TABLE) . $set) . '">' . lang('New item') . "</a>\n";
}
echo "<a href='" . h(remove_from_uri("page")) . "&amp;page=last' title='" . lang('last') . "'>&gt;&gt;</a>\n";
}

function backwardKeys($table, $tableName) {
Expand Down

0 comments on commit f7069c7

Please sign in to comment.