]> andersk Git - sql-web.git/blobdiff - tpl/main.php
changed NATURAL JOINs to INNERs to avoid conflicting keys
[sql-web.git] / tpl / main.php
index eb6a045d7c7633c39c4948078d8662892428cb36..be194997022dd7993053c9e584a821c9eb436138 100644 (file)
@@ -2,20 +2,22 @@
 
 include 'head.php';
 
+if (isset($i_dropask)) {
+       $dropdbs = array_keys($i_dropask);
+       echo '<form method="post">';
+       foreach($dropdbs as $dbname) {
+               $msg[] = 'Are you sure you want to drop `'.$dbname.'`? <input style="position:absolute; right:20px;" type="submit" name="drop['.$dbname.']" value="Yes">';
+       }
+       echo '</form>';
+}
+
 ?>
 <h2>Databases</h2>
 
+<form method="post">
 <?php printErrors($err); ?>
 <?php printMsgs($msg); ?>
-
-<? if (!DEVEL && 0) { ?>
-<p>
-Thanks for signing up.  This interface is nearly ready.  We will e-mail you as soon as this portion of the site is ready.
-<br />
-<br />
-- The MIT SQL Team
-</p>
-<? } else { ?>
+</form>
 
 <table width="100%">
 <form method="post">
@@ -31,7 +33,7 @@ Thanks for signing up.  This interface is nearly ready.  We will e-mail you as s
                else $percentage = 0;
                echo printBar($percentage, $db['Name'], sprintSize($db['nBytes']));
                echo '</td><td>';
-               echo '<input type="submit" name="drop[',$db['Name'],']" value="drop">';
+               echo '<input type="submit" name="dropask[',$db['Name'],']" value="drop">';
                echo '</td></tr>';
        }
        if ($total>0)
@@ -48,7 +50,6 @@ Thanks for signing up.  This interface is nearly ready.  We will e-mail you as s
 <input type=submit value="Add"></p>
 </form>
 
-<? } ?>
 <?php
 
 include 'foot.php';
This page took 0.027911 seconds and 4 git commands to generate.