You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
2.1 KiB

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.wdk.WDKConstant"%>
<%@ page import="org.wdk.WDKCore"%>
<%@ page import="org.wdk.WDK"%>
<%@ page import="com.noblelift.imp.platform.module.portal.source.SessionUser"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
String WDK_ROOT = WDKCore.WDK_ROOT;
SessionUser su = (SessionUser)WDK.getSessionUser(request, response);
WDK.writeSessionUser(out, su);
String RSS_ROOT = WDK_ROOT +"/"+WDKConstant.Theme+"/"+WDKCore.THEME;
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>版本检测</title>
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js"></script>
<script type="text/javascript">
window.onload = function(){
var _ischeck = $.getURLParam('ischeck')+'';
var _errtype = $.getURLParam('errtype')+'';
var _forceupgrade = $.getURLParam('forceupgrade')+'';
var _newversion = $.getURLParam('newversion');
if('1'==_ischeck){
$.getRoot().document.location.href = $.base()+"/wdk";
}else{
if('1'==_errtype){
//强制从客户端进入
alert('为保证通信数据安全,请从客户端访问!');
}else{
if('1'==_forceupgrade){
//强制升级
$('#layout_center').css('display','block');
alert('当前客户端版本已停用,请下载最新的客户端');
}else{
if(confirm('当前有更新,是否下载最新版本?')){
$('#layout_center').css('display','block');
}else{
$.getRoot().document.location.href = $.base()+"/wdk";
}
}
}
}
};
</script>
</head>
<body class="easyui-layout" style="padding:0px;margin:0px;background-color:#FFFFFF;">
<div id="layout_center" data-options="region:'center',border:false,collapsed:false" style="background:#B3DFDA;text-align:center;valign:center;overflow:hidden;display:none;" >
下载最新版本客户端:<a href="#" onclick="return false;">WDKBrowser V1.1</a>
</div>
</body>
</html>