executesql.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Insert title here</title>
  6. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui/css/H-ui.min.css" />
  7. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/H-ui.admin.css" />
  8. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/Hui-iconfont/1.0.7/iconfont.css" />
  9. <link rel="stylesheet" type="text/css" href="${ctx}/assets/lib/icheck/icheck.css" />
  10. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/skin/default/skin.css" id="skin" />
  11. <link rel="stylesheet" type="text/css" href="${ctx}/assets/static/h-ui.admin/css/style.css" />
  12. <script type="text/ecmascript" src="${ctx}/assets/lib/jquery/1.9.1/jquery.js"></script>
  13. <script type="text/javascript" src="${ctx}/assets/static/h-ui/js/H-ui.js"></script>
  14. <script type="text/javascript" src="${ctx}/assets/lib/layer/3.0.3/layer.js"></script>
  15. <script type="text/javascript">
  16. $(function() {
  17. $("#runsql").click(function() {
  18. var sqls = encodeURIComponent($("#sqls").val());
  19. $.post("${ctx}/myconsole/executeSql/run", {
  20. "sqls" : sqls
  21. }, function(data) {
  22. $("#result").html(data);
  23. })
  24. })
  25. })
  26. </script>
  27. </head>
  28. <body>
  29. <form action="" id="form1" name="form1" method="post">
  30. <div style="padding:10px;text-align: center">
  31. <div>
  32. <textarea id="sqls" name="sqls" rows="10" cols="250"></textarea>
  33. </div>
  34. <button id="runsql" type="button">执行</button>
  35. </form>
  36. <div id="result"></div>
  37. </div>
  38. </body>
  39. </html>