<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
<%@ Page language="c#" Inherits="Discuz.ForumPage.Admin.runsql" Codebehind="global_runsql.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title></title>
				
	    <script language="javascript" src="../js/common.js"></script>
	    <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet">        
        <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet">
        <script type="text/javascript" src="../js/modalpopup.js"></script>
        <script type="text/javascript">
            function showalert(info)
            {
                $("alerterrorinfo").innerHTML = info;
                $("alertdialog").style.display = 'block';
            }
            function closealert()
            {
                $("alertdialog").style.display = 'none';
            }
        </script>
</head>
	<body>
	<div class="ManagerForm">
	<div id="alertdialog" class="PopUpModel" style="position: absolute; z-index: 101; left: 40%; top: 40%; display: none;">
        <div class="ctrl_title"><a onclick="closealert();" href="javascript:void(0);"><img border="0" src="../images/close.gif"/></a>警告</div>
        <div id="searchresult">
        <table cellpadding="4" cellspacing="4"><tr><td><span id="alerterrorinfo"></span></td></tr></table>
        <br/>
        </div>
    </div>
		<form id="Form1" method="post" runat="server">
		<script language="javascript">showhint(0, '如果要一次运行多条SQL语句,语句之间请使用 --/* Discuz!NT SQL Separator */-- 进行分割即可.');</script>
		<fieldset>
		<legend style="background:url(../images/icons/icon38.jpg) no-repeat 6px 50%;">执行SQL语句</legend>
			<TABLE  align="center"  class="table1" cellspacing="0" cellPadding="4" width="100%">
				<TR>
					<TD class="td1">
						<uc1:TextareaResize id="sqlstring" runat="server" controlname="sqlstring" cols="80" rows="10" is_replace="false"></uc1:TextareaResize>
						</TD>
				</TR>
			</TABLE>
		</fieldset>
		<div class="Navbutton">
		    <cc1:Button id="RunSqlString" runat="server" Text=" 执行SQL语句 "></cc1:Button>
		</div>	
		</form>
		<%=footer%>
	</div>
	</body>
</html>
