WebRoot/qiantai/top.jsp

(完整代码) 2KB

<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 
<%
    String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
     <script type='text/javascript' src='<%=path %>/dwr/interface/loginService.js'></script>
    <script type='text/javascript' src='<%=path %>/dwr/engine.js'></script>
    <script type='text/javascript' src='<%=path %>/dwr/util.js'></script>
	
	<script type="text/javascript">
			function userLogout()
	        {
			    loginService.userLogout(callback1);
	        }
	        
	        
	        function callback1(data)
			{
			    alert("退出系统");
			    window.location.reload();
			}
			
			function gerenzhongxin()
			{
			    var targetWinUrl="<%=path %>/auser/index.jsp";
				var targetWinName="newWin";
				var features="width="+screen.width+" ,height="+screen.height+" ,toolbar=yes, top=0, left=0, menubar=yes, scrollbars=yes, resizable=yes,location=no, status=yes";
				var new_win=window.open(targetWinUrl,targetWinName,features);
			}
	</script>
  </head>
  
  <body>
        <div id="header-content">
			<br/><br/><br/>
			<h1 style="color: white;font-size: 30px;">暁琪幼儿园网站</h1>
			<ul>
				<li><a href="<%=path %>/index.action" style="font-size: 15px;font-family: 微软雅黑">幼儿园资讯</a></li>
				<li><a href="<%=path %>/qiantai/user/userReg.jsp" style="font-size: 15px;font-family: 微软雅黑">用户注册</a></li>
				<li><a href="<%=path %>/zhutiAll.action" style="font-size: 15px;font-family: 微软雅黑">交流园地</a></li>
				
				<c:if test="${sessionScope.userType!=1}">
				<li><a href="<%=path %>/qiantai/user/userLogin.jsp" style="font-size: 15px;font-family: 微软雅黑">用户登录</a></li>
				</c:if>
				
				<c:if test="${sessionScope.userType==1}">
				<li><a href="#" style="font-size: 15px;font-family: 微软雅黑">欢迎你:${sessionScope.user.userRealname}</a></li>
				<li><a href="#" onclick="userLogout()" style="font-size: 15px;font-family: 微软雅黑">注销退出</a></li>
				</c:if>
			</ul>					
		</div>
  </body>
</html>

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

AI 解读 AI

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

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