
  <%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStream"%>
<%@page import="java.sql.*"%>
<%@page import="Dna.Sources.Dbconnection"%>
<%@ page session="true" %>
             
  <%@page import="java.io.InputStreamReader"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStream"%>
<%@page import="java.sql.*"%>
<%@page import="Dna.Sources.Dbconnection"%>
<%@ page session="true" %>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>SECURING AGGREGATE</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">
       
        <link rel="stylesheet" href="css/bootstrap.css">
        <link rel="stylesheet" href="css/bootstrap-responsive.css">
        <link rel="stylesheet" href="css/custom-styles.css">
        <link rel="stylesheet" href="css/font-awesome.css">
        <link rel="stylesheet" href="css/component.css">
        <link rel="stylesheet" href="css/font-awesome-ie7.css">
        
        
        <script src="js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
    </head>
    
      <%
if(request.getParameter("msg")!=null){%>
    
    <script>alert('Privatekey Sucessfully Generated...!')</script>
}  

<%}
if(request.getParameter("g")!=null){%>

<script>alert('Privatekey Already Generated..!')</script>
 <%
}
%>
      <%
if(request.getParameter("m")!=null){%>
    
    <script>alert('Request Sent to Cloud1...!')</script>
}  

<%}
if(request.getParameter("c")!=null){%>

<script>alert('Request Already Sent..!')</script>
 <%
}
%>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

        <!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->

        <!-- Site header starts here -->

            


             <!-- main content starts here -->

            <div class="container b-radius-top">
                <div class="top-bar b-radius">
                   
                    <div class="social">
                        <ul>
                           
                        </ul>
                    </div>
                </div>
                <div class="site-header">


                     <!-- Site Name starts here -->

                    <div class="site-name">
                        <h1>SECURING AGGREGATE QUERIES FOR DNA DATABASES</h1>
                    
                    </div>

                    <!-- Site Name ends -->

                     <!-- Menu starts here -->
                    <div class="menu">
                        <div class="navbar">
                            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                               <i class="fw-icon-th-list"></i>
                            </a>
                            <div class="nav-collapse collapse">
                                <ul class="nav">
                                   <li><a href="userhome.jsp">Home</a></li>
                                    
            
                                  <li><a href="userviewfiles.jsp">DNA Files</a></li> 
                                    <li class="active"><a href="download.jsp">View Data</a></li> 
                                    
                                    
                                    <li><a href="user.jsp">logout</a></li>
                                </ul>
                             
                            </div>
                        </div>
                    </div>

                    <!-- Menu ends -->
                </div>
       
<div class="search" ><br /><br />
                    <%
                            String  pid=request.getParameter("pid");
                 // String  dna1=request.getParameter("4");
                    //   String  dna2=request.getParameter("dna2");
                   //    String  dna3=request.getParameter("dna3");
                   //    String  dna4=request.getParameter("dna4");
                       
                       
                        
                        Connection conn = null;
                        Statement st = null;
                       // String data1[] = request.getQueryString().split(",");
                        // String filename = request.getParameter("filename");
                          //String owner = request.getParameter("owner");
                       //  session.setAttribute("pid", pid);
                       // session.setAttribute("owner", owner);
                    %>
                    <center> 
                        <h2>Key Verification System</h2>
                        <br>
                            <form action="download2.jsp" method="post">
                                <b>Patient Name  :</b><input type="text" name="pid" value="<%=pid%>" readonly=""  style="margin-left: 30px" class="textbox"/><br /><br />
                                <b>Decryption Key :</b><input type="text" name="privatekey" required="" class="textbox"/><br /><br />
                                <input type="submit" value="view" class="button" /><br /><br />
                            </form>
                    </center><br />
                </div>