From 66bf8c062a409ba3b5ee9841709524bce462474b Mon Sep 17 00:00:00 2001
From: RichardWang <948658573@qq.com>
Date: Thu, 17 Oct 2024 22:17:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E9=A1=B5=E9=9D=A2=E8=B7=B3?=
=?UTF-8?q?=E8=BD=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WebContent/default/index.jsp | 69 ++++++++++++++++++++++++------------
1 file changed, 46 insertions(+), 23 deletions(-)
diff --git a/WebContent/default/index.jsp b/WebContent/default/index.jsp
index f9b994f..c19fa32 100644
--- a/WebContent/default/index.jsp
+++ b/WebContent/default/index.jsp
@@ -21,7 +21,7 @@ session.setAttribute("url", request.getRequestURI());
-
机票预订系统
+机票推荐系统
@@ -31,15 +31,17 @@ session.setAttribute("url", request.getRequestURI());
-<%! String user_name,seat;
- /*Date date = new Date();
+<%!
+String user_name,seat;
+Date date = new Date();
//设置要获取到什么样的时间
-SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//获取String类型的时间
- String todaydate = sdf.format(date);*/
+String todaydate = sdf.format(date);
+
//也可以用这个
// String datetime = tempDate.format(new Date(System.currentTimeMillis()));
- String todaydate="2019-12-01";
+ //String todaydate="2019-12-01";
//注意原本的设定是每天的机票都是不同的,因此数据库中要有每天不同的机票,这里为了方便,就设置了一个固定的时间
%>
@@ -99,8 +101,8 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
class="icon-bar">
- 
@@ -123,16 +125,16 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");