From ce7fb3f75305f188044d6eab4dcda752da0fe3ed Mon Sep 17 00:00:00 2001 From: puxcofief <1827156039@qq.com> Date: Mon, 16 Dec 2024 15:24:08 +0800 Subject: [PATCH] Update getByStartEndStation.jsp --- .../pages/user/getByStartEndStation.jsp | 248 +++++++++++------- 1 file changed, 154 insertions(+), 94 deletions(-) diff --git a/ticketing-master/WebContent/pages/user/getByStartEndStation.jsp b/ticketing-master/WebContent/pages/user/getByStartEndStation.jsp index 3ee53ef..a6e5adf 100644 --- a/ticketing-master/WebContent/pages/user/getByStartEndStation.jsp +++ b/ticketing-master/WebContent/pages/user/getByStartEndStation.jsp @@ -1,116 +1,176 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> + + <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> + + <% + // 获取请求的上下文路径,用于构建应用的根路径 String path = request.getContextPath(); + // 构建基础路径,包含协议、服务器名称、端口号和上下文路径,用于后续资源的路径构建 String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> + + + + + + - - 根据起点站、终点站、出发时间查询展示车次信息 - - - <%-- - --%> - - - - - - - - + + + + 根据起点站、终点站、出发时间查询展示车次信息 + + + + + + + <%-- + --%> + + + + + + + + + + + + + + + + + - -

-
-                  -                  -                  - 起始站:   - -         - 终点站:   - -         - 开车时间:   - -         - -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
序号车次起始站终点站开车时间到站时间票价/元剩余座位数操作
${status.index+1}${allTrain.trainNumber}${allTrain.startStation}${allTrain.endStation}${allTrain.startTime}${allTrain.endTime}${allTrain.price}${allTrain.seatNumber}订票
-
-
+

+ +
+ +                  +                   +                   + 起始站:   + + +         + 终点站:   + + +         + 开车时间:   + + +         + + +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
序号车次起始站终点站开车时间到站时间票价/元剩余座位数操作
${status.index+1}${allTrain.trainNumber}${allTrain.startStation}${allTrain.endStation}${allTrain.startTime}${allTrain.endTime}${allTrain.price}${allTrain.seatNumber}订票
+
+
- + + + + + + + + + + + + + + + + + + + + + + + - - - - \ No newline at end of file + + + + $('.table-sort').dataTable({ + + "aaSorting": [[ 0, "asc" ]],//默认第几个排序 \ No newline at end of file