From 2452c80cf1b42d399e93d28e523464a95694520d Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Thu, 24 Oct 2013 18:27:00 +0100 Subject: [PATCH] Add first banch of JSPs --- website/AllReports.jsp | 9 +++++++ website/Index.jsp | 18 +++++++++++++ website/JobLength.jsp | 24 +++++++++++++++++ website/PrintResult.jsp | 21 +++++++++++++++ website/ReportLength.jsp | 34 ++++++++++++++++++++++++ website/ReportNew.jsp | 49 ++++++++++++++++++++++++++++++++++ website/ReportProt.jsp | 58 +++++++++++++++++++++++++++++++++++++++++ website/Sample.jsp | 24 +++++++++++++++++ website/Sequence.jsp | 21 +++++++++++++++ website/StatisticsProtein.jsp | 41 +++++++++++++++++++++++++++++ 10 files changed, 299 insertions(+) create mode 100644 website/AllReports.jsp create mode 100644 website/Index.jsp create mode 100644 website/JobLength.jsp create mode 100644 website/PrintResult.jsp create mode 100644 website/ReportLength.jsp create mode 100644 website/ReportNew.jsp create mode 100644 website/ReportProt.jsp create mode 100644 website/Sample.jsp create mode 100644 website/Sequence.jsp create mode 100644 website/StatisticsProtein.jsp diff --git a/website/AllReports.jsp b/website/AllReports.jsp new file mode 100644 index 0000000..110bc3e --- /dev/null +++ b/website/AllReports.jsp @@ -0,0 +1,9 @@ +<% + String query = request.getParameter("query"); + if (query.equals("date")) + response.sendRedirect("Sample.jsp"); + else if (query.equals("length")) + response.sendRedirect("JobLength.jsp"); + else if (query.equals("protein")) + response.sendRedirect("Sequence.jsp"); +%> \ No newline at end of file diff --git a/website/Index.jsp b/website/Index.jsp new file mode 100644 index 0000000..e113e4b --- /dev/null +++ b/website/Index.jsp @@ -0,0 +1,18 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Cassandra report + + +
+

Choose query type

+ Search by protein sequence
+ Search by date
+ Usage statistics by job time execution
+ +
+ + \ No newline at end of file diff --git a/website/JobLength.jsp b/website/JobLength.jsp new file mode 100644 index 0000000..a264db8 --- /dev/null +++ b/website/JobLength.jsp @@ -0,0 +1,24 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + <%@page import="java.util.Calendar"%> + + + + + +Date interval + + +
+

Enter time period

+ <% Calendar cal = Calendar.getInstance(); + String datecalBegin = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) +"/1"; + String datecalEnd = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.DAY_OF_MONTH); + %> +

from style=" width : 145px;"/> + to style=" width : 145px;"/>

+ Query for all dates
+ +
+ + \ No newline at end of file diff --git a/website/PrintResult.jsp b/website/PrintResult.jsp new file mode 100644 index 0000000..c2f2e81 --- /dev/null +++ b/website/PrintResult.jsp @@ -0,0 +1,21 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + +Report + + +

Report Results

+<% String rez = request.getAttribute("result").toString(); + String[] rezLines = rez.split(";"); + for (int i = 0; i < rezLines.length; i++) { +%> +<%= rezLines[i]+"
" %> +<% +} +%> +Click here to go Back + + \ No newline at end of file diff --git a/website/ReportLength.jsp b/website/ReportLength.jsp new file mode 100644 index 0000000..c7f9cff --- /dev/null +++ b/website/ReportLength.jsp @@ -0,0 +1,34 @@ +<%@page import="java.util.ArrayList"%> +<%@ page trimDirectiveWhitespaces="true" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + +

Time execution for the whole period

+
+ +

Time execution for the interval: ${data1} - ${data2}

+
+
+ + + + + + + + + + + + + + + + + + + +
Dateless then 30 s30 s - 60 s1 min - 2 minmore then 2min
${res.date}${time}
diff --git a/website/ReportNew.jsp b/website/ReportNew.jsp new file mode 100644 index 0000000..498fa8c --- /dev/null +++ b/website/ReportNew.jsp @@ -0,0 +1,49 @@ +<%@page import="java.util.ArrayList"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + +

Jobs statistics for the whole period

+
+ +

Jobs statistics for the Period: + to

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateNumber of Proteins
TotalFailedCancelledAbandoned
${res.date}000
Total:${sum}000
\ No newline at end of file diff --git a/website/ReportProt.jsp b/website/ReportProt.jsp new file mode 100644 index 0000000..ad64ac1 --- /dev/null +++ b/website/ReportProt.jsp @@ -0,0 +1,58 @@ +<%@page import="java.util.ArrayList"%> +<%@ page trimDirectiveWhitespaces="true" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + +

Dundee ProteoCache query result

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Number of jobsProtein
${res.totalId}${res.prot}
IDPrediction
${res.id} + + +${seq} +${seq} + + +
diff --git a/website/Sample.jsp b/website/Sample.jsp new file mode 100644 index 0000000..0116ba7 --- /dev/null +++ b/website/Sample.jsp @@ -0,0 +1,24 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + <%@page import="java.util.Calendar"%> + + + + + +Date period + + +
+

Enter time period

+ <% Calendar cal = Calendar.getInstance(); + String datecalBegin = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/1"; + String datecalEnd = cal.get(Calendar.YEAR) + "/" + (cal.get(Calendar.MONTH) + 1) + "/" + cal.get(Calendar.DAY_OF_MONTH); + %> +

from style=" width : 145px;"/> + to style=" width : 145px;"/>

+ Query for all dates
+ +
+ + \ No newline at end of file diff --git a/website/Sequence.jsp b/website/Sequence.jsp new file mode 100644 index 0000000..5ff90b6 --- /dev/null +++ b/website/Sequence.jsp @@ -0,0 +1,21 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + +Sequence of protein + + +
+
+

Enter protein sequence

+

+ search by the whole sequence + search by a part of sequence
+

+ Sequence with more then 3 jobs
+
+ + \ No newline at end of file diff --git a/website/StatisticsProtein.jsp b/website/StatisticsProtein.jsp new file mode 100644 index 0000000..06c7d72 --- /dev/null +++ b/website/StatisticsProtein.jsp @@ -0,0 +1,41 @@ +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> +<%@ taglib uri="http://displaytag.sf.net" prefix="dt" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateNumber of Proteins
TotalFailedCancelledAbandoned
${res.date}000
Total:${sum}000
-- 1.7.10.2