<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_database.aspx.cs" Inherits="jiaowu.database.admin_database" %>


<!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">
    <title></title>
    <link href="../css/table.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
        .style1
        {
            width: 224px;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div class="place">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" Height="27px">
        </asp:SiteMapPath>
        </div>
    <table align="center" border="1" bordercolor="#D9EFFD" cellpadding="3"  
            cellspacing="1" width="100%"  id="backup" runat="server" visible="false" 
            bgcolor="White">
                                                                                <tr>
                                                                                    <td align="right" class="style13" height="33">
                                                                                        <span lang="zh-cn">数据库名称：</span></td>
                                                                                    <td align="left" class="style12">
                                                                                        <asp:TextBox ID="txtdataname" runat="server">peixunyingyu</asp:TextBox>
                                                                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                                                            ControlToValidate="txtdataname" ErrorMessage="数据库名不能为空！"></asp:RequiredFieldValidator>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="right" class="style13" height="33">
                                                                                        备份目录：</td>
                                                                                    <td align="left" class="style12">
                                                                                        <asp:TextBox ID="txtbackPath" runat="server">../databaseback</asp:TextBox>
                                                                                        相对路径目录，如目录不存在，将自动创建<span lang="zh-cn">，请牢记以备还原</span></td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="right" class="style13" height="33">
                                                                                        <span lang="zh-cn">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 备份文件：</span></td>
                                                                                    <td align="left" class="style12">
                                                                                        <asp:TextBox ID="txtbackname" runat="server">peixunyingyu.bak</asp:TextBox>
                                                                                        <span lang="zh-cn">一般备份扩展名名为：.bak，请牢记以备还原</span></td>
                                                                                </tr>
                                                                                <tr align="center">
                                                                                    <td colspan="2" height="40">
                                                                                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="备 份" />
                                                                                        <asp:Label ID="lblmsg" runat="server"></asp:Label>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
      <table width="100%" border="1" cellpadding="3" cellspacing="1" bordercolor="#D9EFFD" align="center"  id="compact" runat="server" visible="false" bgcolor="White">
                                  <tr>
                                    <td align="right"><div align="center" style="text-align: right">数据库名称：</div></td>
                                    <td align="left">
                                        <asp:TextBox ID="txtdataname1" runat="server">peixunyingyu</asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                            ControlToValidate="txtdataname1" ErrorMessage="数据库名不能为空！"></asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                    <td height="40" colspan="2">
                                       <div align="center"><asp:Button ID="Button2" runat="server"  Text="压 缩" onclick="Button2_Click" />
                                        <asp:Label ID="lblmsg2" runat="server"></asp:Label></div> 
                                      </td>
                                  </tr>
                                </table>  
                               <table width="100%" border="1" cellpadding="3" cellspacing="1"  bordercolor="#D9EFFD" align="center"  id="restore" runat="server" visible="false" bgcolor="White">
                                  <tr>
                                    <td height="33" align="right" class="style14"><span lang="zh-cn">数据库名称：</span></td>
                                    <td align="left">
                                        <asp:TextBox ID="txtdataname2" runat="server">peixunyingyu</asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                            ControlToValidate="txtdataname2" ErrorMessage="数据库名不能为空！"></asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                    <td height="33" align="right" class="style14">备份目录：</td>
                                    <td align="left">
                                        <asp:TextBox ID="txtbackPath2" runat="server">databaseback</asp:TextBox>
                                        <span lang="zh-cn">请准确填写备份目录！</span></td>
                                  </tr>
                                  <tr>
                                    <td height="33" align="center" class="style14"><span lang="zh-cn">备份文件：</span></td>
                                    <td align="center" style="text-align: left">
                                        <asp:TextBox ID="txtbackname2" runat="server">peixunyingyu.bak</asp:TextBox>
                                        <span lang="zh-cn">请准确填写备份名称！</span></td>
                                  </tr>
                                  <tr align="center">
                                    <td height="40" colspan="2">
                                      <div align="center">  <asp:Button ID="Button3" runat="server" Text="还 原" onclick="Button3_Click" />
                                        <asp:Label ID="lblmsg3" runat="server"></asp:Label></div>
                                      </td>
                                  </tr>
                                </table> 
                                <table width="100%" border="1" cellpadding="3" cellspacing="1"  bordercolor="#D9EFFD" align="center"  id="dbdo" runat="server" visible="false" bgcolor="White">
                                  <tr>
                                    <td height="33" align="right" class="style1">执行<span lang="zh-cn">SQL语句：</span></td>
                                    <td align="left">
                                        <asp:TextBox ID="txtsql" runat="server" Width="333px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                            ControlToValidate="txtsql" ErrorMessage="SQL语句不能为空！"></asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                    <td height="33" align="right" class="style1">操作说明：</td>
                                    <td align="left">
                                        1、该功能是实现快捷的对数据库进行操作、暂时禁用删除操作。<br />
                                        2、该操作具有一定的危险性、建议有SQL语句基础的人员操作、操作前备份数据库。<br />
                                        3、新翔软件工作室不对用户擅自进行该操作所造成的一切后果负责！！</td>
                                  </tr>
                                  <tr align="center">
                                    <td height="40" colspan="2">
                                      <div align="center">  <asp:Button ID="Button4" runat="server" Text="确定执行" 
                                              OnClientClick="return confirm('我明白该操作所引起的后果，我可以对此负责！确定操作！')" 
                                              onclick="Button4_Click"/>
                                        <asp:Label ID="lblmsg4" runat="server"></asp:Label></div>
                                      </td>
                                  </tr>
                                </table> 
    </div>
    </form>
</body>
</html>
