日期:2014-05-17 浏览次数:20724 次
/** * @see 弹出模式窗体 * @param title 窗体的标题 * @param winWidth 窗体的宽度 * @param winHeight 窗体的高度 * @param url 窗体的链接 */ function dialogWin(title, winWidth, winHeight, url) { if (getO("divDialogWin") == null) { var newDiv = document.createElement("div"); newDiv.setAttribute("id", "divDialogWin"); newDiv.style.border = "2px solid #33CCFF"; newDiv.style.position = "absolute"; newDiv.style.zIndex = 10; newDiv.style.backgroundColor = "#FFFFFF"; newDiv.style.fontSize = "12px"; newDiv.style.display = "none"; if (document.form1 != null) { document.form1.appendChild(newDiv); } else if (getO("form1") != null) { getO("form1").appendChild(newDiv); } else { document.body.appendChild(newDiv); } var newDiv1 = document.createElement("div"); newDiv1.style.backgroundColor = "#33CCFF"; newDiv1.style.height = "22px"; newDiv1.innerHTML = '<table cellpadding="0" cellspacing="0" border="0"><tr><td align="left" height="22" style="cursor:move" id="divDialogTitle" onmousedown="mousePlead1(event,\'divDialogWin\')"></td><td align="right" width="20"><a href="javascript:cliseDialog()" id="linkCloseDialog" title="关闭"><img src="' + getV("hdfPath") + '/common_res/images/check/dialogclose.gif" border="0"/></a></td></tr></table>'; newDiv.appendChild(newDiv1); var newDiv2 = document.createElement("div"); newDiv2.setAttribute("align", "center"); newDiv2.style.paddingTop = "0px"; newDiv2.style.paddingLeft = "0px"; newDiv2.innerHTML='<iframe id="frmDialogWin" name="frmDialogWin" frameborder="0" scrolling="auto" align="top" marginheight="0" marginwidth="0"></iframe>'; newDiv.appendChild(newDiv2); } dialogResize(winWidth, winHeight); getO("frmDialogWin").src = url; getO("divDialogTitle").style.width = (winWidth - 20) + "px"; fullDiv("divDialogTitle", " <strong><font color='#FFFFFF'>" + title + "</font></strong>"); setEnvelopDiv(); showSelects("0"); showDiv("divDialogWin", "1"); } /** * @see 关闭模式窗体 */ function cliseDialog() { if (getO("divEnvelop") != null) { showDiv("divEnvelop", "0"); } showSelects("1"); if (getO("divDialogWin") != null) { showDiv("divDialogWin", "0"); } } /** * @see 给模式窗体重新设置大小 * @param winWidth 窗体的宽度 * @param winHeight 窗体的高度 */ function dialogResize(winWidth, winHeight) { if (ge