<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="runsql.aspx.cs" Inherits="Focus.Admin.runsql" %>

<%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="UserControls/TextareaResize.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="Focus.Control" Assembly="Focus.Control" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <title>运行SQL语句</title>

    <script type="text/javascript" src="js/common.js"></script>

    <link href="styles/fntmanager.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 type="text/javascript">showhint(0, '如果要一次运行多条SQL语句,语句之间请使用GO进行分割即可.');</script>

        <fieldset>
            <legend style="background: url(images/icons/SqlSyntax.gif) no-repeat 3px 20%;">执行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语句 " OnClick="RunSqlString_Click">
            </cc1:Button>
        </div>
        </form>
    </div>
</body>
</html>
