From: Sasha Sherstnev Date: Thu, 24 Oct 2013 17:27:00 +0000 (+0100) Subject: Add first banch of JSPs X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2452c80cf1b42d399e93d28e523464a95694520d;p=proteocache.git Add first banch of JSPs --- 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