Current File : /home/obabain/public_html/abc/raw_material_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>
</head>
<!--  <style>
.scrollmenu {
  overflow: auto;
  white-space: nowrap;
}

table,tr,td,th
{
border:1px solid black;
}

td,th
{
width:300px;
text-align:center;
height:20px
}
</style> --> 
<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://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.1/css/bootstrap.css">  -->
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">  
<body>
     <div class="row">
        <div class="col-md-9" style="width:80%">       
            <div class="panel panel-default">
              <div class="panel-heading main-color-bg" style="height:45px;">
                <h3 class="panel-title">Raw&nbsp;Material&nbsp;Specification</h3>
           <%-- <a class="btn btn-primary" href="RawMaterialQuaPlan.jsp?Id=<%=id%>" style="margin-left:970px;margin-top:-20px;">Add New</a> --%> 
              </div>
              <div class="panel-body">
 <script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>             
              
                         
<div style="overflow-x:auto;">
  <table  class="table table-striped table-bordered" id="example">       <!-- class="table table-bordered"    class="scrollmenu"   style="width:60%;height:70%" -->
  <thead>
    <tr>
    
       <tr>
         <th rowspan="2"><br> Sl&nbsp;No</th>
         <th rowspan="2"><br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Material&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th> 
         <th rowspan="2"> <br> Grade</th> 
         <th colspan="18" style="height:1%"> &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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Material Specification</th>                  
         <th rowspan="2"> <br> Mod&nbsp;Of&nbsp;Packing</th> 
         <th rowspan="2"> <br> Form&nbsp;Of&nbsp;Material</th>            
       <tr>
            
     
  
       <th colspan="2">&nbsp;&nbsp;C<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Si<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Mn<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Ni<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Cr<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Mo<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Cu<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Fe<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
       <th colspan="2">&nbsp;&nbsp;Ca<br>&nbsp;&nbsp;Min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Max</th>
          
  </tr>  
  </thead>
  <tbody> 
     <%
       try
       {
    	Statement st=con.createStatement();
    	ResultSet rs=st.executeQuery("select tb.*,(select product_name from ip_products where product_id=tb.product_id)material_grade from rawmaterial_qplan tb");
        /* ResultSet rs = st.executeQuery("select * from rawmaterial_qplan");  */ 
        while(rs.next())
        {
     %>
    
  <!-- <tbody>  -->
    <tr>
          
     <td scope="col">
         <%=rs.getString("id")%>
     </td>            
         
     <td scope="col">
         <%=rs.getString("material_grade")%>
     </td>
     
     <td> <%=rs.getString("grade")%> </td>  
     
     <td scope="col">
         <%=rs.getString("c_min")%>
     </td>

     <td scope="col">
        <%=rs.getString("c_max")%>
     </td>
     
     <td scope="col">
         <%=rs.getString("si_min")%>
     </td>
          
     <td scope="col">
         <%=rs.getString("si_max")%>
     </td>
         
     <td scope="col">
         <%=rs.getString("mn_min")%>
     </td>
     
     <td scope="col">
         <%=rs.getString("mn_max")%>
     </td>

     <td scope="col">
        <%=rs.getString("ni_min")%>
     </td>
     
     <td scope="col">
         <%=rs.getString("ni_max")%>
     </td>
     
     <td scope="col">
         <%=rs.getString("cr_min")%>
     </td>
         
     <td scope="col">
         <%=rs.getString("cr_max")%>
     </td>
     
     <td scope="col">
         <%=rs.getString("mo_min")%>
     </td>

     <td scope="col">
        <%=rs.getString("mo_max")%>
     </td>
     
     <td scope="col">
        <%=rs.getString("cu_min")%>
     </td>
     
     
     <td scope="col">
         <%=rs.getString("cu_max")%>
     </td>
         
     <td scope="col">
         <%=rs.getString("fb_min")%>
     </td>
     
     <td scope="col">
       <%=rs.getString("fb_max")%>
     </td>

     <td scope="col">
        <%=rs.getString("ca_min")%>
     </td>
     
      <td scope="col">
         <%=rs.getString("ca_max")%>
     </td>
     
     <td scope="col">
        <%=rs.getString("mode_ofpacking")%>
     </td>
     
     <td scope="col">
        <%=rs.getString("form_ofmaterial")%>
     </td>
    
  
     <%
        }
                
       } 
       catch (Exception e) 
       {
        e.printStackTrace();
       }
      %>  
      </tbody>   
  </table>
  </div>
   
<br>
                               
<a href="ViewProduct.jsp"  class="btn btn-primary">Back</a> 
<!-- <button class="btn btn-primary" onclick="goBack()">Back</button> -->

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



</body>
</html>