📄 admin_top.asp
字号:
<%
Option Explicit
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
%>
<!--#Include File="../Conn.asp"-->
<!--#Include File="Admin_CheckPurview.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body {
color:#444444;
background-image:url(Images/top_bg.gif);
FONT-FAMILY:Arial, Helvetica, sans-serif,宋体;
font-size: 12px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding:0px;
scrollbar-face-color: #DCDCDC;
scrollbar-face-color: #2B73F1;
scrollbar-shadow-color: #6EC0FF;
scrollbar-highlight-color: #0650D2;
scrollbar-3dlight-color: #6EC0FF;
scrollbar-darkshadow-color: #0650D2;
scrollbar-track-color: #0650D2;
scrollbar-arrow-color: #FDEDA;
}
td {
FONT-FAMILY:Arial, Helvetica, sans-serif,宋体;
font-size:12px;
word-break:break all;
word-wrap:word-break;
line-height: 150%;
}
a:link, a:visited, a:hover { color: #FFFFFF;text-decoration:none}
#bookstatus{float:left; margin-left:20px; color:#ffffff; padding-top:12px;}
#bookstatus div{ float:left;}
#bookstatus ul{ list-style:none; margin:0px;}
#bookstatus li{ float:left; margin-right:10px;}
</style>
<title>顶部导航</title>
<script src="../Js/Ajax.js" language="javascript"></script>
<script language="javascript">
var open_image = new Image();
var close_image = new Image();
open_image.src = 'Images/top_open.gif';
close_image.src = 'Images/top_close.gif';
var display = true;
function lControl(){
if(display){
display = false;
imgControl.src = open_image.src;
imgControl.alt = '打开管理导航';
parent.frame.cols='0,*';
}else{
display = true;
imgControl.src = close_image.src;
imgControl.alt = '关闭管理导航';
parent.frame.cols='180,*';
}
}
function ob(surl, sname){
this.url = surl;
this.name = sname;
}
var an = new Array();
an[0] = new ob("Admin_HotelBook.asp?BookStatus=0", "酒店");
an[1] = new ob("Admin_FlightBook.asp?BookStatus=0", "机票");
an[2] = new ob("Admin_ProductBook.asp?BookStatus=0", "度假");
an[3] = new ob("Admin_SightBook.asp?BookStatus=0", "景点");
an[4] = new ob("Admin_CarBook.asp?BookStatus=0", "租车");
an[5] = new ob("Admin_ShopBook.asp?BookStatus=0", "商品");
function CheckBookStatus(){
var url = "Admin_CheckBookStatus.asp"
createXMLHttp();
try{
XMLHttp.open("GET",url,true);
XMLHttp.onreadystatechange = CheckState;
XMLHttp.setRequestHeader("Content-Type","text/xml;charset=GB2312;");
XMLHttp.send(null);
}catch(e){
}
var timer = setTimeout("CheckBookStatus()", 60000);
}
function CheckState(){
if(XMLHttp.readyState==4){
if(XMLHttp.status==200){
var re = XMLHttp.responseText;
if(re == "0"){
}else{
var arr = re.split("|");
var flag = false;
var items = document.getElementById("blist").getElementsByTagName("li");
for(var i=0;i<arr.length;i++){
if(parseInt(arr[i])>0){
items[i].innerHTML = "<a href='"+ an[i].url +"' target='main'>"+ an[i].name +"(<font color='#FF0000'>"+ arr[i] +"</font>)</a>"
flag = true
}else{
items[i].innerHTML = "<a href='"+ an[i].url +"' target='main'>"+ an[i].name +"("+ arr[i] +")</a>"
}
}
if(flag){ playsound() }
}
}
}
}
function playsound(){
var s = '<object id="player" style="display:none;" type=application/x-oleobject border=0 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="0" height="0">'
s = s +'<param name="AutoStart" value="-1" />'
s = s +'<param name="BufferingTime" value="8" />'
s = s +'<param name="EnableContextMenu" value="0" />'
s = s +'<param name="EnableTracker" value="-1" />'
s = s +'<param name="PlayCount" value="1" />'
s = s +'<param name="ShowControls" value="-1" />'
s = s +'<param name="ShowAudioControls" value="-1" />'
s = s +'<param name="ShowPositionControls" value="-1" />'
s = s +'<param name="ShowStatusBar" value="-1" />'
s = s +'<param name="ShowTracker" value="-1" />'
s = s +'<param name="Filename" value="images/ring.wav">'
s = s +'</object>';
document.getElementById("sound").innerHTML = s;
}
</script>
</head>
<body onSelectStart="return false" onLoad="CheckBookStatus()">
<div id="sound" style="display:none;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="float:left;"><img src="Images/top_close.gif" alt="关闭管理导航" name="imgControl" width="104" height="46" border="0" id="imgControl" style="cursor:hand; " onClick="lControl()"> <a href="Admin_Password.asp" target="main"><img src="Images/top_psw.gif" width="104" height="46" border="0"></a></div>
<div id="bookstatus">
<div>订单状态:</div>
<ul id="blist">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div style="float:right; padding-top:12px; padding-right:20px; color:#FFFFFF;">当前系统版本:<%=EL_Cache.GetCache("Sys.Edition", 0)%></div>
</td>
</tr>
</table>
<%Call ApplicationTerminate()%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -