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); + + + +