tab 页面的实现
<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK" /><title>产品库详情主页面</title><link jwcid="@xylib:Css" href="SystemStyle.css" /><script jwcid="@xylib:ImpScript" script="InitTableEvent.js" /><script jwcid="@xylib:ImpScript" script="PublicScript.js" /><script type="text/javascript"><!--tab页面切换 function turnToPage(str){ if(str == "zbjl"){ tabChange(1,1,3); document.forms[0].target="zbjl"; document.getElementById("flag").value = "zbjl"; document.getElementById("zbjlpage").click(); }else if(str == "cytbqk"){ tabChange(2,1,3); document.forms[0].target="cytbqk"; document.getElementById("flag").value = "cytbqk"; document.getElementById("cytbqkpage").click(); }else if(str == "cpgys"){ tabChange(3,1,3); document.forms[0].target="cpgys"; document.getElementById("flag").value = "cpgys"; document.getElementById("cpgyspage").click(); } } function resizeIframe(frameObj) { var height = frameObj.contentWindow.document.body.scrollHeight; if(height>0) { frameObj.style.height = height; } }function toggle(sDivId) {var oDiv = document.getElementById(sDivId);oDiv.style.display = (oDiv.style.display == "none") ? "block":"none";}function refresh() {document.forms[0].target = "_self";document.forms[0].submit();}//--></script></head><body><form jwcid="cpkxxgl@Form"><span jwcid="flag@xylib:Hidden" value="ognl:flag"/><span jwcid="gg_dmnrId@xylib:Hidden" value="ognl:gg_dmnr.id" /><span jwcid="gg_dmnrDmbz@xylib:Hidden" value="ognl:gg_dmnr.dmbz" /><span jwcid="gg_dmnrDmmc@xylib:Hidden" value="ognl:gg_dmnr.dmmc" /><table width="100%" align="center" cellpadding="0" cellspacing="0" id="DataTable"> <tr > <td colspan="10"> <div style="float:left"><span jwcid="@Insert" value="ognl:('产品明细')"/></div></td> </tr></table><span jwcid="@xylib:MultTab" active="1" start="1" width="100%"> <span jwcid="@xylib:Tab" caption="ognl:'中标记录'" click="turnToPage('zbjl')"> <iframe id="zbjl" name="zbjl" width="100%" height="370" marginwidth="0" marginheight="0" frameBorder="0" scrolling="no" onload="resizeIframe(this)"></iframe> </span> <span jwcid="@xylib:Tab" caption="ognl:'参与投标情况'" click="turnToPage('cytbqk')"> <iframe id="cytbqk" name="cytbqk" width="100%" height="370" marginwidth="0" marginheight="0" frameBorder="0" scrolling="no" onload="resizeIframe(this)"></iframe> </span> <span jwcid="@xylib:Tab" caption="ognl:'提供该产品供应商'" click="turnToPage('cpgys')"> <iframe id="cpgys" name="cpgys" width="100%" height="370" marginwidth="0" marginheight="0" frameBorder="0" scrolling="no" onload="resizeIframe(this)"></iframe> </span> </span><p align="center"> <input jwcid="zbjlpage@Submit" listener="listener:showStateListPage" type="button" value="中标记录" style="display:none"/> <input jwcid="cytbqkpage@Submit" listener="listener:showStateListPage" type="button" value="参与投标情况" style="display:none"/> <input jwcid="cpgyspage@Submit" listener="listener:showStateListPage" type="button" value="提供该产品供应" style="display:none"/></p></form><script type="text/javascript"> turnToPage("<span jwcid='@Insert' value='ognl:flag' raw='true'/>");</script></body></html>
?
/** * @description:跳转到其它tab页面 * @param cycle * @return IPage */public IPage showStateListPage(IRequestCycle cycle) {IPage resultPage = null;try {if(null!= this.getFlag()){if("zbjl".equals(this.getFlag())){ListZbjlPage zbjlPage = this.getZbjlListPage();zbjlPage.setGg_dmnr(gg_dmnr);resultPage = zbjlPage;}else if("cytbqk".equals(this.getFlag())){ListCytbqkPage cytbqkPage = this.getCytbqkListPage();cytbqkPage.setGg_dmnr(gg_dmnr);resultPage = cytbqkPage;}else if("cpgys".equals(this.getFlag())){ListCpgysPage cpgysPage = this.getCpgysListPage();cpgysPage.setGg_dmnr(gg_dmnr);resultPage = cpgysPage;}}} catch (MisException e) {e.printStackTrace();SysInforPage sysInforPage = this.getSysInforPage();sysInforPage.setCode(SysInforPage.CODE_FAIL);sysInforPage.setMsInfo(e.getMessage());resultPage = sysInforPage;} catch (Exception e) {e.printStackTrace();SysInforPage sysInforPage = this.getSysInforPage();sysInforPage.setCode(SysInforPage.CODE_ERR);sysInforPage.setMsInfo("发生未知异常,请与管理员联系!");resultPage = sysInforPage;}return resultPage;}
?