📄 masterpage.master
字号:
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<link href="1.css" type="text/css" rel="stylesheet" style="font-size: 12px;" />
</head>
<script language="javascript" type="text/javascript">
var idx=0;
function ChkSession()
{
var Http = new ActiveXObject("Microsoft.XMLHTTP");
Http.open("GET","login.aspx",false); //检查Session失效的页面
Http.send();
var str = Http.responseText;//执行ASPX后的返回结果
//idx++
//document.all("ConvertResult").innerHTML = str+idx;
if(str=="notnull")
{
// alert("out");
// location.href = "login.aspx";
}
else
{ //alert("会话值跟踪时间超时,请重新登录...");//这段代码一直没有运行,往下看,你就知道了
// location.href = "login.aspx";
}
window.setTimeout('ChkSession()', 10000 );//每一秒钟,请求一次ChkSessionOut.aspx
var today=new Date()
var time=""
time+=today.getYear()+"年"
time+=today.getMonth()+"月"
time+=today.getDate()+"日"
ip="<%=Request.ServerVariables("HTTP_X_FORWARDED_FOR")%>";
if(ip=="")
ip = "<%=Request.ServerVariables("REMOTE_ADDR") %>";
window.status="欢迎登陆网络报税管理系统 -------------- 现在时间:"+time+" -----------当前使用IP地址为:" +ip ;
}
function msg()
{
var today=new Date()
var time=""
time+=today.getYear()+"年"
time+=today.getMonth()+"月"
time+=today.getDate()+"日"
ip="<%=Request.ServerVariables("HTTP_X_FORWARDED_FOR")%>";
if(ip=="")
ip = "<%=Request.ServerVariables("REMOTE_ADDR") %>";
window.status="欢迎登陆网络报税管理系统 -------------- 现在时间:"+time+" -----------当前使用IP地址为:" +ip ;
}
</script>
<body onload=msg() >
<% If Session("bz") = "" Then
Response.Redirect("login.aspx")
End If
%>
<form id="form1" runat="server">
<div style="text-align: center">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True" EnableScriptLocalization="True">
</asp:ScriptManager>
<table border="1" cellpadding="0" cellspacing="0" style="width: 780px; height: 100%">
<tr>
<td colspan="2" style="height: 80px">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/taxlog.gif" Width="780px" /></td>
</tr>
<tr id="row1" bgcolor="#b5c7de">
<td style="width: 660px" colspan="2">
</td>
</tr>
<tr id="row2">
<td rowspan="2" valign="top">
<asp:TreeView ID="TreeView1" runat="server" Height="185px" ImageSet="BulletedList4"
LineImagesFolder="~/TreeLineImages" ShowExpandCollapse="False" Style="font-size: 30px;
color: #0066ff; background-color: transparent" Width="38px">
<ParentNodeStyle BorderColor="Red" Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="Red" />
<SelectedNodeStyle Font-Underline="True" ForeColor="Red" HorizontalPadding="0px"
VerticalPadding="0px" />
<NodeStyle BorderColor="#FF8080" Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black"
HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
</asp:TreeView>
</td>
</tr>
<tr id="row3" >
<td style="width: 660px" valign="top">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
<tr bgcolor="#b5c7de">
<td style="width: 660px" colspan="2" >
</td>
</tr>
<tr id="row4">
<td colspan="2" style="height: 16px; text-align: center">
<asp:Image ID="Image2" runat="server" ImageUrl="~/images/footer.gif" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -