5 if (isset($i_dropask)) {
6 $dropdbs = array_keys($i_dropask);
7 echo '<form method="post" action="', $URI,'">';
8 foreach($dropdbs as $dbname) {
9 $msg1[] = 'Are you sure you want to drop `'.$dbname.'`? <input style="position:absolute; right:20px;" type="submit" name="drop['.$dbname.']" value="Yes">';
17 <form method="post" action="<?=$URI?>">
18 <?php printErrors($err1); ?>
19 <?php printMsgs($msg1); ?>
23 <form method="post" action="<?=$URI?>">
25 $bytes = $User->getBytes();
26 $usage = $bytes['nBytes'];
27 $total = $bytes['nBytesHard'];
29 echo '<tr><td width="100%"><em>You have no databases. Add one below.</em></td></tr>';
31 foreach($myDBs as $db) {
32 echo '<tr><td width="100%">';
34 $percentage = $db['nBytes']/$total;
36 echo printBar($percentage, $db['Name'], str_replace(' ', ' ', sprintSize($db['nBytes'])));
38 echo '<input type="submit" name="dropask[',$db['Name'],']" value="drop">';
42 $percentage = $usage/$total;
46 echo '<tr><td colspan=2>';
49 echo '<tr><td colspan=2>';
50 echo printBar($percentage, '<b>TOTAL USED</b>', str_replace(' ', ' ', sprintSize($usage).' of '.sprintSize($total)));
56 <form method="post" action="<?=$URI?>">
57 <p align="right"><span style="width: 150px;"><label for="p1">new database:</label></span> <input type="text" name="newdb">
58 <input type=submit value="add"></p>
62 <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>