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

72 lines
4.3 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 style="height:40px;">
<td nowarp height="35" align=center valign="middle" colspan="2" >
<%=new Button("确认", "", "doSure()","","btn_icon_submit").getHtmlText(CurPage)%>
<%--
<%if("true".equals(CurPage.getParameter("append"))){%><%=new Button("添加","","window.frames['SelectDialog'].doAppend();","","","").getHtmlText(CurPage) %><%}%>
--%>
<%-- <%=new Button("清空", "", "doClear()","","btn_icon_delete").getHtmlText(CurPage)%> --%>
<%=new Button("取消", "", "doCancel()","","btn_icon_close").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);
}
function setTopTitle(sTitle) {
parent.AsDialog.SetDialogTitle(sTitle);
}
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" %>