From b305f088c9f56007b1e32b055e5ba616894d7fe1 Mon Sep 17 00:00:00 2001 From: pw6qtp7hv <1197788089@qq.com> Date: Sun, 15 Dec 2024 16:06:26 +0800 Subject: [PATCH] Update getAllTrain.jsp --- .../pages/admin/right/getAllTrain.jsp | 216 +++++++++++------- 1 file changed, 132 insertions(+), 84 deletions(-) diff --git a/ticketing-master/WebContent/pages/admin/right/getAllTrain.jsp b/ticketing-master/WebContent/pages/admin/right/getAllTrain.jsp index e88ce56..6743461 100644 --- a/ticketing-master/WebContent/pages/admin/right/getAllTrain.jsp +++ b/ticketing-master/WebContent/pages/admin/right/getAllTrain.jsp @@ -2,97 +2,145 @@ 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+"/"; + // 构建项目的基础路径,包括协议(如http或https)、服务器名称、服务器端口以及上下文路径,用于准确地定位项目中的各种资源,比如样式表、脚本文件、图片等资源的引用地址都会基于这个基础路径来构建。 + String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> + - - - - - - - - - - - - -车次列表 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 车次列表 + - -
-
- 添加车次 - 共有数据:${trainList.size()}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
序号车次起始站终点站开车时间到达时间票价剩余座位数操作
${status.index+1}${allTrain.trainNumber}${allTrain.startStation}${allTrain.endStation}${allTrain.startTime}${allTrain.endTime}${allTrain.price}${allTrain.seatNumber} - - -
-
-
- - - - - + + + +
+ +
+ + + + 添加车次 + + + 共有数据:${trainList.size()} +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
序号车次起始站终点站开车时间到达时间票价剩余座位数操作
${status.index + 1}${allTrain.trainNumber}${allTrain.startStation}${allTrain.endStation}${allTrain.startTime}${allTrain.endTime}${allTrain.price}${allTrain.seatNumber} + + + + +
+
+
- - - - - + + + + + + + + + + + - + + \ No newline at end of file