64 lines
2.1 KiB
Plaintext
64 lines
2.1 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
||
include file="/IncludeBegin.jsp"%><%
|
||
/*
|
||
页面说明:示例tab页面
|
||
*/
|
||
%>
|
||
<script type="text/javascript">
|
||
var tabstrip = new Array();
|
||
<%
|
||
String sTabStrip[][] = {
|
||
{"","分组Info","doTabAction(\'firstTab\')"},
|
||
{"","STRIPT","doTabAction(\'secondTab\')"},
|
||
{"","TAB","doTabAction(\'thirdTab\')"},
|
||
{"","空白页","doTabAction(\'fourthTab\')"},
|
||
{"","不切换页","doTabAction(\'fivethTab\')"}
|
||
};
|
||
|
||
String sTableStyle = "align=center cellspacing=0 cellpadding=0 border=0 width=98% height=98%";
|
||
String sTabHeadStyle = "";
|
||
String sTabHeadText = "<br>";
|
||
String sTopRight = "";
|
||
String sTabID = "tabtd";
|
||
String sIframeName = "TabContentFrame";
|
||
String sDefaultPage = sWebRootPath+"/Blank.jsp?TextToShow=正在打开页面,请稍候";
|
||
String sIframeStyle = "width=100% height=100% frameborder=0 hspace=0 vspace=0 marginwidth=0 marginheight=0 scrolling=no";
|
||
|
||
out.println(HTMLTab.genTabArray(sTabStrip,"tab_DeskTopInfo","document.getElementById('"+sTabID+"')"));
|
||
%>
|
||
</script>
|
||
<html>
|
||
<head>
|
||
<title>示例tab页面</title>
|
||
</head>
|
||
<body leftmargin="0" topmargin="0" class="pagebackground">
|
||
<%@include file="/Resources/CodeParts/Tab04.jsp"%>
|
||
</body>
|
||
</html>
|
||
<script type="text/javascript">
|
||
/**
|
||
* 默认的tab执行函数
|
||
* 返回true,则切换tab页;
|
||
* 返回false,则不切换tab页
|
||
*/
|
||
function doTabAction(sArg){
|
||
if(sArg=="firstTab"){
|
||
AsControl.OpenView("/FrameCase/widget/dw/ExampleInfo01.jsp","","<%=sIframeName%>","");
|
||
}else if(sArg=="secondTab"){
|
||
AsControl.OpenView("/FrameCase/Layout/ExampleStrip06.jsp","","<%=sIframeName%>","");
|
||
}else if(sArg=="thirdTab"){
|
||
AsControl.OpenView("/FrameCase/Layout/ExampleTab06.jsp","","<%=sIframeName%>","");
|
||
}else if(sArg=="fourthTab"){
|
||
AsControl.OpenView("/Blank.jsp","","<%=sIframeName%>","");
|
||
}else{
|
||
alert("返回false,页面不切换!");
|
||
}
|
||
}
|
||
|
||
$(document).ready(function(){
|
||
//参数依次为: tab的ID,tab定义数组,默认显示第几项,目标单元格
|
||
hc_drawTabToTable("tab_DeskTopInfo",tabstrip,1,document.getElementById('<%=sTabID%>'));
|
||
doTabAction('firstTab');
|
||
});
|
||
</script>
|
||
<%@ include file="/IncludeEnd.jsp"%> |