Current File : /home/obabain/public_html/abc/HeatTreat_View.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
           <%@ 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">
<title>Insert title here</title>


<style type="text/css">
.rrow
{
 display: inline-block;
   margin: 30px;
}    
</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">
</head>

<body>
    <div class="row">
        <div class="col-md-9">
            <div class="panel panel-default">
   
              <div class="panel-heading main-color-bg" style="height:40px;">   
                 <h3 class="panel-title">Heat Treatement View</h3>
              </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">
    <thead>
      <tr class="success">
        <th>Order&nbsp;No</th>
        <th>Cycle&nbsp;Name</th>
        <th>Date</th>
        <th>Heat&nbsp;NO</th>
        <th>Item&nbsp;Description&nbsp;part&nbsp;no</th>
        <th>Grade</th>
        <th>Qty&nbsp;in&nbsp;no's</th>
        <th>Qty&nbsp;in&nbsp;kg's</th>
        <th>Edit</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    
    <%
       try
       {
    	Statement st=con.createStatement();
        ResultSet rs = st.executeQuery("select * from heat_treat");  
        while(rs.next())
        {
     %>
    
     
         <tr>
          
         
     <td scope="col">
         <%=rs.getString("order_no") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("cycle_name") %>
     </td>

     <td scope="col">
        <%=rs.getString("date") %>
     </td>
     
     <td scope="col">
        <%=rs.getString("heat_no") %>
     </td>
     
     <td scope="col">
         <%=rs.getString("item_description") %>
     </td>
     
       <td scope="col">
         <%=rs.getString("grade") %>
     </td>

     <td scope="col">
        <%=rs.getString("qty_no") %>
     </td>
     
     <td scope="col">
        <%=rs.getString("qty_kg") %>
     </td>
    
     <td>
       <a href="edit_ht.jsp?id=<%=rs.getString("id")%>">  <span class="glyphicon glyphicon-edit"></span></a>
     </td>
     
     <td>
       <a href="delete_ht.jsp?id=<%=rs.getString("id")%>">  <span class="glyphicon glyphicon-remove"></span></a>
     </td>
     
      <%
        }

       } 
       catch (Exception e) 
       {
        e.printStackTrace();
       }
    %>
      
    </tbody>
  </table>
 </div> 
   
   <br>
  <div class="modal-footer" id="contact_submit">
       <input type="button" value="Back" style="margin-right:620px" class="btn btn-primary pull-left" onclick="goBack()">
        <!-- <a class="btn btn-primary" href="customerNew.jsp">Reset</a>
        <button type="submit" class="btn btn-primary" onclick="validatename()">Save Changes</button> -->
      </div> 
     
             
              </div>
              <br>
            </div>
          </div>
        </div>
        <script type="text/javascript">
  function goBack() 
  {
   window.history.back(); 
  };
</script>
</body>
</html>