<%@Page Language="C#" Inherits="IWMS.Admin.Maintain" MasterPageFile="admin.master"%>
<asp:Content ContentPlaceHolderId="cphHead" runat="server">
	<script type="text/javascript" src="inc/html_preview.js"></script>
</asp:Content>
<asp:Content ContentPlaceHolderId="cphMain" runat="server">

	<form runat="server">
	<div class="mframe">
	<div class="tl"></div>
	<div class="rt"></div>
	<div class="tm">
		<span class="tt">系统维护</span>
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm">
		<asp:Label id="myLabel" class="msgBar" EnableViewState="false" runat="server"/>
		<table align="center" width="95%">
		<asp:PlaceHolder id="ph_compact" runat="server">
		<tr><td colspan="2" class="tdbg-dark" height="25" align="center"><b>压缩数据库</b></td></tr>
		<tr><td height="40">
		　　<asp:Literal id="compactMsg" runat="server"/><br/>
		　　压缩access数据库后性能更好更稳定，建议定期压缩
		</td><td width="120">
			<asp:Button id="Submit" text="开始压缩" onclick="compactDb" runat="server"/>
		</td>
		</tr>
		</asp:PlaceHolder>
		<tr><td colspan="2" class="tdbg-dark" height="25" align="center"><b>清除缓存</b></td></tr>
		<tr><td height="40">
		　　如果您更换了数据库请点击清除缓存
		</td><td>
			<asp:Button id="ClearCache" Text="清除缓存" OnClick="clearCache" runat="server" />
		</td>
		</tr>
		<tr><td colspan="2" class="tdbg-dark" height="25" align="center"><b>暂停网站访问</b><br/></td></tr>
		<tr><td height="40">
		　　暂停访问说明<span class="explain">内容为html文件</span><br/>
		　　<asp:TextBox id="pauseReason" style="vertical-align:top" TextMode="MultiLine" Rows="3" Columns="50" runat="server"/>
		</td><td>
			<asp:Button id="pause" Text="暂停" OnClick="pauseSite" runat="server" /><br/>
			<asp:Button id="resume" Text="恢复访问" OnClick="resumeSite" Visible="false" runat="server" />
		</td>
		</tr>
		<tr><td colspan="2" class="tdbg-dark" height="25" align="center"><b>终止应用程序</b></td></tr>
		<tr><td height="40">
		　　终止当前应用程序，可清理应用程序获得更多可用内存<br/>
		　　当采集或生成静态中途出现问题可在此恢复系统重运行
		</td><td>
			<asp:Button id="UnloadApp" Text="终止应用程序" OnClick="unloadApp" runat="server" />
		</td>
		</tr>
		</table>	
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>
	</form>

</asp:Content>