<!--#include file="updata_fun.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script type="text/javascript" src="<%=sitepath%>plugins/layer/layer.min.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content fadeInUp">
  <div class="row">
    <div class="col-sm-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <h5>启点在线(KCMS)网站管理系统在线更新</h5>
        </div>
        <div class="ibox-content">
          <div class="row">
            <div class="col-sm-5">
              <dl class="dl-horizontal">
                <dt>补丁时间：</dt>
                <dd><%=FormatDateTime(vertime,1)%> </dd>
                <dt>补丁版本：</dt>
                <dd><%=verid%> </dd>
                <dt>补丁地址：</dt>
                <dd><%=RemoteFileUrl%></dd>
              </dl>
            </div>
            <div class="col-sm-7" id="cluster_info">
              <dl class="dl-horizontal">
                <dt>本地时间：</dt>
                <dd><%=FormatDateTime(cms_vertime,1)%></dd>
                <dt>本地版本：</dt>
                <dd><%=cms_version%> </dd>
                <dt>补丁大小：</dt>
                <dd><%=getnum(RemoteFileSize/1024/1024)%>M</dd>
              </dl>
            </div>
          </div>
          <div class="row">
            <div class="col-sm-3">
              <dl class="dl-horizontal">
                <dt>更新说明：</dt>
              </dl>
            </div>
            <div class="col-sm-7" style="overflow: auto;height: 150px;">
              <div style="position: relative; width: auto;  background:#333; color:#999; padding:10px"> <%=verlog%> </div>
            </div>
          </div>
          <div class="row  m-t" id="iframe">
           
          </div>
          <div class="row">
            <div class="col-sm-3"></div>
            <div class="col-sm-7">
              <button type="button" class="btn btn-primary btn-sm btn-block" onClick="download()" id="updataing"> <i class="fa fa-down"></i> 下载补丁 </button>
            </div>
          </div>
        </div>
      </div>
      <div class="alert alert-warning"> 使用必读：<br>
        使用自动更新必须保证文件夹有写入权限，否则更新失败造成一切损失概不负责。<br>
        使用自动更新必须备份整站，一旦升级失败可以还原否则造成一切损失概不负责。<br>
      </div>
    </div>
  </div>
</div>
<script>
function download(){
$("#updataing").removeAttr("onclick");
var div = document.getElementById("iframe");
var iframe = document.createElement("iframe");
iframe.src = 'updata_fun.asp?act=download';
iframe.style.width = "100%";
iframe.style.height = "100%";
div.appendChild(iframe);
}
</script>
</BODY>
</HTML>