WebRoot/admin/header.jsp

(完整代码) 1KB

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	if(session.getAttribute("adminName")==null){
	response.getWriter().write("<script language='JavaScript'>" +
			"window.open('login.jsp',target='_top');" + 
			"</script>"
			);
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'header.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="admin/css/admin.css" type="text/css" rel="stylesheet">
</HEAD>
<BODY>
<TABLE cellSpacing="0" cellPadding="0" width="100%" background="admin/images/header_bg.jpg" border="0">
  <TR height="56">
    <TD width="260"><IMG height="56" src="admin/images/header_left.jpg" width="260"></TD>
    <TD style="FONT-WEIGHT: bold; COLOR: #fff; PADDING-TOP: 20px" align="middle">
    	当前用户:<%=session.getAttribute("adminName") %> &nbsp;&nbsp; 
    	<A style="COLOR: #fff" href="admin/pwdchange.jsp"target="main">修改密码</A> &nbsp;&nbsp; 
    	<A style="COLOR: #fff" onclick="if (confirm('确定要退出吗?')) return true; else return false;" href="outadmin?out=yes" target="_top">退出系统</A> 
    </TD>
    <TD align="right" width="268"><IMG height="56" src="admin/images/header_right.jpg" width="268"></TD></TR></TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
  <TR bgColor="#1c5db6" height="4">
    <TD></TD></TR></TABLE></BODY></HTML>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。