Current File : /home/obabain/autoclutchess_obaba_in/lastyearco2.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"> Foundry Section Consumables Detailed 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="co2corenew_add.jsp?Id=<%=id%>" style="margin-top:-24px;">Add More</a>      
              </div>
              <div class="panel-body">
       <div style="overflow-x:auto;">

  <table class="table table-bordered" id="example" >       
    <thead>
      <tr class="success"> 

           
       <th>Heat No</th>
           <th>Part NAme</th>
       <th>Part No</th>
        <th>Sleeves</th>
        <th></th> 
        <th>Filters</th>
               <th></th>  
                <th>Process</th>
                 <th>No. of Cores</th>
                  <th>Core wt/No</th>
                   <th>Total</th>
       <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    <%
    Statement st=con.createStatement();
   
ResultSet rs11=st.executeQuery("select * from    core21 where core_id="+id+" ");
while(rs11.next()){
	
	

%>  
  
    
   <tr>
   
      <td><%=rs11.getString("heatno") %></td>
        <td><%=rs11.getString("partname") %></td> 
         <td><%=rs11.getString("partno") %></td> 
      <td><%=rs11.getString("sleeves") %></td>
        <td><%=rs11.getString("s1") %></td> 
      <td><%=rs11.getString("filter") %></td>
        <td><%=rs11.getString("f1") %></td> 
      <td><%=rs11.getString("process") %></td>
        <td><%=rs11.getString("core1") %></td> 
         <td><%=rs11.getString("core21") %></td> 
      <td><%=rs11.getString("total") %></td>
      
       
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
     
    <td> <a  title="Delete" href="Co2coreproduction_Delete1.jsp?Id=<%=rs11.getString("id")%>" onclick = "if (! confirm('Continue?')) { return false; }">
  <span class="glyphicon glyphicon-remove"></span> </td> 
 
   </tr>    
   <%}%> 
  </tbody> 
  <tr>
  <th></th>
  <th></th>
  <th></th>
  <th></th>
  <th></th>
  <th></th>
  <th></th>
  <th></th>
  <th></th>
  <th class="text-danger">Grand&nbsp;Total</th>
  <%
Statement st20=con.createStatement();
ResultSet rs20=null;
rs20=st20.executeQuery("SELECT sum(total) as grand   FROM  core21  where core_id="+id+"");


while(rs20.next())
{
%> 
 <th><input type="hidden" name="" value="" ><div align="center"><%=rs20.getString("grand") %> </div></th>
 <th></th>
  <% }%>
  </tr>
  
  </table>
  
  </div>
  
  
  
<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>