Check previously checked rows
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1112 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
79c70ad5fb
commit
81f91c0038
|
@ -205,7 +205,7 @@ if (!$columns) {
|
||||||
echo ($table_names ? "<th>" . lang('Relations') : "") . "</thead>\n";
|
echo ($table_names ? "<th>" . lang('Relations') : "") . "</thead>\n";
|
||||||
foreach ($adminer->rowDescriptions($rows, $foreign_keys) as $n => $row) {
|
foreach ($adminer->rowDescriptions($rows, $foreign_keys) as $n => $row) {
|
||||||
$unique_idf = implode('&', unique_idf($rows[$n], $indexes));
|
$unique_idf = implode('&', unique_idf($rows[$n], $indexes));
|
||||||
echo "<tr" . odd() . "><td><input type='checkbox' name='check[]' value='$unique_idf' onclick=\"this.form['all'].checked = false; form_uncheck('all-page');\">" . (count($select) != count($group) || information_schema(DB) ? '' : " <a href='" . h(ME) . "edit=" . urlencode($TABLE) . "&$unique_idf'>" . lang('edit') . "</a>");
|
echo "<tr" . odd() . "><td><input type='checkbox' name='check[]' value='$unique_idf'" . (in_array(str_replace("&", "&", $unique_idf), (array) $_POST["check"]) ? " checked" : "") . " onclick=\"this.form['all'].checked = false; form_uncheck('all-page');\">" . (count($select) != count($group) || information_schema(DB) ? '' : " <a href='" . h(ME) . "edit=" . urlencode($TABLE) . "&$unique_idf'>" . lang('edit') . "</a>");
|
||||||
foreach ($row as $key => $val) {
|
foreach ($row as $key => $val) {
|
||||||
if (isset($names[$key])) {
|
if (isset($names[$key])) {
|
||||||
if (strlen($val) && (!isset($email_fields[$key]) || strlen($email_fields[$key]))) {
|
if (strlen($val) && (!isset($email_fields[$key]) || strlen($email_fields[$key]))) {
|
||||||
|
|
Loading…
Reference in a new issue