1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@108 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2007-07-10 20:57:35 +00:00
parent a01944e7e0
commit f8509c37d8
5 changed files with 7 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ if (!(strlen($_GET["db"]) ? $mysql->select_db($_GET["db"]) : isset($_GET["sql"])
if (strlen($_GET["db"])) {
echo "<p class='error'>" . lang('Invalid database.') . "</p>\n";
} 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");
exit;

View File

@@ -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" />
<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="submit" value="<?php echo lang('Save'); ?>" />
<?php if (strlen($_GET["db"])) { ?><input type="submit" name="drop" value="<?php echo lang('Drop'); ?>" /><?php } ?>
</div></form>
</p></form>

View File

@@ -13,10 +13,10 @@ BODY { color: Black; background-color: White; }
A { color: Blue; }
A:visited { color: Navy; }
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; }
PRE { margin: 0; margin: .12em 0; }
TABLE { margin-bottom: 1em; }
PRE { margin: .12em 0; }
TABLE { margin-top: 1em; }
.error { color: Red; }
.message { color: Green; }
#menu { position: absolute; top: 8px; left: 8px; width: 15em; overflow: auto; white-space: nowrap; }

View File

@@ -32,7 +32,6 @@ if ($_POST && !$error && !$_POST["add"]) {
}
$error = $mysql->error;
}
page_header(lang('Indexes') . ': ' . htmlspecialchars($_GET["indexes"]));
if ($_POST) {

View File

@@ -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 "</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"]) : ""));
if (!$result->num_rows) {