Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Hide edit link without columns

  • Loading branch information...
commit 22a7ebd181c224e86973ccd142f30bbf374564ba 1 parent 61fceca
Jakub Vrána authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 adminer/select.inc.php
4 adminer/select.inc.php
@@ -235,7 +235,7 @@
235 235 $backward_keys = $adminer->backwardKeys($TABLE, $table_name);
236 236
237 237 echo "<table cellspacing='0' class='nowrap' onclick='tableClick(event);'>\n";
238   - echo "<thead><tr><td><input type='checkbox' id='all-page' onclick='formCheck(this, /check/);'> <a href='" . h($_GET["modify"] ? remove_from_uri("modify") : $_SERVER["REQUEST_URI"] . "&modify=1") . "'>" . lang('edit') . "</a>";
  238 + echo "<thead><tr>" . (!$group && $select ? "" : "<td><input type='checkbox' id='all-page' onclick='formCheck(this, /check/);'> <a href='" . h($_GET["modify"] ? remove_from_uri("modify") : $_SERVER["REQUEST_URI"] . "&modify=1") . "'>" . lang('edit') . "</a>");
239 239 $names = array();
240 240 $functions = array();
241 241 reset($select);
@@ -267,7 +267,7 @@
267 267 foreach ($unique_array as $key => $val) {
268 268 $unique_idf .= "&" . (isset($val) ? urlencode("where[" . bracket_escape($key) . "]") . "=" . urlencode($val) : "null%5B%5D=" . urlencode($key));
269 269 }
270   - echo "<tr" . odd() . "><td>" . checkbox("check[]", substr($unique_idf, 1), in_array(substr($unique_idf, 1), (array) $_POST["check"]), "", "this.form['all'].checked = false; formUncheck('all-page');") . (count($select) != count($group) || information_schema(DB) ? '' : " <a href='" . h(ME . "edit=" . urlencode($TABLE) . $unique_idf) . "'>" . lang('edit') . "</a>");
  270 + echo "<tr" . odd() . ">" . (!$group && $select ? "" : "<td>" . checkbox("check[]", substr($unique_idf, 1), in_array(substr($unique_idf, 1), (array) $_POST["check"]), "", "this.form['all'].checked = false; formUncheck('all-page');") . (count($group) < count($select) || information_schema(DB) ? "" : " <a href='" . h(ME . "edit=" . urlencode($TABLE) . $unique_idf) . "'>" . lang('edit') . "</a>"));
271 271 foreach ($row as $key => $val) {
272 272 if (isset($names[$key])) {
273 273 $field = $fields[$key];

0 comments on commit 22a7ebd

Please sign in to comment.
Something went wrong with that request. Please try again.