From 5494f582aa495ab1e356186e8861fecc1146fe8c Mon Sep 17 00:00:00 2001 From: RichardWang <948658573@qq.com> Date: Sat, 19 Oct 2024 22:21:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=97=A5=E6=9C=9F=E9=80=89=E6=8B=A9=E5=92=8C=E5=9F=8E?= =?UTF-8?q?=E5=B8=82=E9=80=89=E6=8B=A9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/default/index.jsp | 133 ++++++++++++++++++++-------------- WebContent/default/search.jsp | 127 ++++++++++++++++++++++++++++---- 2 files changed, 188 insertions(+), 72 deletions(-) diff --git a/WebContent/default/index.jsp b/WebContent/default/index.jsp index c19fa32..3cd0578 100644 --- a/WebContent/default/index.jsp +++ b/WebContent/default/index.jsp @@ -39,13 +39,20 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); //获取String类型的时间 String todaydate = sdf.format(date); -//也可以用这个 -// String datetime = tempDate.format(new Date(System.currentTimeMillis())); - //String todaydate="2019-12-01"; - //注意原本的设定是每天的机票都是不同的,因此数据库中要有每天不同的机票,这里为了方便,就设置了一个固定的时间 %> - - + + + + + + +
@@ -70,7 +77,7 @@ String todaydate = sdf.format(date); String sql="select * from p_inf where p_tel='"+session.getAttribute("user_id")+"'"; ResultSet res=conn.executeQuery(sql); if(res.next()) - user_name=res.getString(2); + user_name=res.getString(1); %> 您好,<%= user_name %> @@ -121,39 +128,49 @@ String todaydate = sdf.format(date); + + + +