<%@ page language="C#" autoeventwireup="true" inherits="e_dosql, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
   &nbsp;&raquo;&nbsp;执行SQL
    </asp:Label>
    <UC:head ID="head1" runat="server" />
    <%--main start--%>
    <div class="c1">
        <div class="b1">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="b1_l">
                    </td>
                    <td>
                        <div class="con1">
                            <ul>
                                <li style="width: 80px"><a href="bakdb.aspx">备份数据库</a></li>
                                <li class="on"><a href="dosql.aspx">执行SQL</a></li>
                            </ul>
                            <div class="clear">
                            </div>
                        </div>
                    </td>
                    <td align="right">
                        <div class="con2">
                        </div>
                    </td>
                    <td class="b1_r">
                    </td>
                </tr>
            </table>
        </div>
        <div class="v1">
            <div class="do1">

                <script type="text/javascript">           
               function check(){if(!confirm("建议执行SQL语句前备份数据库，确定执行SQL语句吗？")){return false;}}
                </script>

                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                    <tr>
                        <td class="tt">
                            <b>输入语句：</b>
                        </td>
                        <td>
                            <asp:TextBox ID="sqlcode" runat="server" TextMode="MultiLine" CssClass="inp1" Width="600"
                                Height="300"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Button ID="ButtonSubmit" runat="server" CssClass="but1" Text="执行" OnClick="ButtonSubmit_Click"
                                OnClientClick="return check()" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
