<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<!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>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线升级</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "utility_upgrade";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
<%If Manager.UpgradeExpire < DateTime.Now%>
	var canUpgrade = false;
<%Else%>
	var canUpgrade = true;
<%EndIf%>
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_upgrade_url = "升级程序：";
var _lang_upgrade_readme = "升级说明：";
var _lang_upgrade_time = "更新时间：";
var _lang_no_update = "没有新版本发布！";
var _lang_select_file = "请选择文件！";
var _lang_type_must_be = "类型应为：";
var _lang_start_upload = "开始上传...";
var _lang_uploading = "正在上传...";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title">在线升级</div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="data/list.aspx?Lang=<%=ContentLang%>">数据压缩和备份</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">在线升级</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="other.aspx?Lang=<%=ContentLang%>">其他工具</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<table border="0" cellpadding="4" cellspacing="1">
		<tbody>
			<tr>
				<th>建议：</th>
				<td>
					1）升级之前，请先通过系统管理 - 系统设置 - 全局设置，暂时关闭网站。<br />
					2）升级程序会有可能因各种原因失败，所以先通过实用工具 - 数据备份和压缩，做网站备份。<br />
					3）如果升级程序失败了，可通过备份好的网站恢复原状。
				</td>
			</tr>
			<tr>
				<th>第一步：</th>
				<td><button id="CheckUpgrade">检查更新</button><div id="Result"></div></td>
			</tr>
			<tr>
				<th>第二步：</th>
				<td>
					<input id="FileTextbox" type="text" name="File" size="60" class="Text" />
					<input id="FileBrowse" type="button" value="浏览..." />
					<%If Manager.UpgradeExpire < DateTime.Now%>
						<button id="UploadUpgrade" disabled="disabled">上传升级程序（未许可）</button>
					<%Else%>
						<button id="UploadUpgrade">上传升级程序</button>
					<%EndIf%>
				</td>
			</tr>
			<tr>
				<th>第三步：</th>
				<td><button id="Upgrade">立刻升级</button></td>
			</tr>
		</tbody>
	</table>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>uploader.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>system.js"></script>
</body>
</html>