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.
 
 
 

37 lines
1.2 KiB

  1. <div class="operation">
  2. <?php render_server_menu("command"); ?>
  3. </div>
  4. <a href="http://docs.mongodb.org/manual/reference/command/" target="_blank">&raquo; <?php hm("listdbcommands"); ?></a>
  5. <?php if(isset($message)):?>
  6. <p class="error"><?php h($message);?></p>
  7. <?php endif;?>
  8. <form method="post">
  9. <textarea name="command" rows="5" cols="60"><?php h(x("command"));?></textarea>
  10. <br/>
  11. <?php hm("db"); ?>:
  12. <select name="db">
  13. <?php foreach ($dbs as $value):?>
  14. <option value="<?php h($value["name"]);?>" <?php if(xn("db")==$value["name"]):?>selected="selected"<?php endif;?>><?php h($value["name"]);?></option>
  15. <?php endforeach;?>
  16. </select>
  17. <?php hm("format"); ?>:<select name="format">
  18. <?php foreach (array("json" => "JSON", "array" => "Array") as $param=>$value):?>
  19. <option value="<?php h($param);?>" <?php if(x("format")==$param):?>selected="selected"<?php endif;?>><?php h($value);?></option>
  20. <?php endforeach;?>
  21. </select>
  22. <br/>
  23. <input type="submit" value="<?php hm("execute"); ?>"/>
  24. </form>
  25. <?php if(isset($ret)):?>
  26. <div style="border:2px #ccc solid;margin-bottom:5px;background-color:#eeefff">
  27. <?php hm("responseserver"); ?>
  28. <div style="margin-top:5px">
  29. <?php h($ret);?>
  30. </div>
  31. </div>
  32. <?php endif; ?>