global_runsql.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:3k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.runsql" Codebehind="global_runsql.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
  4. <%@ Register Src="../UserControls/PageInfo.ascx" TagName="PageInfo" TagPrefix="uc1" %>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  6. <html>
  7. <head>
  8. <title></title>
  9. <script type="text/javascript" src="../js/common.js"></script>
  10. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/modalpopup.js"></script>
  13. <script type="text/javascript">
  14. function showalert(info)
  15. {
  16. document.getElementById("alerterrorinfo").innerHTML = info;
  17. document.getElementById("alertdialog").style.display = 'block';
  18. }
  19. function closealert()
  20. {
  21. document.getElementById("alertdialog").style.display = 'none';
  22. }
  23. </script>
  24. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  25. </head>
  26. <body>
  27. <div class="ManagerForm">
  28. <div id="alertdialog" class="PopUpModel" style="position: absolute; z-index: 101; left: 40%; top: 40%; display: none;">
  29. <div class="ctrl_title">
  30. <a onclick="closealert();" href="javascript:void(0);"><img border="0" src="../images/close.gif" /></a>警告
  31. </div>
  32. <div id="searchresult">
  33. <table cellpadding="4" cellspacing="4">
  34. <tr>
  35. <td>
  36. <span id="alerterrorinfo"></span>
  37. </td>
  38. </tr>
  39. </table>
  40. <br />
  41. </div>
  42. </div>
  43. <form id="Form1" method="post" runat="server">
  44. <uc1:PageInfo ID="info1" runat="server" Icon="information" Text="如果要一次运行多条SQL语句,语句之间请使用 --/* Discuz!NT SQL Separator */-- 进行分割即可." />
  45. <fieldset>
  46. <legend style="background: url(../images/icons/icon38.jpg) no-repeat 6px 50%;">执行SQL语句</legend>
  47. <table width="100%">
  48. <tr>
  49. <td class="vtop">
  50. <uc1:TextareaResize ID="sqlstring" runat="server" controlname="sqlstring" cols="80" rows="10" is_replace="false"></uc1:TextareaResize>
  51. </td>
  52. </tr>
  53. </table>
  54. <div class="Navbutton"><cc1:Button ID="RunSqlString" runat="server" Text=" 执行SQL语句 " Enabled="false"></cc1:Button></div>
  55. </fieldset>
  56. </form>
  57. <script type="text/javascript">            
  58. document.getElementById("sqlstring_posttextarea").onkeyup = function(){ document.getElementById("RunSqlString").disabled = (document.getElementById("sqlstring_posttextarea").value == ""); }
  59. </script>
  60. <%=footer%>
  61. </div>
  62. </body>
  63. </html>