📄 head.asp
字号:
<%
'if session("name")="" then
' response.Write "<script>alert('请先登录!');window.location.href('index.asp');
'response.End
'end if
%>
<script language="JavaScript">
function hideAll()
{
document.getElementById("jg").style.display="none";
document.getElementById("rs").style.display="none";
document.getElementById("xt").style.display="none";
}
function disp(getid)
{
hideAll();
document.getElementById(getid).style.display="inline";
}
</script>
<!--导航条开始-->
<style type="text/css">
<!--
#hi{
font-family: "宋体";
font-size: 13px;
font-style: normal;
font-weight: bold;
color: #33CC33;
}
#clock {
color: #99CC66;
}
.struct {
border-right-style: solid;
border-right-color: #003399;
}
-->
</style>
<div>
<table width="880" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="184"><img src="../images/logo.gif" width="186" height="50" /></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="494">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" colspan="5" background="../images/temp/line.gif"></td>
</tr>
<tr>
<td height="3" colspan="5"></td>
</tr>
<td width="23%" height="18"><div align="center"><a href="#" id ="d1" onMouseOver="disp('jg');"><img src="../images/temp/dept.gif" border="0" width="100" height="18" /></a></div></td>
<td width="23%" height="18"><div align="center"><a href="#" id ="d2" onMouseOver="disp('rs');" ><img src="../images/temp/peron.gif" border="0" width="100" height="18" /></a></div></td>
<td width="16%" height="18"><div align="center"><a href="../Interview/Task.asp" onMouseOver="hideAll();"><img src="../images/temp/inv.gif" border="0" width="80" height="18" /></a></div></td>
<td width="19%" height="18"><div align="center"><a href="#" id ="d3" onmouseover="disp('xt');"><img src="../images/temp/sys.gif" border="0" width="80" height="18" /></a></div></td>
<td width="19%" height="18"><div align="center"><a href="../main.asp" onMouseOver="hideAll();"><img src="../images/temp/face.gif" border="0" width="100" height="18" /></a>
</div>
<div align="center"></div> <div align="center"></div></td>
</tr>
<tr>
<td height="18" colspan="5">
<table width="465" border="0" cellspacing="0" cellpadding="0" align="center">
<tr height="22">
<td>
<div id="jg" style="display:none;">
<a href="../Estruct/deptmt.asp">部门管理</a> | <a href="../Estruct/Post.asp">岗位管理</a> |
<a href="../Estruct/Grade.asp">行政级别管理</a> | <a href="../Estruct/Struct.asp">企业架构展示</a> </div>
<div id="rs" style="display:none;">
<a href="../Person/Search_emly.asp">员工搜索</a> | <a href="../Person/Search_file.asp">档案查询</a> |
<a href="../Person/Basic_form.asp">人事报表</a> | <a href="../Person/On_numbers.asp">人事分析</a> | <a href="../Person/Allshow_add.asp">人员新增</a></div>
<div id="xt" style="display:none;">
<a href="../System/Cert_manage.asp">证照设置</a> | <a href="../System/Tech_title.asp">职称设置</a> |
<a href="../System/Dept_grade.asp">部门等级设置</a> | <a href="../System/Contract_info.asp">合同信息</a>
| <a href="../System/Role.asp">权限管理</a> </div></td>
</tr>
</table> </td>
</tr>
</table>
</td>
<td width="202"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center">|<a href="#"></a><a href="../index.asp" onmouseover="hideAll();">退出</a>|<a href="../Include/about.htm" target="_blank">关于</a>|</div></td>
</tr>
<tr>
<td height="5" background="../images/temp/line 2.gif"></td>
</tr>
<tr height="63">
<td align="center" id="hello">
<span id="hi">
<script language="javaScript">
var now = new Date(),hour = now.getHours()
if(hour < 6){document.write("凌晨好!")}
else if (hour < 9){document.write("早上好!")}
else if (hour < 12){document.write("上午好!")}
else if (hour < 14){document.write("中午好!")}
else if (hour < 17){document.write("下午好!")}
else if (hour < 19){document.write("傍晚好!")}
else if (hour < 22){document.write("晚上好!")}
else {document.write("夜里好!")}
</script>
<%
dim rs_h
if session("PerId")<>"" then
set rs_h=server.CreateObject("ADODB.recordset")
rs_h.open "select personnel_name from personnel where personnel_id="&session("PerId"),conn,1,1
Response.Write rs_h(0)
rs_h.Close
set rs_h=nothing
end if
%>
</span>
<div id="clock"></div>
<script language=JavaScript>
var timerID = null;
var timerRunning = false;
function stopclock ()
{
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function startclock ()
{
stopclock();
showtime();
}
function showtime ()
{
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds()
//var timeValue = "" +((hours >= 12) ? "PM " : "AM " )
var timeValue = "" +hours;
//timeValue += ((hours >12) ? hours -12 :hours)
timeValue += ((minutes < 10) ? ":0" : ":") + minutes
timeValue += ((seconds < 10) ? ":0" : ":") + seconds
document.getElementById("clock").innerHTML = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
startclock()
</SCRIPT><br><br></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<center><img src="../images/68design.net_sub01_04 .jpg"></center>
</div>
<!--导航条结束-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -