Current File : /home/obabain/public_html/abc/Inspectionreport_detailed_view.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"%>
<!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">Inspection Report View</h3>
      
<!--      <a class="btn btn-danger pull-right" href="MeltingView_3.jsp" style="margin-top:-24px;">Total&nbsp;Melted&nbsp;View</a>         
 -->        <a class="btn btn-danger pull-right" href="Inspectionreport.jsp" style="margin-top:-24px;">Add New</a>      
              </div>
              <div class="panel-body">


  <table class="table table-bordered" id="example" >  
    <caption style="text-align,:center;" center;><span style="color:green;text-align: center;"><b>    Dimension    &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Observerd value </b></span></caption> 
       
    <thead>
      <tr class="success"> 
        <th></th>
           <th></th> 
        <th></th>
           <th></th> 
       <th></th> 
      <th></th>
           <th></th> 
        <th></th>
           <th></th> 
       <th></th> 
      
        
        <th></th>  
     <th></th>
      
         <th>Remarks</th>
         
     
      </tr>
    </thead>
    <tbody>
    <%
    String wid=request.getParameter("wid");
    Statement st=con.createStatement();
ResultSet rs11=st.executeQuery("select * from  inspectionreport1 where lastid='"+wid+"' ");
while(rs11.next()){
	
	

%>  
  
    
   <tr>
      <td><%=rs11.getString("dimension1") %></td>
          <td><%=rs11.getString("dimension") %></td>
      <td><%=rs11.getString("abbsorvation1") %></td> 
     
    
      
      <td><%=rs11.getString("abbsorvation2") %></td>
      
      <td><%=rs11.getString("abbsorvation3") %></td> 
      <td><%=rs11.getString("abbsorvation4") %></td>
        <td><%=rs11.getString("abbsorvation5") %></td>
         <td><%=rs11.getString("abbsorvation6") %></td> 
     
    
      
      <td><%=rs11.getString("abbsorvation7") %></td>
      
      <td><%=rs11.getString("abbsorvation8") %></td> 
      <td><%=rs11.getString("abbsorvation9") %></td>
        <td><%=rs11.getString("abbsorvation10") %></td>
    <td><%=rs11.getString("remark") %></td>
     
    <%--   <td> <a  title="Delete" href="Inspectionreport_Delete.jsp?Id=<%=rs11.getString("id")%>" onclick = "if (! confirm('Continue?')) { return false; }">
 <span class="glyphicon glyphicon-remove"></span> </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>