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.
95 lines
3.3 KiB
95 lines
3.3 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>
|
|
<%@page import="org.wdk.WDKConstant"%>
|
|
<%@page import="org.wdk.WDKCore"%>
|
|
<html>
|
|
<head>
|
|
<base href="<%=basePath%>" target="_self">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>alert公用页面</title>
|
|
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
window.onerror = function(message, url, line){
|
|
alert2("脚本运行错误。\n错误信息:"+ message +"\n错误页面:" + url + "\n错误位置:" + line);
|
|
};
|
|
//获取url参数
|
|
var _wid = $.getURLParam('wid');
|
|
var strparam = $.getURLParam('param');
|
|
strparam = unescape(strparam);
|
|
//strparam = strparam.replace(/\\\'/ig,"\'");
|
|
var jparam = $.str2json(strparam);
|
|
var _desc = jparam.desc;
|
|
var _detail = jparam.detail;
|
|
var _atype = jparam.atype;
|
|
var _closetime= jparam.closetime?jparam.closetime:3;
|
|
_closetime=parseInt(_closetime);
|
|
var timei=_closetime;
|
|
var _autoclose= (true==jparam.autoclose || "true"==jparam.autoclose)?true:false;
|
|
window.onload = function(){
|
|
var html = [];
|
|
html.push('<table>');
|
|
html.push(' <tr>');
|
|
html.push(' <td style="width:40px;">');
|
|
if(''==_atype){
|
|
html.push(' ');
|
|
}else{
|
|
html.push('<div class="messager-icon messager-'+_atype+'"></div>');
|
|
}
|
|
html.push(' </td>');
|
|
html.push(' <td height="40px" valign="middle">'+_desc+'</td>');
|
|
html.push(' </tr>');
|
|
if(null!=_detail&&""!=_detail){
|
|
html.push(' <tr>');
|
|
html.push(' <td colspan="2" style="height:25px;font-size:15px;font-weight:bold;">详细内容<td>');
|
|
html.push(' </tr>');
|
|
html.push(' <tr>');
|
|
html.push(' <td colspan="2" >');
|
|
html.push(' <div style="height:140px;width:100%;overflow-y:auto">'+_detail+'</div>');
|
|
html.push(' </td>');
|
|
html.push(' </tr>');
|
|
}
|
|
html.push('</table>');
|
|
$('#layout_center').html(html.join(""));
|
|
|
|
if(_autoclose){
|
|
var vtext=$("#_btnsubmit").text();
|
|
$("#_btnsubmit").linkbutton({text:vtext+"["+timei+"]"});
|
|
//setTimeout(function(){_submit();},_closetime);
|
|
setInterval(function(){
|
|
timei--;
|
|
$("#_btnsubmit").linkbutton({text:vtext+"["+timei+"]"});
|
|
if(timei<=0){
|
|
_submit();
|
|
}
|
|
},1000);
|
|
}
|
|
};
|
|
|
|
//点击提交
|
|
function _submit(){
|
|
$.getRoot().$('#'+_wid).window('close');
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="easyui-layout" data-options="fit:true" style="padding:0px;margin:0px;background-color:#FFFFFF;">
|
|
<div id="layout_center" data-options="region:'center'" style="padding:10px;overflow:hidden;">
|
|
|
|
</div>
|
|
<div data-options="region:'south',border:false" style="height:40px;text-align:right;padding:5px 5px 0;">
|
|
<a id="_btnsubmit" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="_submit()">确定</a>
|
|
</div>
|
|
</body>
|
|
</html>
|