1 <%@ page language="java" contentType="text/html; charset=UTF-8"
3 <%@page import="java.util.Calendar"%>
5 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9 <title>Date period</title>
12 <form method="post" action="QueryServlet">
13 <h3>Enter time period</h3>
14 <% Calendar cal = Calendar.getInstance();
15 String datecalBegin = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/1";
16 String datecalEnd = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.DAY_OF_MONTH);
18 <p>from <input type="text" name="data1" value = <%= datecalBegin%> style=" width : 145px;"/>
19 to <input type="text" name="data2" value = <%= datecalEnd%> style=" width : 145px;"/></p>
20 <input type="checkbox" name="option" value="AllDate">Query for all dates<br>
21 <input type="submit" name="Search" value="Search"/>