Current File : //home/obabain/autoclutchess_obaba_in/shotblastdetailviewlost.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@page import="java.sql.*,java.util.*"%>
    <%@page import="java.sql.ResultSet"%>
    <%@ include file="Connection.jsp" %>
    <%@include file="master.jsp"%>
       <%  String id=request.getParameter("wid");%>
<!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">

<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">

<title>Insert title here</title>
<script>
function myFunction1(m_id) 
{
	var result = confirm("Are You Sure To Delete?");	
     if(result)
    	 {
    	 window.location.href = 'fettling&griding_Delete.jsp?id=' +id;
    	 }
     else
    	 {
    	 window.location.href = 'Fettling&grinding_view.jsp';
    	 }
}
</script>                   


<style>
.button{ background-color: #4CAF50;}
.button:hover {background-color: blue}

.button:active {
  background-color: #3e8e41;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
   border-radius: 15px;
}
</style>
</head>
 <script type="text/javascript">
 $(document).ready(function() {
	    $('#example').DataTable();
	} );
</script>
<body>
 <div class="row">
        <div class="col-sm-9">  
            <div class="panel panel-default">
              <div class="panel-heading main-color-bg">
                <h3 class="panel-title">Shot Blasting View</h3>
      
     <a class="btn btn-danger pull-right" href="OOADDShotblst.jsp?Id=<%=id%>" style="margin-top:-24px;">ADD More</a>      
              </div>
              <div class="panel-body">


  <table class="table table-bordered" id="example" >       
    <thead>
      <tr class="success"> 
      
          
        <th>Heat&nbsp;No</th>
      
      
        
        <th>Part&nbsp;Name</th>  
     <th>Part&nbsp;No</th>
      
        <th>Qty&nbsp;No</th> 
        <th>Rejected&nbsp;Qty&nbsp;No</th> 
         <th>Total&nbsp;Time(sec)</th> 
       <th>Remark</th> 
      
      </tr>
    </thead>
    <tbody>
    <%
    Statement st=con.createStatement();
 
ResultSet rs11=st.executeQuery("select * from  shotblast2 where lastid="+id+" ");
while(rs11.next()){
	
	

%>  
  
    
   <tr>
     
      
   
      <td><%=rs11.getString("heatno") %></td>
      
      <td><%=rs11.getString("partname") %></td>
      
      <td><%=rs11.getString("partno") %></td> 
      
      <td><%=rs11.getString("qty") %></td>
       <td><%=rs11.getString("rejqty") %></td>
        <td><%=rs11.getString("time") %></td>
    <td><%=rs11.getString("remark") %></td>
     
      
   
   </tr>    
   <%}%> 
  </tbody> 
  </table>
  
  
  
  
  
<button class="btn btn-primary" onclick="goBack()">Back</button>

<!-- </div> -->

<script type="text/javascript">
  function goBack() 
  {
   window.history.back(); 
  };
</script>
</div>
</div>
</div>


 <script>
$(document).ready(function(){
  $("#myInput").on("keyup", function() {
    var value = $(this).val().toLowerCase();
    $("#myTable tr").filter(function() {
      $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
    });
  });
});
</script>
 </div> 
</body>
</html>