mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Margins
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@108 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -4,7 +4,7 @@ if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"])
|
|||||||
if (strlen($_GET["db"])) {
|
if (strlen($_GET["db"])) {
|
||||||
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
|
||||||
} else {
|
} else {
|
||||||
echo '<a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Create new database') . '</a>';
|
echo '<p><a href="' . htmlspecialchars($SELF) . 'database=">' . lang('Create new database') . '</a></p>';
|
||||||
}
|
}
|
||||||
page_footer("db");
|
page_footer("db");
|
||||||
exit;
|
exit;
|
||||||
|
@@ -45,10 +45,10 @@ if ($_POST) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form action="" method="post"><div>
|
<form action="" method="post"><p>
|
||||||
<input name="name" value="<?php echo htmlspecialchars($name); ?>" maxlength="64" />
|
<input name="name" value="<?php echo htmlspecialchars($name); ?>" maxlength="64" />
|
||||||
<select name="collation"><option value="">(<?php echo lang('collation'); ?>)</option><?php echo optionlist(collations(), $collate, "not_vals"); ?></select>
|
<select name="collation"><option value="">(<?php echo lang('collation'); ?>)</option><?php echo optionlist(collations(), $collate, "not_vals"); ?></select>
|
||||||
<input type="hidden" name="token" value="<?php echo $token; ?>" />
|
<input type="hidden" name="token" value="<?php echo $token; ?>" />
|
||||||
<input type="submit" value="<?php echo lang('Save'); ?>" />
|
<input type="submit" value="<?php echo lang('Save'); ?>" />
|
||||||
<?php if (strlen($_GET["db"])) { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>" /><?php } ?>
|
<?php if (strlen($_GET["db"])) { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>" /><?php } ?>
|
||||||
</div></form>
|
</p></form>
|
||||||
|
@@ -13,10 +13,10 @@ BODY { color: Black; background-color: White; }
|
|||||||
A { color: Blue; }
|
A { color: Blue; }
|
||||||
A:visited { color: Navy; }
|
A:visited { color: Navy; }
|
||||||
H1 { font-size: 150%; margin: 0; }
|
H1 { font-size: 150%; margin: 0; }
|
||||||
H2 { font-size: 150%; margin-top: 0; }
|
H2 { font-size: 150%; margin: 0; }
|
||||||
FIELDSET { float: left; padding: .5em; margin: 0; }
|
FIELDSET { float: left; padding: .5em; margin: 0; }
|
||||||
PRE { margin: 0; margin: .12em 0; }
|
PRE { margin: .12em 0; }
|
||||||
TABLE { margin-bottom: 1em; }
|
TABLE { margin-top: 1em; }
|
||||||
.error { color: Red; }
|
.error { color: Red; }
|
||||||
.message { color: Green; }
|
.message { color: Green; }
|
||||||
#menu { position: absolute; top: 8px; left: 8px; width: 15em; overflow: auto; white-space: nowrap; }
|
#menu { position: absolute; top: 8px; left: 8px; width: 15em; overflow: auto; white-space: nowrap; }
|
||||||
|
@@ -32,7 +32,6 @@ if ($_POST && !$error && !$_POST["add"]) {
|
|||||||
}
|
}
|
||||||
$error = $mysql->error;
|
$error = $mysql->error;
|
||||||
}
|
}
|
||||||
|
|
||||||
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
|
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
|
||||||
|
|
||||||
if ($_POST) {
|
if ($_POST) {
|
||||||
|
@@ -88,7 +88,7 @@ for (var i=0; <?php echo $i; ?> > i; i++) {
|
|||||||
|
|
||||||
echo "<fieldset><legend>" . lang('Action') . "</legend><div><input type='submit' value='" . lang('Select') . "' /></div></fieldset>\n";
|
echo "<fieldset><legend>" . lang('Action') . "</legend><div><input type='submit' value='" . lang('Select') . "' /></div></fieldset>\n";
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
echo "<div style='clear: left; margin-bottom: 1em;'></div>\n";
|
echo "<div style='clear: left;'></div>\n";
|
||||||
|
|
||||||
$result = $mysql->query("SELECT SQL_CALC_FOUND_ROWS " . implode(", ", array_map('idf_escape', $columns)) . " FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : "") . ($order ? " ORDER BY " . implode(", ", $order) : "") . (strlen($limit) ? " LIMIT " . intval($limit) . " OFFSET " . ($limit * $_GET["page"]) : ""));
|
$result = $mysql->query("SELECT SQL_CALC_FOUND_ROWS " . implode(", ", array_map('idf_escape', $columns)) . " FROM " . idf_escape($_GET["select"]) . ($where ? " WHERE " . implode(" AND ", $where) : "") . ($order ? " ORDER BY " . implode(", ", $order) : "") . (strlen($limit) ? " LIMIT " . intval($limit) . " OFFSET " . ($limit * $_GET["page"]) : ""));
|
||||||
if (!$result->num_rows) {
|
if (!$result->num_rows) {
|
||||||
|
Reference in New Issue
Block a user