1a06ddebe3125a43611fdfe39cce44776679565c
[proteocache.git] / webapp / view / queryRemoveJobs.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 <%@page import="java.util.Calendar"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
6 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
7 <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
8 <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
9
10 <html>
11 <jsp:include page="fragments/header_database.jsp" />
12 <body>
13         <div class="container">
14         <jsp:include page="fragments/mainmenu.jsp" />
15         <spring:url value="/database/remove/go" var="formurl"/>
16
17                 <%
18                         Calendar cal = Calendar.getInstance();
19                         String currentdate = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.DAY_OF_MONTH);
20                 %>
21
22         <div class="panel panel-default">
23                 <div class="panel-heading">
24                         <div style="font-weight:bold;">Delete jobs with the following conditions:</div>
25                 </div>
26                 <div class="panel-body">
27                         <form method="get" action="${fn:escapeXml(formurl)}">
28                                 <p>
29                                         <input type="checkbox" name="byId" onclick="show(this, 'id');" />
30                                         Job with the job Id:
31                                 </p>
32                                 <p><div id='id' class="row" style="visibility:hidden;">Job Id: <input type="text" name="id" /></div></p>
33                                 <p><input type="checkbox" name="byDate" onclick="show(this, 'date');" /> Jobs for the period:</p>
34                                 <p><div id='date' class="row" style="visibility:hidden;">
35                                 From <input type="text" name="date1" value = "<%= currentdate%>" style=" width : 145px;" />
36                                         to <input type="text" name="date2" value = "<%= currentdate%>" />
37                                 </div></p>
38                                 <p><input type="checkbox" name="byIp" onclick="show(this, 'ip');" /> Jobs executed from the IP:</p>
39                                 <p><div id='ip' class="row" style="visibility:hidden;">IP: <input type="text" name="ip" value = '127.0.0.1'/></div></p>
40                                 <p><input type="checkbox" name="bySequence"  onclick="show(this, 'seq');"> Jobs for the protein sequence</p>
41                                 <p><div id='seq' class="row" style="visibility:hidden;"> Sequence: <input type="text" name="seq" value = "ATA"/></div></p>
42                                 <p><input type="submit" name="Delete" value="Delete"/></p>
43                         </form>
44                 </div>
45         </div>
46
47         <jsp:include page="fragments/footer.jsp"/>
48         </div>
49 </body>
50 </html>