Current File : //home/obabain/public_html/abc/ProductSpecification.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 rsPagination = null;
Statement st1=con.createStatement();
ResultSet rsRowCnt = null;
ResultSet rs1=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>
<script src="js/select2.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
$(document).ready(function() {
$('#example').DataTable();
} );
</script>
<%
String sup=request.getParameter("id2");
System.out.println(sup);%>
<form action="ProductSpecification2.jsp?id=<%=sup%>" method="post">
<div class="content">
<div class="row">
<div class="col-md-9" style="background-color:white;">
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Product Selections</h3>
<div class="headerbar-item pull-right" style="margin-top:-25px;"><a style="background:#204b58" class="btn btn-info" onclick="goBack()">Back</a>
</div>
</div>
</div>
<div>
<table id="example" class="table table-striped table-bordered">
<thead>
<tr>
<!-- <th>Status</th> -->
<th>Slno</th>
<th>Product Name</th>
<th>Product Description</th>
<th>Total Qty</th>
<th>Accepted Qty</th>
<th>options</th>
</tr>
</thead>
<tbody>
<%
int i=1;
String tqty="";
String acc="";
String prd="";
String po=request.getParameter("id");
ResultSet rs=null;
rs=st.executeQuery("SELECT * FROM ip_stock_register where pono='"+po+"'");
while(rs.next())
{
%>
<tr>
<%-- <td><%=rs.getString("stat") %></td> --%>
<td><%=i%></td>
<td><%=rs.getString("product_name")%></td>
<td><%=rs.getString("product_id")%></td>
<td><%=rs.getString("qty_pur")%></td>
<td><%=rs.getString("total_qty_nos")%></td>
<td>
<input class="btn btn-default" name="prd" type="checkbox" value="<%=rs.getString("product_name") %>_<%=rs.getString("product_id") %>_<%=rs.getString("qty_pur")%>_<%=rs.getString("invno")%>_<%=rs.getString("invdate")%>"></td>
</tr>
<%
i++;
} %>
</tbody>
</table>
<div>
<button class="btn-success form-control" type="submit" style="width:200px;text-align:center">submit</button>
</div>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
function goBack() {
window.history.back();
};
</script>
<script>
function myFunction() {
var input, filter, table, tr, td, i;
input = document.getElementById("myInput");
filter = input.value.toUpperCase();
table = document.getElementById("datatable-responsive");
tr = table.getElementsByTagName("tr");
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[3];
if (td) {
if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>
</body>
</html>