Make all necessary changes for combining old and new servlets
[proteocache.git] / website / Update.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2     pageEncoding="UTF-8"%>
3 <%@page import="java.util.*"%>
4 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <html>
6 <head>
7 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8 <title>Update/delete data base</title>
9 <script type="text/javascript">
10 function show(el, id) {
11         document.getElementById(id).style.visibility = (el.checked)?"visible":"hidden";
12 }
13 </script>
14 </head>
15 <body>
16 <form method="post" action="ServletDeleteRecord">
17                 <h3>Delete:</h3>
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                  <input type="checkbox" name="byId" onclick="show(this, 'id');">records with job's id
22                 <div id='id' class="row" style="visibility:hidden;">
23                job id:  <input type="text" name="id" />
24           </div>
25                 <input type="checkbox" name="byDate" onclick="show(this, 'date');">records for the period of dates
26           <div id='date' class="row" style="visibility:hidden;">
27                from  <input type="text" name="date1" value = <%= currentdate%> style=" width : 145px;"/>
28                                 to <input type="text" name="date2" value = <%= currentdate%> />
29           </div>
30                 <input type="checkbox" name="byIp" onclick="show(this, 'ip');">records with ip
31                 <div id='ip' class="row" style="visibility:hidden;">
32                ip:  <input type="text" name="ip" value = '127'/>
33           </div>
34                 <input type="checkbox" name="bySequence"  onclick="show(this, 'seq');">records for protein sequence<br/>                
35                 <div id='seq' class="row" style="visibility:hidden;">
36                Sequence:  <input type="text" name="seq" value = "ATA"/>
37           </div>
38                 <input type="submit" name="Delete" value="Delete"/>
39         </form>
40 </body>
41 </html>