|
|
|
@ -1,15 +1,19 @@
|
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
|
|
pageEncoding="UTF-8"%>
|
|
|
|
|
<%@ 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 *{
|
|
|
|
@ -18,33 +22,45 @@
|
|
|
|
|
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>
|
|
|
|
|
<li style="display:inline"><a href="<%=basePath%>MemberLoginOutServlet">退出登录</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<iframe name="my_iframe" id="my_iframe" src="<%=basePath%>GetByStartEndStationServlet" width="60%" height="800px" seamless="seamless"></iframe>
|
|
|
|
|
<!-- 首页顶部导航栏end -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 首页顶部导航栏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>
|
|
|
|
|
</html>
|
|
|
|
|
<!-- 页面结束 -->
|