<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_AdminSQL, LebiMall" %>
<!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 id="Head1" runat="server">
    <title>SQL命令执行</title>
    <link rel="stylesheet" type="text/css" href="css/css.css" media="screen"/>
    <script type="text/javascript" language="javascript" src="js/topHead.js"></script>
    <link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
    <script src="js/jquery.js" type="text/javascript"></script>
    <script src="js/tipswindown.js" type="text/javascript"></script>
    <script type="text/javascript">
    var $=jQuery;
        function validate(){
            var flag=true;
            if(document.getElementById("Text1").value==""){
                document.getElementById("msg_sub").innerHTML="<span  class='msg_submit'>填写不能为空！</span>"
                flag=false;
            }else{
                document.getElementById("msg_sub").innerHTML="";
            }
            return flag; 
        }
    </script>

</head>
<body>
    <form id="form1" runat="server" onsubmit="return validate()">
        <!--顶部logo区域-->
        <script>header(6,9,"images/");</script>
        <div class="blank clearfix"></div>
        <div class="tabmenus mainwidth">
            <ul>
                <li><a href="Corp.aspx"><span>网站授权</span></a></li>
                <li class="current"><a href="AdminSQL.aspx"><span>命令执行</span></a></li>
                <li><a href="Ipblock.aspx"><span>IP锁定</span></a></li>
                <li><a href="Admin_upfile.aspx"><span>上传管理</span></a></li>
                <li><a href="clear_Log.aspx"><span>数据维护</span></a></li>
            </ul>
        </div>
        <div class="tab-mainbody">
            <div class="tab-mainbody2">
                <div class="functionHandleArea clearfix">
                    <input id="Button2" type="button" runat="server" class="btn-app" onserverclick="Button1_ServerClick"/>
                    <input type="image" title=" 重填 " onclick="reset();return false;" src="images/bt_res.gif" align="absmiddle" />
                    <input type="image" title=" 返回 " onclick="history.back();return false;" src="images/bt_bak.gif" align="absmiddle" /></div>
                <div id="datalist">
                    <table cellspacing="0" border="0" id="list" style="width: 100%; border-collapse: collapse;">
                        <tr>
                            <th class="td_right td_left" colspan="2" align=left >SQL命令执行</th>
                        </tr>
                        <tr>
                            <td width="15%">
                                SQL语句：
                            </td>
                            <td>
                                <input id="Text1" type="text" runat="server" class=input style="width:600px" /><span id="msg_sub"></span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="list-foot">
                                <input id="Button1" type="button" runat="server" class="btn-app" onserverclick="Button1_ServerClick"/>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="classfaq">
                                <div class="faq_main">
                                    <p class="faq_title">使用答疑：</p>
                                    本操作仅限高级、对SQL编程比较熟悉的用户，您可以直接输入sql执行语句；<br />
                                    在操作前请慎重考虑您的执行语句是否正确和完整，执行后不可恢复；<br />
                                    在操作前请先备份系统数据库，以防操作失误造成数据损坏
                                </div>
                            </td>
                        </tr>
                    </table>
                    <script type="text/javascript">tdshowm("list");</script>
                    <script type="text/javascript">
                        var fc='<%=returnValue %>';
                        var i = 2;
                        if(fc=="true"){
                            tipsWindown("提示","text:操作成功！","250","60","true","2000","true","");
                            
                        }
                        if(fc=="false"){
                            tipsWindown("提示","text:操作失败！","250","60","true","3000","true","");
                        }
                    </script>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
