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.

74 lines
2.7 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>dialog公用页面</title>
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js"></script>
<script type="text/javascript">
//获取url参数
var _wid = $.getURLParam('wid');
var strparam = $.getURLParam('param');
strparam = unescape(strparam);
strparam = strparam.replace(/\\\'/ig,"\'");
var jparam = $.str2json(strparam);
var _targeturl = jparam.url;
var _queryParams = jparam.queryParams;
if(-1!=_targeturl.indexOf('?')){
_targeturl += '&wid='+_wid+'&param='+strparam;
}else{
_targeturl += '?wid='+_wid+'&param='+strparam;
}
for(var att in _queryParams){
_targeturl += '&'+att+'='+_queryParams[att];
}
window.onload = function(){
var mid_sub = $.method_reg(window,_submit);
var mid_can = $.method_reg(window,_cancel);
_targeturl += '&mid_sub='+mid_sub;
_targeturl += '&mid_can='+mid_can;
var ifrHTML = '<iframe id="ifr_page" name="ifr_page" src="'+_targeturl+'" width="100%" height="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" ></iframe>';
$('#layout_center').html(ifrHTML);
};
//点击提交
function _submit(){
var jres = document.getElementById('ifr_page').contentWindow.inputpop_getValue();
if(false==jres){
}else{
$.dialog_submit(_wid,jres);
}
}
function _cancel(){
$.dialog_cancel(_wid);
}
</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:0px;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>
<a id="_btncancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="_cancel()">退出</a>
</div>
</body>
</html>