You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 设置JSP页面的语言为Java并指定页面的内容类型和字符编码为UTF-8 -->
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!-- 在JSP脚本片段中获取当前请求的上下文路径和基础路径用于构建资源的URL -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- 指定页面的字符编码为UTF-8 -->
<title>首页</title>
<!-- 页面标题设置为“首页” -->
<style type="text/css">
html *{
margin: 0 auto;
padding: 0 auto;
text-align: center;
}
</style>
<!-- 内联CSS样式用于重置页面元素的外边距和内边距并使文本居中 -->
<link rel="stylesheet" href="<%=basePath%>css/home-menu.css" type="text/css" >
<!-- 引入自定义的首页菜单样式表 -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>static/h-ui/css/H-ui.min.css" />
<!-- 引入H-ui前端框架的CSS文件 -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>static/h-ui.admin/css/H-ui.admin.css" />
<!-- 引入H-ui.admin前端框架的CSS文件 -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>lib/Hui-iconfont/1.0.8/iconfont.css" />
<!-- 引入图标字体库 -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>static/h-ui.admin/skin/default/skin.css" id="skin" />
<!-- 引入皮肤样式 -->
<link rel="stylesheet" type="text/css" href="<%=basePath%>static/h-ui.admin/css/style.css" />
<!-- 引入自定义样式 -->
</head>
<!-- 首页顶部导航栏start -->
<header class="navbar-wrapper">
<div id="head">
<ul id="menu" style="margin:0 auto; width: 60%;">
<!-- 导航菜单列表 -->
<li style="width:530px; display:inline"><a href="<%=basePath%>pages/user/home.jsp">火车站售票系统</a></li>
<!-- 导航菜单项,链接到首页 -->
<li style="display:inline"><a href="<%=basePath%>pages/user/home.jsp">首页</a></li>
<!-- 导航菜单项,链接到首页 -->
<li style="display:inline"><a href="<%=basePath%>CheckLoginServlet?temp=1">会员中心</a>
<!-- 导航菜单项,链接到会员中心 -->
<li style="display:inline"><a href="<%=basePath%>pages/user/memberLogin.jsp" target="my_iframe">登录/注册</a></li>
<!-- 导航菜单项,链接到登录/注册页面使用iframe显示 -->
<li style="display:inline"><a href="<%=basePath%>MemberLoginOutServlet">退出登录</a></li>
<!-- 导航菜单项链接到退出登录的Servlet -->
</ul>
</div>
</header>
<!-- 首页顶部导航栏end -->
<iframe name="my_iframe" id="my_iframe" src="<%=basePath%>GetByStartEndStationServlet" width="60%" height="800px" seamless="seamless"></iframe>
<!-- 内嵌框架,用于显示其他页面内容,无缝集成到当前页面 -->
</html>
<!-- 页面结束 -->