Apply formatting to the JSP pages
[proteocache.git] / website / JobLength.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2         pageEncoding="UTF-8"%>
3 <%@page import="java.util.Calendar"%>
4
5 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
6 <html>
7 <head>
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
9 <title>Date interval</title>
10 </head>
11 <body>
12         <form method="post" action="LengthServlet">
13                 <h3>Enter time period</h3>
14                 <%
15                         Calendar cal = Calendar.getInstance();
16                         String datecalBegin = cal.get(Calendar.YEAR) + "/" + cal.get(Calendar.MONTH) + "/" + cal.get(Calendar.DAY_OF_MONTH);
17                         String datecalEnd = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.DAY_OF_MONTH);
18                 %>
19                 <p>
20                         from <input type="text" name="data1" value=<%=datecalBegin%>
21                                 style="width: 145px;" /> to <input type="text" name="data2"
22                                 value=<%=datecalEnd%> style="width: 145px;" />
23                 </p>
24                 <input type="checkbox" name="option" value="AllDate">Query for
25                 all dates<br> <input type="submit" name="Search" value="Search" />
26         </form>
27 </body>
28 </html>