Current File : //home/obabain/ms_obaba_in/viewstockk.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="Connection.jsp" %>
  <%@include file="master.jsp" %>
     <%
    
    	
    	Statement st=con.createStatement();
     ResultSet rsRowCnt = null;
   
    	
    %>
<!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://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
 -->
 
 <!-- <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">

<title>Inventory</title>
</head>

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

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

tr:nth-child(even){background-color: #f2f2f2}
</style>
<body>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>
<form>


<div class="content">
<div class="row">
<div class="col-md-9"  style="background-color:#eae9e9;width:80%;">
<div class="panel panel-default" >
       <div class="panel-heading main-color-bg">
        <h3 class="panel-title">Stock</h3>
              </div>
             </div>
            

 <div class="headerbar-item pull-right" style="margin-top:-55px;"><a class="btn btn-danger" style="background:" onclick="goBack()">Back</a>
 
<a class="btn btn-danger" style="background:" href="OutwardForm.jsp">New</a>
 
</div> 

<div>

<table class="table table-bordered" id="example">
<thead>
<tr>
<th>PO Date</th>
<th>Product Name</th>
<th>HSN</th>
<th>Total Qty</th>
<th>Accepted Qty</th>
<th>Rejected Qty</th>
<th>QC</th>
<!-- <th>Options</th> -->
</tr>
</thead>
<tbody>
<%
try{
ResultSet rs=null;

	rs=st.executeQuery("select * from ip_stock_register where  type='Q' and status=0   order by podate desc");

	
 while(rs.next())
    {  
	 %>
	 
<tr>
<td style="width:90px";><%=rs.getString("podate") %></td>
<td scope="col"><%=rs.getString("product_name") %></td>
<td scope="col"><%=rs.getString("product_hsn") %></td>
<td scope="col"><%=rs.getString("total_qty") %></td>
<td scope="col"><%=rs.getString("qty_pur") %></td>
<td scope="col"><%=rs.getString("rej_qty") %></td>
<td scope="col"><%=rs.getString("qc_name") %></td>

</tr>
<%}
}
	catch(Exception el){out.print(el);}
%>

</tbody>

       

</table>
</div>

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