]> andersk Git - sql-web.git/blobdiff - tpl/main.php
change password feature
[sql-web.git] / tpl / main.php
index 2c019d42f581b7dc491a35dccc8c321f6a9dbd7a..ea097da090970d021f51c556721683e0b2d0b369 100644 (file)
@@ -6,7 +6,7 @@ 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">';
+               $msg1[] = 'Are you sure you want to drop `'.$dbname.'`? <input style="position:absolute; right:20px;" type="submit" name="drop['.$dbname.']" value="Yes">';
        }
        echo '</form>';
 }
@@ -15,8 +15,8 @@ if (isset($i_dropask)) {
 <h2>Databases</h2>
 
 <form method="post">
-<?php printErrors($err); ?>
-<?php printMsgs($msg); ?>
+<?php printErrors($err1); ?>
+<?php printMsgs($msg1); ?>
 </form>
 
 <table width="100%">
@@ -25,6 +25,9 @@ if (isset($i_dropask)) {
        $bytes = $User->getBytes();
        $usage = $bytes['nBytes'];
        $total = $bytes['nBytesHard'];
+       if (!count($myDBs)) {
+               echo '<tr><td width="100%"><em>You have no databases. Add one below.</em></td></tr>';
+       } else
        foreach($myDBs as $db) {
                echo '<tr><td width="100%">';
                if ($total>0)
This page took 0.025578 seconds and 4 git commands to generate.