You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 line
1.2 KiB

  1. <script language="javascript">
  2. /** show more menus **/
  3. function showMoreMenus(link) {
  4. var obj = $(link);
  5. setManualPosition(".menu", obj.position().left, obj.position().top + obj.height() + 4);
  6. }
  7. /** show manual links **/
  8. function setManualPosition(className, x, y) {
  9. if ($(className).is(":visible")) {
  10. $(className).hide();
  11. }
  12. else {
  13. window.setTimeout(function () {
  14. $(className).show();
  15. $(className).css("left", x);
  16. $(className).css("top", y)
  17. }, 100);
  18. $(className).find("a").click(function () {
  19. hideMenus();
  20. });
  21. }
  22. }
  23. /** hide menus **/
  24. function hideMenus() {
  25. $(".menu").hide();
  26. }
  27. $(function () {
  28. $(document).click(hideMenus);
  29. });
  30. </script>
  31. <h3><?php render_navigation($db); ?></h3>
  32. <div class="operation">
  33. <?php render_db_menu($db) ?>
  34. </div>
  35. <table bgcolor="#cccccc" cellpadding="2" cellspacing="1" width="600">
  36. <tr>
  37. <td colspan="2" style="text-align:center;font-weight:bold"><a href="http://docs.mongodb.org/manual/reference/command/dbStats/#dbcmd.dbStats" target="_blank">Database Statistics</a> ({dbStats:1})</td>
  38. </tr>
  39. <?php foreach ($stats as $param=>$value):?>
  40. <tr bgcolor="#fffeee">
  41. <td width="120" valign="top"><?php h($param);?></td>
  42. <td><?php h($value);?></td>
  43. </tr>
  44. <?php endforeach; ?>
  45. </table>