Current File : //home/obabain/autoclutchess_obaba_in/TestCertificateView.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="java.sql.*" %>
    <%@ include file="Connection.jsp" %>
    <%@include file="master.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
 <script src='https://code.jquery.com/jquery-3.3.1.js'></script>   
 <script src='https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js'></script> 
 <script src="https://cdn.datatables.net/1.10.19/js/dataTables.bootstrap4.min.js" charset="utf-8"></script> 

 

<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>
<form method="post" id="contact" name="form1">
<section id="main">
<div class="container">
 <div class="row" style="width:110%">
    <div class="col-md-10">
       <div class="panel panel-default" >
       <div class="panel-heading main-color-bg">
        <h3 class="panel-title">TestCertificate View:</h3>
      <a class="btn btn-danger pull-right" href="TCModule.jsp" style="margin-top:-24px;">Add New</a>  
        </div>
            
       <div class="panel-body">
          <table id="example" class="table table-striped table-bordered "width="100%">
          <thead>
          <tr>
          <tr>
          <th>Sl no</th>
          <th>Tc&nbsp;No</th>
          <th>Tc&nbsp;Date</th>
          <th>Customer</th>
          <th>Po&nbsp;No</th>
          <th>Po&nbsp;Date</th>
          <th>Action</th>
          
</tr>
          </thead>
          <tbody>
          <%
          int i=1;
          Statement st=con.createStatement();
         ResultSet rs =st.executeQuery("SELECT * FROM test_certificate12");
         while(rs.next())
         {
        	 %>
        	
        	<tr>
        	     	<td><%=i %></td>
        	<td><a href="Testcertificateview2.jsp?id=<%=rs.getString("id") %>&id2=<%=rs.getString("t_no") %>"><%=rs.getString("t_no") %></a></td>
        	<td><%=rs.getString("t_date") %></td>
        	<td><%=rs.getString("customer") %></td>
        	<td><%=rs.getString("p_no") %></td>
        	<td><%=rs.getString("p_date") %></td>
        	<td><a href="testcertificatepdf.jsp?id=<%=rs.getString("id") %>"><input type="button" value="createTc" class="btn btn-info"></a></td>
          </tr>
        	
         <%
         
         i++;
         }
          %>
          
          </tbody>
          </table>
       </div>
       </div>
       </div>
       </div>
       </div>
       </section>
       </form>
       
</body>
</html>