Improve front-end view of the website
[proteocache.git] / webapp / view / queryProteinSequence.jsp
diff --git a/webapp/view/queryProteinSequence.jsp b/webapp/view/queryProteinSequence.jsp
new file mode 100644 (file)
index 0000000..1553424
--- /dev/null
@@ -0,0 +1,26 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
+<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
+
+<html>
+<jsp:include page="fragments/header.jsp" />
+<body>
+       <div class="container">
+       <jsp:include page="fragments/mainmenu.jsp" />
+
+       <spring:url value="/sequence/querysequence" var="formurl"/>
+       <form method="get" action="${fn:escapeXml(formurl)}">
+               <h3>Enter protein sequence</h3> 
+               <textarea class="form-control" rows="3" name="sequence">AAA</textarea>
+               <input type="radio" name="protein" value="whole">search for the whole sequence<br/>
+               <input type="radio" name="protein" value="part" Checked>search for partial sequence matching<br/><br/>
+               <input type="submit" name="Search" value="Search"/><br/><br/>
+       </form>
+       <jsp:include page="fragments/footer.jsp"/>
+       </div>
+</body>
+</html>