list_db.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <table class='data'>
  2. <?php
  3. foreach ($data as $key => $value) {
  4. if ($data[$key]['SUSPENDED'] == 'yes') {
  5. $status = 'suspended';
  6. $spnd_action = 'ususpend' ;
  7. } else {
  8. $status = 'active';
  9. $spnd_action = 'suspend' ;
  10. }
  11. if (empty($data[$key]['CATCHALL'])) {
  12. $data[$key]['CATCHALL'] = 'null';
  13. }
  14. ?>
  15. <tr class="data-row">
  16. <td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150">
  17. <table class="data-col1">
  18. <tr><td style="padding: 18 0 4 18;"><input type="checkbox" name="object" ></td></tr>
  19. <tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M Y", strtotime($data[$key]['DATE'])) ?></td></tr>
  20. <tr><td class="data-<?php echo $status ?>"><i><b><?php echo $status ?></b></i></td></tr>
  21. </table>
  22. </td>
  23. <td class="data-dotted" width="830px" style="vertical-align:top;">
  24. <table width="830px"><tr>
  25. <td></td>
  26. <td class="data-controls" width="118px"><img src="/images/new_window.png" width="8px" height="8px"><a href="#"> open web admin</a></td>
  27. <td class="data-controls" width="50px"><img src="/images/edit.png" width="8px" height="8px"><a href="#"> edit</a></td>
  28. <td class="data-controls" width="80px"><img src="/images/suspend.png" width="7px" height="8px"><a href="#"> <?php echo $spnd_action ?></a></td>
  29. <td class="data-controls" width="70px"><img src="/images/delete.png" width="7px" height="7px"><a href="#"> delete</a></td>
  30. </tr></table>
  31. <table class="data-col2" width="830px">
  32. <tr><td colspan=3 class="domain" style="padding: 0 0 0 4;"><?php echo $key ?></td></tr>
  33. <tr>
  34. <td style="vertical-align:top;" >
  35. <table>
  36. <tr><td class="counter-name" style="padding: 4 0 6 0">[<?php echo $data[$key]['TYPE'] ?>] database</td></tr>
  37. <tr><td class="chart1">Disk: <?php echo humanize_usage($data[$key]['U_DISK']) ?>
  38. <div style="width:160px; height:6px; font-size:0;background-color:#B3CED5;"><div style="width:<?php echo get_percentage($data[$key]['U_DISK'],$panel[$user]['DISK_QUOTA']) ?>%; height:6px; background-color:#629FBB; border-right:1px #629FBB solid;"></div></div></td></tr>
  39. </table>
  40. </td>
  41. <td style="vertical-align:top;" width="250">
  42. <table>
  43. <tr><td class="counter-name">User: </td><td class="counter-value"><?php echo $data[$key]['DBUSER'] ?></td></tr>
  44. <tr><td class="counter-name">Host: </td><td class="counter-value"><?php echo $data[$key]['HOST'] ?></td></tr>
  45. </table>
  46. </td>
  47. <td rowspan=4 style="vertical-align:top;" width="300">
  48. <table>
  49. <tr><td class="counter-name">Charset:</td><td class="counter-value"><?php echo $data[$key]['CHARSET'] ?></td></tr>
  50. </table>
  51. </td>
  52. </tr>
  53. </table>
  54. </td>
  55. </tr>
  56. <?php
  57. }
  58. ?>
  59. </table>