mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
One if() instead of two ?:
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@106 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -63,8 +63,9 @@ if ($_POST) {
|
|||||||
|
|
||||||
<form action="" method="post" enctype="multipart/form-data">
|
<form action="" method="post" enctype="multipart/form-data">
|
||||||
<?php
|
<?php
|
||||||
echo ($fields ? "<table border='0' cellspacing='0' cellpadding='2'>\n" : "");
|
if ($fields) {
|
||||||
foreach ($fields as $name => $field) {
|
echo "<table border='0' cellspacing='0' cellpadding='2'>\n";
|
||||||
|
foreach ($fields as $name => $field) {
|
||||||
echo "<tr><th>" . htmlspecialchars($name) . "</th><td>";
|
echo "<tr><th>" . htmlspecialchars($name) . "</th><td>";
|
||||||
if (!isset($data)) {
|
if (!isset($data)) {
|
||||||
$value = $field["default"];
|
$value = $field["default"];
|
||||||
@@ -75,8 +76,9 @@ foreach ($fields as $name => $field) {
|
|||||||
}
|
}
|
||||||
input($name, $field, $value);
|
input($name, $field, $value);
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>\n";
|
||||||
}
|
}
|
||||||
echo ($fields ? "</table>\n" : "");
|
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input type="hidden" name="token" value="<?php echo $token; ?>" />
|
<input type="hidden" name="token" value="<?php echo $token; ?>" />
|
||||||
|
Reference in New Issue
Block a user