Current File : /home/obabain/khb_obaba_in/centrifugaltestcertificateview.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">Centrifugal TestCertificate &nbsp;View:</h3>
         <a class="btn btn-danger pull-right" href="Testcertificatecreation1.jsp" style="margin-top:-24px;">Add New</a>  
          <input type="button" value="Back" style="background:#204b58;margin-top:-24px;margin-left:820px;" class="btn btn-info pull-left"  onclick="goBack()"/>  
        </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>
          <!--  <th>Edit</th>-->
          <th>Delete</th>
          
          
</tr>
          </thead>
          <tbody>
          <%
          int i=1;
          Statement st=con.createStatement();
         ResultSet rs =st.executeQuery("SELECT * FROM centrifigulatestcertificate12");
         while(rs.next())
         {
        	 %>
        	
        	<tr>
        	     	<td><%=i %></td>
        	<td><a href="centrifugaltestcertificateview2.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="centritestcertificatepdf.jsp?id=<%=rs.getString("id") %>"><input type="button" value="createTc" class="btn btn-info"></a></td>
        <!--   <td  style="text-align:center"> <a href="" title="EDIT"> <span class="glyphicon glyphicon-pencil"></span></a>   </td>-->
        	 <td  align="left"><a href="deletecentrifugal.jsp?Id=<%=rs.getString("id")%>" onclick = "if (! confirm('Continue?')) { return false; }"><li class="glyphicon glyphicon-trash"></li></a></td>
         
          </tr>
          
          
          
        	
         <%
         
         i++;
         }
          %>
          
          </tbody>
          </table>
       </div>
       </div>
       </div>
       </div>
       </div>
       </section>
       </form>
       
</body>
<script type="text/javascript">
function goBack() {
    window.history.back();
   
};
</script>
</html>