add Date index

Wangyanyixiang_branch
Lin 2 months ago
parent 06c2fd3d81
commit fc1467bf5f

@ -5,8 +5,15 @@
<%@page contentType="text/html; charset=UTF-8" import="java.text.SimpleDateFormat"%>
<%
//添加URL session ,作为用户登录后跳转回来的依据,登录servlet中已经写了判断程序如果有url_cookie就跳转到url_cookie如果没有就跳转到用户中心
session.setAttribute("url", request.getRequestURI());
// 检查用户是否已登录
if (session.getAttribute("user_id") == null) {
// 如果未登录,重定向到登录页面
response.sendRedirect("../index/login_reg.jsp");
return;
}
// 添加URL session ,作为用户登录后跳转回来的依据,登录servlet中已经写了判断程序如果有url_cookie就跳转到url_cookie如果没有就跳转到用户中心
session.setAttribute("url", request.getRequestURI());
%>
<!DOCTYPE html>
<html>
@ -116,9 +123,6 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
<div class="container"
style="position: relative; margin-left: 650px; width: auto;">
<form class="form-inline" action="/air_ticket_book/search" method="post">
<!-- <div class="form-group mar-left-10" >
<label for="" >购买机票时间:<%=todaydate %></label>
</div> -->
<div class="form-group mar-left-10" >
<label for="" >出发城市</label>
<input name="departure" type="text" class="form-control"
@ -128,6 +132,24 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
<label for=""> &nbsp;&nbsp;&nbsp;&nbsp;到达城市</label> <input name="destination" type="text" class="form-control"
style="width: 85px;" value="" placeholder="到达城市">
</div>
<div class="form-group">
<label for=""> &nbsp;&nbsp;&nbsp;&nbsp;出发日期</label>
<div class="input-group">
<input name="departureYear" type="text" class="form-control"
style="width: 70px;" value="">
<span class="input-group-addon">年</span>
</div>
<div class="input-group">
<input name="departureMonth" type="text" class="form-control"
style="width: 60px;" value="">
<span class="input-group-addon">月</span>
</div>
<div class="input-group">
<input name="departureDay" type="text" class="form-control"
style="width: 60px;" value="">
<span class="input-group-addon">日</span>
</div>
</div>
<button type="submit" class="btn btn-warning mar-left-10"
style= "font-size:18px; border:#FFFFFF; color:#414582; background-color:#FFFFFF;">搜索</button>
</form>
@ -136,7 +158,6 @@ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
<!-- 搜索结束 -->
<!-- 列表开始 -->
<div class="container mar-bottom-30 " style="margin-left: 50px;">
<div class="hangbanlist">

Loading…
Cancel
Save