📄 tab_bak.asp
字号:
<%
'************************************************************************************************
' 文件名: emp_ol.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
' 创建人 : 周秋舫
' 日 期 : 2002-05-13
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 业主员工信息查询
' 版 本 :
'*******************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
'response.end
%>
<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="emp_oe.inc" -->
<%
'call CheckSecurity()
'*******************************************************************************
' 服务器端代码
dim pEmpSerial : pEmpSerial = GetParam("emp_serial")
if CStr(GetCoId) <> "1" then
Response.Write "你不是业主公司的员工"
Response.end
end if
%>
<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">
<style>
.conts {display:none}
.tab {border-style:solid; border-width:1px;border-color:white gray silver white;
color:black; background-color:silver;text-align:center;cursor:hand}
.selTab {border-style:solid; border-width:1px;border-color:white black white white;
color:black; background-color:white;text-align:center;cursor:hand;}
input {color:blue;border-width:0}
</style>
<script LANGUAGE="JavaScript">
function public_Labels(label1, label2, label3, label4, label5, label6, label7)
{
t1.innerText = label1;
t2.innerText = label2;
t3.innerText = label3;
t4.innerText = label4;
t5.innerText = label5;
t6.innerText = label6;
t7.innerText = label7;
}
//a public function that the container uses to pass in values for the card containers
function public_Contents(contents1, contents2, contents3, contents4, contents5, contents6, contents7)
{
t1Contents.innerHTML = contents1;
t2Contents.innerHTML = contents2;
t3Contents.innerHTML = contents3;
t4Contents.innerHTML = contents4;
t5Contents.innerHTML = contents5;
t6Contents.innerHTML = contents6;
t7Contents.innerHTML = contents7;
init();
}
//sets the default display to tab 1
function init()
{
// tabContents.innerHTML = t1Contents.innerHTML;
t1Contents.style.display = "block";
}
//this is the tab switching function
var currentTab;
var tabBase;
var firstFlag = true;
function changeTabs()
{
if(firstFlag == true)
{
currentTab = t1;
tabBase = t1base;
firstFlag = false;
}
if(window.event.srcElement.className == "tab")
{
currentTab.className = "tab";
tabBase.style.backgroundColor = "white";
// 原来的tab的内容隐藏
tabBaseID = currentTab.id + "base";
tabContentID = currentTab.id + "Contents";
tabBase = document.all(tabBaseID);
tabContent = document.all(tabContentID);
tabContent.style.display = "none";
// 新的tab的内容显示
currentTab = window.event.srcElement;
tabBaseID = currentTab.id + "base";
tabContentID = currentTab.id + "Contents";
tabBase = document.all(tabBaseID);
tabContent = document.all(tabContentID);
currentTab.className = "selTab";
tabBase.style.backgroundColor = "";
tabContent.style.display = "block";
}
}
</script>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg" onclick="changeTabs()" onload="init()">
<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'*******************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------
%>
<table style="width:600; height:400" cellspacing="0" cellpadding="3" bgcolor="white" style="border:1px solid green">
<tr>
<td id="t1" class="selTab" HEIGHT="25">基本信息</td>
<td id="t2" class="tab">选项二</td>
<td id="t3" class="tab">社会关系</td>
<td id="t4" class="tab">个人简历</td>
<td id="t5" class="tab">选项五</td>
<td id="t6" class="tab">选项六</td>
<td id="t7" class="tab">选项七</td>
</tr>
<tr height=2>
<td id="t1base" style="border-left:solid 1px silver;"></td>
<td id="t2base" style="background-color:white"></td>
<td id="t3base" style="background-color:white"></td>
<td id="t4base" style="background-color:white"></td>
<td id="t5base" style="background-color:white"></td>
<td id="t6base" style="background-color:white"></td>
<td id="t7base" style="background-color:white; border-right:solid thin white"></td>
</tr>
<tr>
<td height="300" colspan="7" id="tabContents" style="border-style:solid;border-width:1px;border-color:white" align=center>
sample contents<br>
<div class="conts" id="t1Contents" style="display:none">
<!-- #include file="t_relation.asp" -->
</div>
<!-- 基本信息 -->
<div class="conts" id="t1_Contents" style="display:none">
<IFRAME frameborder=0 width=580 height=300 src="relation.asp?emp_serial=<%=pEmpSerial%>" scrolling=no>
</IFRAME>
</div>
<div class="conts" id="t2Contents" style="display:none">Tab2的内容</div>
<div class="conts" id="t3Contents" style="display:none"><%=Relations%></div>
<div class="conts" id="t4Contents" style="display:none"><%=Relations%></div>
<div class="conts" id="t5Contents" style="display:none">Tab5的内容</div>
<div class="conts" id="t6Contents" style="display:none">Tab6的内容</div>
<div class="conts" id="t7Contents" style="display:none">Tab7的内容</div>
</td>
</tr>
<tr height="25" bgcolor=white>
<td colspan=7 align=right valign=middle>
<img border=0 src="../images/button/ok.gif" style="cursor:hand">
<img border=0 src="../images/button/cancel.gif" style="cursor:hand">
</td>
</tr>
</table>
<%
'-------------------------------------------------------------------------------
' 主体到这里结束
'*******************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -