]> andersk Git - sql-web.git/blobdiff - tpl/main.php
new style: conform to new <scripts.mit.edu> textpattern template
[sql-web.git] / tpl / main.php
index ea097da090970d021f51c556721683e0b2d0b369..d3744eba2a51bc7fa0dacc29a8291185b391f47f 100644 (file)
@@ -4,7 +4,7 @@ include 'head.php';
 
 if (isset($i_dropask)) {
        $dropdbs = array_keys($i_dropask);
-       echo '<form method="post">';
+       echo '<form method="post" action="', $URI,'">';
        foreach($dropdbs as $dbname) {
                $msg1[] = 'Are you sure you want to drop `'.$dbname.'`? <input style="position:absolute; right:20px;" type="submit" name="drop['.$dbname.']" value="Yes">';
        }
@@ -12,15 +12,15 @@ if (isset($i_dropask)) {
 }
 
 ?>
-<h2>Databases</h2>
+<h3>Databases</h3>
 
-<form method="post">
+<form method="post" action="<?=$URI?>">
 <?php printErrors($err1); ?>
 <?php printMsgs($msg1); ?>
 </form>
 
 <table width="100%">
-<form method="post">
+<form method="post" action="<?=$URI?>">
 <?php
        $bytes = $User->getBytes();
        $usage = $bytes['nBytes'];
@@ -53,11 +53,14 @@ if (isset($i_dropask)) {
 </form>
 </table>
 
-<form method="post">
-<p><span style="width: 150px;"><label for="p1">new database:</label></span> <input type="text" name="newdb">
-<input type=submit value="Add"></p>
+<form method="post" action="<?=$URI?>">
+<p align="right"><span style="width: 150px;"><label for="p1">new database:</label></span> <input type="text" name="newdb">
+<input type=submit value="add"></p>
 </form>
 
+<h3>Manage Data</h3>
+<p>One interface we recommend for managing SQL data is <a href="https://scripts.mit.edu/~sql/phpMyAdmin/" target="_blank">phpMyAdmin</a>. Feel free to use it after you've created your databases.</p>
+
 <?php
 
 include 'foot.php';
This page took 0.027493 seconds and 4 git commands to generate.