2018-06-03 22:26:41 +08:00

63 lines
4.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page language="java" contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin.jspf" %>
<%if(CurPage.getParameter("SelectDialogTitle")!=null){%>
<title><%=CurPage.getParameter("SelectDialogTitle")%>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
</title><%}%>
<body style="overflow-y:hidden;" onload="javascript:changeStyle();" onresize="javascript:changeStyle();">
<iframe id="SelectDialog" name="SelectDialog" style="height:100%;width:100%;" src="<%=sWebRootPath+CurPage.getParameter("SelectDialogUrl")%>?CompClientID=<%=sCompClientID%>" frameborder="0"></iframe>
<div id="ButtonsDiv" align="center"><table><tr>
<td width="33%"></td>
<td align="center"><%=new Button("确认","","javascript:doSure()","","","high2").getHtmlText(CurPage) %></td>
<%--
<%if("true".equals(CurPage.getParameter("append"))){%><td align="center"><%=new Button("添加","","javascript:window.frames['SelectDialog'].doAppend();","","","high2").getHtmlText() %></td><%}%>
--%>
<td align="right" width="23%"><%=new Button("清空","","javascript:doClear();","","","high").getHtmlText(CurPage) %></td>
<td align="right" width="10%"><%=new Button("取消","","javascript:doCancel();","","","high").getHtmlText(CurPage) %></td>
</tr></table></div>
</body>
<script type="text/javascript">
<!--
function doSure(){
<%if("true".equals(CurPage.getParameter("append"))){%>
//if(confirm("此操作会覆盖原来的数据,确实要继续吗")==false)
// return;
<%}%>
window.frames['SelectDialog'].doSure();
}
function doAppend(){
window.frames['SelectDialog'].doAppend();
}
function doClear(){
if(typeof window.frames['SelectDialog'].doClear != "function"){
closeDialog("_CLEAR_");
}else{
window.frames['SelectDialog'].doClear();
}
}
function doCancel(){
if(typeof window.frames['SelectDialog'].doCancel != "function"){
closeDialog();
}else{
window.frames['SelectDialog'].doCancel();
}
}
function closeDialog(sStr){
parent.AsDialog.ClosePage(sStr);
}
document.onkeydown = function(e){
var e = e || window.event;
if(e.keyCode==27){
doCancel();
}
}
function changeStyle(){
document.getElementById("SelectDialog").style.height = document.body.clientHeight - document.getElementById("ButtonsDiv").offsetHeight - 24;
}
//-->
</script>
<%@ include file="/Frame/resources/include/include_end.jspf" %>