<%@ Page language="c#" Codebehind="DataBaseManage.aspx.cs" AutoEventWireup="True" Inherits="DreamerShop.Admin.DataBaseManage" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("TextSystemSetting")%>
			-
			<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		<SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		
		function selall1()
		{	
			var a = document.getElementsByTagName("input");
		
			var str;
			var len;
			var state;
			
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{	
					str=a[i].id;
					len=str.lastIndexOf("SelAllPur1");
					if((len * 1)>=1)
					{
						state=a[i].checked;
						break;
						}
				}
			}
			for (var i=0; i<a.length; i++)
			{
				if (a[i].type == "checkbox") 
				{
					str=a[i].id;
					len=str.lastIndexOf("Purview1");
					if((len * 1)>=1)
						a[i].checked=state;
				}
			}
		}
		
		
		
		
		function imgHelp_onclick() {
			popUpWin("DSHelp/Purview.htm","Help",100,100,800,600);
			}
			
		function popUpWin(URLStr,WinName, left, top, width, height)
		{
			var popUpWin=0;
			if(popUpWin)

			{

			if(!popUpWin.closed) popUpWin.close();

			}

			popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
		//-->
		</SCRIPT>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:languagesdeal id="myLanguagesDeal" runat="server"></uc1:languagesdeal>
			<table cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
				<tr>
					<td vAlign="top" height="262">
						<table cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr>
								<td vAlign="top" bgColor="#ffffff">
									<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
										<TR>
											<TD style="WIDTH: 711px">
												<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
													<TR>
														<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("TextSystemSetting")%>
																--&gt;<%=myLanguagesDeal.GetMyString("TextDataBaseManage")%>
															</SPAN>
														</TD>
													</TR>
												</TABLE>
											</TD>
										</TR>
									</TABLE>
									<HR noShade SIZE="1">
									<asp:panel id="PanAccess" runat="server" Visible="False">
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="left" width="100%"><%=myLanguagesDeal.GetMyString("DBMangeTextSize")%><%=myLanguagesDeal.GetMyString("TextColonCharacter")%>
													<asp:Label id="lbAccessLen" runat="server"></asp:Label>&nbsp;&nbsp;
													<asp:Button id="btAccessbk" runat="server" CssClass="go-wenbenkuang" Text="开始备份压缩" onclick="btAccessbk_Click"></asp:Button>&nbsp;&nbsp;
													<asp:Label id="lbAccessMsg" runat="server" ForeColor="Red"></asp:Label></TD>
											</TR>
										</TABLE>
										<TABLE border="0">
											<TR>
												<TD height="5"></TD>
											</TR>
										</TABLE>
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="left" width="100%"><%=myLanguagesDeal.GetMyString("DBMangeTextbtMsgUpdate")%>&nbsp;&nbsp;
													<asp:Button id="btAccessUp" runat="server" CssClass="go-wenbenkuang" Text="开始升级" onclick="btAccessUp_Click"></asp:Button>&nbsp;&nbsp;
													<asp:Label id="lbAccessUpMsg" runat="server" ForeColor="Red"></asp:Label></TD>
											</TR>
										</TABLE>
										<TABLE cellSpacing="0" cellPadding="0" width="650" align="center" border="0">
											<TR>
												<TD align="left" width="100%">
													<HR noShade SIZE="1">
													<asp:datagrid id="dgAccess" runat="server" CssClass="table-shangxia" Width="100%" DataKeyField="FileName"
														AutoGenerateColumns="False" AllowPaging="false" PageSize="20">
														<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
														<Columns>
															<asp:BoundColumn DataField="FileName" HeaderText="DBMangeTextFileName">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:BoundColumn DataField="FileSize" HeaderText="DBMangeTextFileSize">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:BoundColumn DataField="FileTime" HeaderText="DBMangeTextFileBkTime">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:TemplateColumn HeaderText="TextOperation">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:Button id="btUpdate" Text="恢复" CssClass="go-wenbenkuang" CommandName="Update" Runat="server"></asp:Button>
																	<asp:Button id="btDelete" Text="删除" CssClass="go-wenbenkuang" CommandName="Delete" Runat="server"></asp:Button>
																</ItemTemplate>
															</asp:TemplateColumn>
														</Columns>
														<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
													</asp:datagrid></TD>
											</TR>
										</TABLE>
									</asp:panel>
									<asp:panel id="PanSQL" runat="server" Visible="False">
										<TABLE cellSpacing="1" cellPadding="5" width="650" align="center" bgColor="#cccccc" border="0">
											<TR bgColor="#ffffff">
												<TD align="left" width="100%"><%=myLanguagesDeal.GetMyString("DBMangeTextSQLLogTitleMsg1")%>
													<asp:Label id="lbSQLLogLen" runat="server"></asp:Label>&nbsp;&nbsp;
													<asp:Button id="btSQLClearLog" runat="server" CssClass="go-wenbenkuang" Text="清除日志" onclick="btSQLClearLog_Click"></asp:Button>&nbsp;&nbsp;
													<asp:Label id="lbSQLClearLogMsg" runat="server" ForeColor="Red"></asp:Label></TD>
											</TR>
											 <tr bgcolor="#ffffff">
												<td align="left" width="100%">
													<asp:Button ID="btSQLBackUp" runat="server" CssClass="go-wenbenkuang" Text="备份数据库"
														OnClick="btSQLBackUp_Click"></asp:Button>
													<asp:Label ID="lbSQLBackUpMsg" runat="server" ForeColor="Red"></asp:Label>
												</td>
											</tr>
										</TABLE>
										<TABLE border="0">
											<TR>
												<TD height="5"></TD>
											</TR>
										</TABLE>
									</asp:panel>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
