Current File : //home/obabain/public_html/abc/transfer_stock.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
           <%@ include file="Connection.jsp" %>
            <%@page import="java.sql.ResultSet"%>
            <%@page import="java.sql.*,java.util.*"%>
            
            <%
             Statement st=con.createStatement();
            %>

 <!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>
<%@include file="master.jsp"%>

  <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"> 

 <style>
 table {
    border-collapse: collapse;
    border-spacing: ;
    width: 80%;
    border: 1px solid #ddd;
} 

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

tr:nth-child(even) {
    background-color: #f2f2f2
}

.rrow {
   display:inline-block;
    clear: both;     
} 
 .center {
    margin: auto;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
} 
.hideform
 {
  display:none;
 }   
</style>  



<body>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script> 
 
       <div class="row">
          <div class="col-md-9">
            <div class="panel panel-default">
              <div class="panel-heading main-color-bg">
                   <h3 class="panel-title">Indent View</h3>
              </div>
              
  <div class="panel-body"> 
  

<table id="example" class="table table-striped table-bordered">            
  <thead>
  <tr class="p-3 mb-2 bg-info text-white">
      
      <th>Product</th>
      <th>Qty</th>
      <th>Date</th>
      <th></th>   
      
  </tr>
  </thead>
  <tbody>
  
      <%
       try
       {
       /* st=con.createStatement(); */  
        ResultSet rs = st.executeQuery("select * from bom_rawmaterial where type='F'");  
        while(rs.next())
        {  
      %>
    
    <tr>
     <td scope="col">
        <%=rs.getString("product")%>
     </td>    
         
     <td scope="col">
         <%=rs.getString("quantity")%>
     </td>
     
     <td scope="col">
         <%=rs.getString("date") %>   
     </td> 
     
     <td scope="col">
         <a href="d_bom.jsp?did=<%=rs.getString("fg_id")%>">  <button type="button">Issue</button> </a>    
     </td>
  </tr>

      <%
        }
               
       } 
       catch (Exception e) 
       {
        e.printStackTrace();
       } 
    %>
  

  </tbody>
</table>

 <div style="margin-left:10px;">
          <button onclick="goBack()" type="button" class="btn btn-primary">Back</button>         
 </div>

<script>
function goBack() 
{
    window.history.back();
}
</script>

             </div> 
              
         </div> 
      </div>
   </div>

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