<%@ include file="newindex.htm"%>
<%@ page import="java.sql.*" %>
<html>
    <head>
    </head>
    <body>
        <%!
        Connection con;
        Statement st;
        PreparedStatement pst;
        ResultSet rs;
        String uname,report,emp,utype,back;
        %>
        <%
        utype=(String)session.getAttribute("utype");
        emp=(String)session.getAttribute("uname");
        Class.forName("oracle.jdbc.driver.OracleDriver");
        con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","c2t","c2t");
        st=con.createStatement();
        rs=st.executeQuery("select * from report");
        %>
        <div style="position: absolute; width: 31px; height: 18px; z-index: 7; left: 973px; top: 254px" id="layer10">
        <b><a href="adminlogin.jsp"><font face="Tahoma" size="2" color="#2D2E32">Back</font></a></b></div>
        
            <div style="position: absolute; width: 100px; height: 27px; z-index: 5; left: 984px; top: 548px" id="layer8">
				<b><a href="login.jsp">
				<font face="Tahoma" size="2" color="#2D2E32">Logout</font></a></b></div>
           
        <div style="position: absolute; width: 592px; height: 236px; z-index: 3; left: 421px; top: 308px" id="layer1">
        <table border="2" width="100%" id="table1" bordercolorlight="#993366">
                <tr>
                    <td><b><font face="Tahoma" size="2">User Name</font></b></td>
                    <td><b><font face="Tahoma" size="2">report</font></b></td>
                </tr>
                <%
                while(rs.next())
                {
                    uname=rs.getString(1);
                    report=rs.getString(2);
                   
                %>
                <tr>
                    <td><font face="Tahoma" color="#2D2E32" size="2"><%=uname%></font></td>
                    <td><font face="Tahoma" color="#2D2E32" size="2"><%=report%></font></td>
                </tr>
                <%
                }
                %>
            </table>
        </div>

           <div style="position: absolute; width: 256px; height: 25px; z-index: 4; left: 293px; top: 249px" id="layer6">
				<b><font face="Arial" size="4" color="#F5A625">Customer Report</font></b></div>  

<p>&nbsp;</p>
 
</html>