5 if (isset($i_dropask)) {
6 $dropdbs = array_keys($i_dropask);
7 echo '<form method="post">';
8 foreach($dropdbs as $dbname) {
9 $msg[] = 'Are you sure you want to drop `'.$dbname.'`? <input style="position:absolute; right:20px;" type="submit" name="drop['.$dbname.']" value="Yes">';
18 <?php printErrors($err); ?>
19 <?php printMsgs($msg); ?>
25 $bytes = $User->getBytes();
26 $usage = $bytes['nBytes'];
27 $total = $bytes['nBytesHard'];
28 foreach($myDBs as $db) {
29 echo '<tr><td width="100%">';
30 $usage += $db['nBytes'];
32 $percentage = $db['nBytes']/$total;
34 echo printBar($percentage, $db['Name'], sprintSize($db['nBytes']));
36 echo '<input type="submit" name="dropask[',$db['Name'],']" value="drop">';
40 $percentage = $usage/$total;
43 echo printBar($percentage, '<b>TOTAL</b>', sprintSize($usage).' / '.sprintSize($total));
49 <p><span style="width: 150px;"><label for="p1">new database:</label></span> <input type="text" name="newdb">
50 <input type=submit value="Add"></p>