Current File : /home/obabain/public_html/abc/heat_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"%>
    
      <%  String id=request.getParameter("Id");%>
<!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>
<!-- <style>
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
}

th, td {
    text-align: left;
    padding: 8px;
}

tr:nth-child(even){background-color: #f2f2f2}
</style> -->


</head>

<body>
 <div class="row">
        <div class="col-md-9">
            <div class="panel panel-default">
              <div class="panel-heading main-color-bg">
                <h3 class="panel-title">Heat Treatment</h3>
              </div>
              <div class="panel-body">

 <a class="btn btn-primary" href="heat_treatment.jsp?Id=<%=id%>" style="margin-left:880px;">Add New</a>      
<br><br>
                      
<div style="overflow-x:auto;">
  <table class="table table-bordered">      
   <tbody>
    <tr>
      
        
       
       <tr>  
        <th rowspan="2"> <br><br>Grade</th>
         <th colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Solution Annealling</th> 
         <th colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Normalling</th> 
         <th colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Annealling</th> 
         <th colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hardening</th>
         <th colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tempering</th>
       </tr> 
    
       
       
        <th>Heat Upto</th>
        <th colspan="2">Soaking&nbsp;Time<br><br>&nbsp;&nbsp;Hr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Min</th>
        <th>Quench Media</th>
     
        
        <th>Heat Upto</th>
        <th colspan="2">Soaking&nbsp;Time<br><br>&nbsp;&nbsp;Hr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Min</th>
        <!-- <th>Hour</th>
        <th>Minute</th> -->
        <th>Quench Media</th>
        
        <th>Heat Upto</th>
        <th colspan="2">Soaking&nbsp;Time<br><br>&nbsp;&nbsp;Hr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Min</th>
        <!-- <th>Hour</th>
        <th>Minute</th> -->
        <th>Quench Media</th>
        
        
        <th>Heat Upto</th>
        <th colspan="2">Soaking&nbsp;Time<br><br>&nbsp;&nbsp;Hr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Min</th>
        <!-- <th>Hour</th>
        <th>Minute</th> -->
        <th>Quench Media</th>
        
        <th>Heat Upto</th>
        <th colspan="2">Soaking&nbsp;Time<br><br>&nbsp;&nbsp;Hr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Min</th> 
        <!-- <th>Hour</th>
        <th>Minute</th> -->
        <th>Quench Media</th>

  </tr>
  

     <%
       try
       {
    	Statement st=con.createStatement();
    	ResultSet rs=st.executeQuery("select tb.*,(select product_name from ip_products where product_id=tb.product_id)grade from heat_treatment tb where product_id="+id+"");
       /*  ResultSet rs = st.executeQuery("select * from heat_treatment");   */
        while(rs.next())
        {
     %>
    
     <!--  <tbody> -->
         <tr>
          
      <td scope="col">
         <%=rs.getString("grade") %>
     </td>
         
     <td scope="col">
         <%=rs.getString("solution_heat") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("solution_hour") %>
     </td>

     <td scope="col">
        <%=rs.getString("solution_min") %>
     </td>
     
      <td scope="col">
         <%=rs.getString("solution_media") %>
     </td>
     
     <td scope="col">
         <%=rs.getString("normalling_heat") %>
     </td>
         
     <td scope="col">
         <%=rs.getString("normalling_hours") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("normalling_min") %>
     </td>

     <td scope="col">
        <%=rs.getString("normalling_media") %>
     </td>
     
      <td scope="col">
         <%=rs.getString("annealing_heat") %>
     </td>
     
     <td scope="col">
         <%=rs.getString("annealing_hour") %>
     </td>
         
     <td scope="col">
         <%=rs.getString("annealing_min") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("annealing_media") %>
     </td>

     <td scope="col">
        <%=rs.getString("harden_heat") %>
     </td>
     
      <td scope="col">
         <%=rs.getString("harden_hour") %>
     </td>
     
     
     <td scope="col">
         <%=rs.getString("harden_min") %>
     </td>
         
     <td scope="col">
         <%=rs.getString("harden_media") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("temp_heat") %>
     </td>

     <td scope="col">
        <%=rs.getString("temp_hour") %>
     </td>
     
      <td scope="col">
         <%=rs.getString("temp_min") %>
     </td>
     
     <td scope="col">
         <%=rs.getString("temp_media") %>
     </td>
    
    </tbody> 
      <%
        }

       } 
       catch (Exception e) 
       {
        e.printStackTrace();
       }
    %>
  </table>
  </div>
    
<br>

<a href="ViewProduct.jsp"  class="btn btn-primary">Back</a> 
<!-- <button class="btn btn-primary" onclick="goBack()">Back</button> -->


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



</body>
</html>