]> git.joonet.de Git - adminer.git/commitdiff
Add class 'layout' to all non-data tables
authorPeter Knut <peter@pematon.com>
Fri, 27 Jul 2018 13:22:24 +0000 (15:22 +0200)
committerJakub Vrana <jakub@vrana.cz>
Tue, 18 Sep 2018 10:08:19 +0000 (12:08 +0200)
adminer/call.inc.php
adminer/dump.inc.php
adminer/event.inc.php
adminer/include/adminer.inc.php
adminer/include/functions.inc.php
adminer/trigger.inc.php
adminer/user.inc.php
editor/include/adminer.inc.php

index 89637a0c77c0b54d5255468d3da5748e4bf11c76..8a7c8a003bf928b3bd2572703899eb604842079a 100644 (file)
@@ -62,7 +62,7 @@ if (!$error && $_POST) {
 <form action="" method="post">
 <?php
 if ($in) {
-       echo "<table cellspacing='0'>\n";
+       echo "<table cellspacing='0' class='layout'>\n";
        foreach ($in as $key) {
                $field = $routine["fields"][$key];
                $name = $field["field"];
index 30a2a45ee2f6aef6a73599dc59c0f739214eef66..596ef73a3cde4107323254b61f7b4a3700e152bb 100644 (file)
@@ -126,7 +126,7 @@ page_header(lang('Export'), $error, ($_GET["export"] != "" ? array("table" => $_
 ?>
 
 <form action="" method="post">
-<table cellspacing="0">
+<table cellspacing="0" class="layout">
 <?php
 $db_style = array('', 'USE', 'DROP+CREATE', 'CREATE');
 $table_style = array('', 'DROP+CREATE', 'CREATE');
index d0ec05f2e11dde6a02d6c51aeb5c4b7587282996..9404211b898636e0177ad1f83029f640dcfdee6e 100644 (file)
@@ -35,7 +35,7 @@ if (!$row && $EVENT != "") {
 ?>
 
 <form action="" method="post">
-<table cellspacing="0">
+<table cellspacing="0" class="layout">
 <tr><th><?php echo lang('Name'); ?><td><input name="EVENT_NAME" value="<?php echo h($row["EVENT_NAME"]); ?>" data-maxlength="64" autocapitalize="off">
 <tr><th title="datetime"><?php echo lang('Start'); ?><td><input name="STARTS" value="<?php echo h("$row[EXECUTE_AT]$row[STARTS]"); ?>">
 <tr><th title="datetime"><?php echo lang('End'); ?><td><input name="ENDS" value="<?php echo h($row["ENDS"]); ?>">
index 11fe6bfaf276a2b377dd6557a3dccbd01d3f9d06..4e55bf998f8b6e23aba96484d6b618e28e67e3df 100644 (file)
@@ -118,7 +118,7 @@ class Adminer {
        */
        function loginForm() {
                global $drivers;
-               echo "<table cellspacing='0'>\n";
+               echo "<table cellspacing='0' class='layout'>\n";
                echo $this->loginFormField('driver', '<tr><th>' . lang('System') . '<td>', html_select("auth[driver]", $drivers, DRIVER) . "\n");
                echo $this->loginFormField('server', '<tr><th>' . lang('Server') . '<td>', '<input name="auth[server]" value="' . h(SERVER) . '" title="hostname[:port]" placeholder="localhost" autocapitalize="off">' . "\n");
                echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input name="auth[username]" id="username" value="' . h($_GET["username"]) . '" autocapitalize="off">' . script("focus(qs('#username'));"));
index 4a7bd6a4a378585051b1189f6877dacf08c0df14..9e98e9330c7d8b02aeda659c8dbcd17ad4976524 100644 (file)
@@ -1419,7 +1419,7 @@ function edit_form($TABLE, $fields, $row, $update) {
        if (!$fields) {
                echo "<p class='error'>" . lang('You have no privileges to update this table.') . "\n";
        } else {
-               echo "<table cellspacing='0'>" . script("qsl('table').onkeydown = editingKeydown;");
+               echo "<table cellspacing='0' class='layout'>" . script("qsl('table').onkeydown = editingKeydown;");
 
                foreach ($fields as $name => $field) {
                        echo "<tr><th>" . $adminer->fieldName($field);
index 269609c6d617fc63bbe082359e85e34a53060f65..4864862ceed572a61e475e7a1336e1e06fba6fd2 100644 (file)
@@ -33,7 +33,7 @@ page_header(($name != "" ? lang('Alter trigger') . ": " . h($name) : lang('Creat
 ?>
 
 <form action="" method="post" id="form">
-<table cellspacing="0">
+<table cellspacing="0" class="layout">
 <tr><th><?php echo lang('Time'); ?><td><?php echo html_select("Timing", $trigger_options["Timing"], $row["Timing"], "triggerChange(/^" . preg_quote($TABLE, "/") . "_[ba][iud]$/, '" . js_escape($TABLE) . "', this.form);"); ?>
 <tr><th><?php echo lang('Event'); ?><td><?php echo html_select("Event", $trigger_options["Event"], $row["Event"], "this.form['Timing'].onchange();"); ?>
 <?php echo (in_array("UPDATE OF", $trigger_options["Event"]) ? " <input name='Of' value='" . h($row["Of"]) . "' class='hidden'>": ""); ?>
index 8cb76cbefd481936033e75f92ce1e61ef3727990..f456c1b6df72557a4e1b1227bda1b8ac92de9f4f 100644 (file)
@@ -131,7 +131,7 @@ if ($_POST) {
 
 ?>
 <form action="" method="post">
-<table cellspacing="0">
+<table cellspacing="0" class="layout">
 <tr><th><?php echo lang('Server'); ?><td><input name="host" data-maxlength="60" value="<?php echo h($row["host"]); ?>" autocapitalize="off">
 <tr><th><?php echo lang('Username'); ?><td><input name="user" data-maxlength="80" value="<?php echo h($row["user"]); ?>" autocapitalize="off">
 <tr><th><?php echo lang('Password'); ?><td><input name="pass" id="pass" value="<?php echo h($row["pass"]); ?>" autocomplete="new-password">
index 04ffca2662a4939e03df819f1f102a6fa95a4a23..d1ec53037d839a8053fd86312d20952a94371545 100644 (file)
@@ -71,7 +71,7 @@ class Adminer {
        }
 
        function loginForm() {
-               echo "<table cellspacing='0'>\n";
+               echo "<table cellspacing='0' class='layout'>\n";
                echo $this->loginFormField('username', '<tr><th>' . lang('Username') . '<td>', '<input type="hidden" name="auth[driver]" value="server"><input name="auth[username]" id="username" value="' . h($_GET["username"]) . '" autocapitalize="off">' . script("focus(qs('#username'));"));
                echo $this->loginFormField('password', '<tr><th>' . lang('Password') . '<td>', '<input type="password" name="auth[password]">' . "\n");
                echo "</table>\n";