📄 tab.asp
字号:
<%
'************************************************************************************************
' 文件名: emp_oe.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="hr.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:1}
</style>
<script language="JavaScript">
function public_Labels(label1, label2, label3, label4, label5)
{
t1.innerText = label1;
t2.innerText = label2;
t3.innerText = label3;
t4.innerText = label4;
t5.innerText = label5;
}
//a public function that the container uses to pass in values for the card containers
function public_Contents(contents1, contents2, contents3, contents4, contents5)
{
t1Contents.innerHTML = contents1;
t2Contents.innerHTML = contents2;
t3Contents.innerHTML = contents3;
t4Contents.innerHTML = contents4;
t5Contents.innerHTML = contents5;
init();
}
//sets the default display to tab 1
function init()
{
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:370" 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>
</tr>
<tr height=2>
<td id="t1base" style="background-color:white"></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>
</tr>
<tr>
<td height="370" colspan="7" id="tabContents" style="border-style:solid;border-width:1px;border-color:white" align=center valign=top>
<!-- 基本信息 -->
<div class="conts" id="t1Contents" style="display:none;">
<%=TabDescription("images/basic.gif", "请输入该员工的基本信息")%>
<IFRAME frameborder=0 scrolling=no src="basic.asp?emp_serial=<%=pEmpSerial%>" width=590 height=312 align=center>
</IFRAME>
</div>
<div class="conts" id="t2Contents" style="display:none;vertical-align:middle">
<%=TabDescription("images/photo.gif", "请上传员工照片")%>
<IFRAME frameborder=0 scrolling=no src="photo.asp?emp_serial=<%=pEmpSerial%>" width=590 height=300 align=center>
</IFRAME>
</div>
<div class="conts" id="t3Contents" style="display:none">
<%=TabDescription("images/relation.gif", "请输入该员工的主要社会关系")%>
<IFRAME frameborder=0 scrolling=no src="relation.asp?emp_serial=<%=pEmpSerial%>" width=590 height=300 align=center>
</IFRAME>
</div>
<div class="conts" id="t4Contents" style="display:none">
<%=TabDescription("images/resume.gif", "请输入该员工的学习工作经历 ( 从中学开始 )")%>
<IFRAME frameborder=0 scrolling=no src="resume.asp?emp_serial=<%=pEmpSerial%>" width=590 height=300 align=center>
</IFRAME>
<!-- include file="t_resume.inc" -->
<!-- include file="t_resume.asp" -->
</div>
<div class="conts" id="t5Contents" style="display:none">
<%=TabDescription("images/other.gif", "请输入有关该员工的补充说明")%>
<IFRAME frameborder=0 scrolling=no src="memo.asp?emp_serial=<%=pEmpSerial%>" width=590 height=300 align=center>
</IFRAME>
</div>
</td>
</tr>
</table>
<%
'-------------------------------------------------------------------------------
' 主体到这里结束
'*******************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -