X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/1426e3028a286840240e7000a69dd7d59c34e5d0..e8d03b498ab117591104e55a779fdfe63b06ebd4:/tpl/main.php diff --git a/tpl/main.php b/tpl/main.php index eb6a045..89b0432 100644 --- a/tpl/main.php +++ b/tpl/main.php @@ -2,53 +2,65 @@ include 'head.php'; -?> -

Databases

+if (isset($i_dropask)) { + $dropdbs = array_keys($i_dropask); + echo '
'; + foreach($dropdbs as $dbname) { + $msg1[] = 'Are you sure you want to drop `'.htmlentities($dbname).'`? '; + } + echo '
'; +} - - +?> +

Databases

- -

-Thanks for signing up. This interface is nearly ready. We will e-mail you as soon as this portion of the site is ready. -
-
-- The MIT SQL Team -

- +
+ + +
- +getBytes(); $usage = $bytes['nBytes']; $total = $bytes['nBytesHard']; + if (!count($myDBs)) { + echo ''; + } else foreach($myDBs as $db) { echo ''; } - if ($total>0) + if ($total>0) { $percentage = $usage/$total; - else + } else { $percentage = 0; - echo printBar($percentage, 'TOTAL', sprintSize($usage).' / '.sprintSize($total)); + } + echo ''; + echo ''; ?>
You have no databases. Add one below.
'; - $usage += $db['nBytes']; if ($total>0) $percentage = $db['nBytes']/$total; else $percentage = 0; - echo printBar($percentage, $db['Name'], sprintSize($db['nBytes'])); + echo printBar($percentage, $db['Name'], str_replace(' ', ' ', sprintSize($db['nBytes']))); echo ''; - echo ''; + echo ''; echo '
'; + echo '
'; + echo '
'; + echo printBar($percentage, 'TOTAL USED', str_replace(' ', ' ', sprintSize($usage).' of '.sprintSize($total))); + echo '
-
-

-

+ +

getUsername()?>+ +

- +

Manage Data

+

One interface we recommend for managing SQL data is phpMyAdmin. Feel free to use it after you've created your databases.

+