📄 funmenu.asp
字号:
<!-- #include file = "../../include/asphead.asp" -->
<!-- #include file = "../../include/function.asp" -->
<%CheckUser()%>
<link href="../../include/main.css" rel="stylesheet" type="text/css">
<script src="../../include/function.js" type="text/javascript"></script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
var toElement
var curFunID,curFun
function window_onload()
{
curFunID=frmData.curBox.value;
eval("curFun=div"+curFunID);
curFun.style.backgroundColor='#e0e0e0';
frmData.action ="list.asp?MsgGroupID=" + frmData.MsgGroupID.value;
frmData.target ="RightData";
frmData.submit();
}
function NodeClick(ID)
{
toElement=window.event.srcElement;
if(curFunID!=ID)
{
//所点的功能是未选中的,需设置字典的背景色
if (curFun!=null)
{
curFun.style.backgroundColor ="white";
for (var i = 0; i < curFun.children.length; i++)
curFun.children(i).style.backgroundColor ="white";
}
}
toElement.parentElement.style.backgroundColor ="#e0e0e0";
for (var i = 0; i < toElement.parentElement.children.length; i++)
toElement.parentElement.children(i).style.backgroundColor ="#e0e0e0";
curFunID=ID;
curFun=toElement.parentElement;
if(ID=="Inbox")
{
//收到的短信
frmData.action ="list.asp?MsgGroupID=" + MsgGroupReceived_ID;
frmData.target ="RightData";
frmData.submit();
}
else if(ID=="Sendbox")
{
//发送的短信
frmData.action ="list.asp?MsgGroupID=" + MsgGroupSended_ID;
frmData.target ="RightData";
frmData.submit();
}
else if(ID=="Delbox")
{
//删除的短信
frmData.action ="list.asp?MsgGroupID=" + MsgGroupDeleted_ID;
frmData.target ="RightData";
frmData.submit();
}
}
//-->
</script>
<%
dim MsgGroupID
MsgGroupID=Request.Cookies("MyFold")("MsgGroupID")
if MsgGroupID="" then
MsgGroupID=MsgGroupReceived_ID
end if
Response.Cookies("MyFold")("MsgGroupID")=MsgGroupID
Response.Cookies("MyFold").Expires = CookieLife
dim curBox
if cint(MsgGroupID)=cint(MsgGroupReceived_ID) then
curBox="Inbox"
elseif cint(MsgGroupID)=cint(MsgGroupSended_ID) then
curBox="Sendbox"
elseif cint(MsgGroupID)=cint(MsgGroupDeleted_ID) then
curBox="Delbox"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" LANGUAGE=javascript onload="return window_onload()">
<form METHOD="post" name="frmData">
<table width="108%" border="0" cellPadding="0" cellSpacing="1">
<tr>
<td>
<div id="divInbox" name="divInbox" align="left" STYLE="display='block';margin-left:0.5em;">
<span id="spanInbox" STYLE="cursor:hand" onclick="NodeClick('Inbox')">收件箱
</span>
</div>
<div id="divSendbox" name="divSendbox" align="left" STYLE="display='block';margin-left:0.5em;">
<span STYLE="cursor:hand" onclick="NodeClick('Sendbox')">发件箱</span>
</div>
<div id="divDelbox" name="divDelbox" align="left" STYLE="display='block';margin-left:0.5em;">
<span id="spanDelbox" STYLE="cursor:hand" onclick="NodeClick('Delbox')">回收站
</span>
</div>
</td>
</tr>
</table>
<input TYPE="hidden" NAME="curBox" value="<%=curBox%>">
<input TYPE="hidden" NAME="MsgGroupID" value="<%=MsgGroupID%>">
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -