您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

116 行
4.7 KiB

  1. <html>
  2. <head>
  3. <title>RockMongo</title>
  4. <!-- Base Jquery -->
  5. <script language="javascript" type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
  6. <script language="javascript" type="text/javascript" src="js/jquery-ui-1.8.4.custom.min.js"></script>
  7. <!--JQuery Layout -->
  8. <script language="javascript" type="text/javascript" src="js/jquery.layout.min-1.3.0.js"></script>
  9. <link type="text/css" href="<?php render_theme_path() ?>/css/layout-default-1.3.0.css" rel="stylesheet" />
  10. <style type="text/css">
  11. * {font-size:12px; font-family:'Courier New', Arial}
  12. body {margin:0; padding:0}
  13. a { text-decoration:none; color:#004499; line-height:1.5 }
  14. .manual, .server-menu {
  15. float:right;
  16. margin-right:100px;
  17. margin-top:0px;
  18. background-color:#eee;
  19. border-left:1px #ccc solid;
  20. border-top:1px #ccc solid;
  21. border-right:2px #ccc solid;
  22. border-bottom:2px #ccc solid;
  23. padding-left:3px;
  24. position:absolute;
  25. display:none;
  26. width:100px;
  27. z-index:10000;
  28. }
  29. #right-pane { padding-left:10px }
  30. </style>
  31. <script language="javascript">
  32. $(document).ready(function(){
  33. //---Init Layout
  34. var wsize=250;
  35. $('body').layout({
  36. defaults: {
  37. applyDefaultStyles: false
  38. },
  39. north :{
  40. closable:true,
  41. slidable:false
  42. },
  43. west: {
  44. minSize: wsize,
  45. maxSize: 2*wsize,
  46. size: wsize,
  47. resizable: true,
  48. closable:true,
  49. slidable:true
  50. }
  51. });
  52. });
  53. /** show manual links **/
  54. function setManualPosition(className, x, y) {
  55. if ($(className).is(":visible")) {
  56. $(className).hide();
  57. }
  58. else {
  59. window.setTimeout(function () {
  60. $(className).show();
  61. $(className).css("left", x);
  62. $(className).css("top", y)
  63. }, 100);
  64. $(className).find("a").click(function () {
  65. hideMenus();
  66. });
  67. }
  68. }
  69. /** hide menus **/
  70. function hideMenus() {
  71. $(".manual").hide();
  72. $(".server-menu").hide();
  73. }
  74. </script>
  75. </head>
  76. <body>
  77. <!-- top bar -->
  78. <div id="top-pane" class="ui-layout-north" style="overflow:hidden">
  79. <iframe src="<?php echo $topUrl; ?>" name="top" width="100%" frameborder="0" height="20" marginheight="0" scrolling="no"></iframe>
  80. </div>
  81. <div id="left-pane" class="ui-layout-west">
  82. <!-- left bar -->
  83. <iframe src="<?php echo $leftUrl; ?>" name="left" width="100%" height="100%" frameborder="0" scrolling="auto" marginheight="0"></iframe>
  84. </div>
  85. <div id="right-pane" class="ui-layout-center">
  86. <!-- right bar -->
  87. <iframe src="<?php echo $rightUrl; ?>" name="right" width="100%" height="100%" frameborder="0" marginheight="0" scrolling="auto"></iframe>
  88. </div>
  89. <!-- quick links -->
  90. <div class="manual">
  91. <?php render_manual_items() ?>
  92. </div>
  93. <!-- menu when "Tools" clicked -->
  94. <div class="server-menu" style="width:120px">
  95. <a href="<?php h(url("server.index")); ?>" target="right"><?php hm("server"); ?></a><br/>
  96. <a href="<?php h(url("server.status")); ?>" target="right"><?php hm("status"); ?></a> <br/>
  97. <a href="<?php h(url("server.databases")); ?>" target="right"><?php hm("databases"); ?></a> <a href="<?php h(url("server.createDatabase")); ?>" target="right" title="Create new Database">[+]</a> <br/>
  98. <a href="<?php h(url("server.processlist")); ?>" target="right"><?php hm("processlist"); ?></a> <br/>
  99. <a href="<?php h(url("server.command")); ?>" target="right"><?php hm("command"); ?></a> <br/>
  100. <a href="<?php h(url("server.execute")); ?>" target="right"><?php hm("execute"); ?></a> <br/>
  101. <a href="<?php h(url("server.replication")); ?>" target="right"><?php hm("master_slave"); ?></a>
  102. </div>
  103. </body>
  104. </html>