Current File : //home/obabain/public_html/abc/Productselect4.jsp
<%@ page language="java" import="java.sql.*" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@page import="java.sql.*" %>
    <%@ include file="Connection.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="img/ico.ico" />
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/estilos.css" rel="stylesheet">
    <script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Product</title>
</head>
<body>
<section id="main">
			<div class="container">
			 <div class="row">
			<div class="panel panel-default">
          <div class="col-md-8">
<table class="table table-striped" >
<thead>
<tr>
<th>order_number</th>
<th>Product Name</th>
<th>Quantity</th>
<th>Unit</th>
<th>select</th>
</tr>
</thead>

<tr>
<%-- <%
try
{
	
	Statement st=con.createStatement();
	ResultSet rs=st.executeQuery("select * from ip_products where family_id=1");
    while(rs.next())
	{%>
	<td><%=rs.getString("product_id") %></td>
	<td><%=rs.getString("product_sku") %></td>
	<td><%=rs.getString("product_name") %></td>
	<td><a href="#" onclick="returnYourChoice1('<%=rs.getString("product_id") %>','<%=rs.getString("product_name")%>')" ><img src="img/tick_green.png" height="32" width="32"></a></td>
</tr>
<%		
	}
}
catch(Exception el){}
%> --%>

<%
try
{
	Statement st=con.createStatement();
	ResultSet rs=st.executeQuery("select tb.*,(select product_name from ip_products where product_id=tb.pname)as product,(select unit_name_plrl from ip_units where unit_id=tb.unit)as unt from foundery_order tb");
    while(rs.next())
	{%>
	<td><%=rs.getString("order_number")%></td>
	<td><%=rs.getString("product")%></td>
	<td><%=rs.getString("quantity")%></td>
	<td><%=rs.getString("unt")%></td>
	<td><a href="#" onclick="returnYourChoice1('<%=rs.getString("pname")%>','<%=rs.getString("product")%>','<%=rs.getString("quantity")%>','<%=rs.getString("unt")%>')" ><img src="img/tick_green.png" height="32" width="32"></a></td>
</tr>
<%		
	}
}
catch(Exception el){}
%>


</table>
<input type="button" value="submit">


</div>
</div>
</div>
</div>
</section>
<script type="text/javascript">
    // return the value to the parent window
    function returnYourChoice1(choice,choice2,choice3,choice4){
        opener.setSearchRslt2(targetField,targetField1,targetField2,targetField3,choice,choice2,choice3,choice4);
        window.close();
    }
</script>
</body>
</html>