Current File : //home/obabain/public_html/abc/Suplier_wise_Report.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="Connection.jsp" %>
    <%!
    
    String issueno=null;
   
    String qno=null;
    String invoiceid=null;
   
    int inid=0;
    String date=null;
   
    %>
    <%   
    String id=request.getParameter("id");

	Statement st=con.createStatement();
   /*  ResultSet rs=st.executeQuery("select * from ip_suppliers where supplier_id='"+id+"'"); */
    ResultSet rs=st.executeQuery("select tb.*,(select supplier_name from ip_suppliers where supplier_id=tb.supplier_id)supp from ip_puchase_invoice tb where supplier_id='"+id+"'");		
    while(rs.next())
    {
   issueno=rs.getString("supp");
   invoiceid=rs.getString("pinvoice_id");
     
    }
    rs=st.executeQuery("select NOW() as date");
    while(rs.next())
    {
    date=rs.getString("date");
    }
    
    %>
<!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>
<style>

/* label1 {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    width: 80px;
} */
</style>
<body>
<form>
<%@include file="master.jsp" %>
<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">Supplierwise Product View</h3>
              </div>
             </div>
<div class="panel-body">

<div class="row">
 <!--<div align="right" >
 <a href=".jsp" style="background:#204b58;margin-right: 40px" class="btn btn-info"  >View</a>
 </div>-->

 
<%--  <input type="hidden" value="<%=id%>" name="id1">  --%>

 <div class="form-group col-xs-4">
               <p> <label for="quotno">
            Supllier Name<span style="color:red;"></span></label></p>
<input type="text" class="form-control" name="quotno" value="<%=issueno %>" readonly="readonly" >
</div>

</div>
</div>
<hr>  
           
            <div class="panel-body">
<table id="myTable" class="table table-bordered" style="width:99%;">
<tr>

<th>Product</th>
<th>Product Description</th>
<th>HSN</th>
<th>Price</th>
<th>Quantity</th>
<th>Unit</th>
</tr>
<tbody>
<%
ResultSet rp=st.executeQuery("select * from  ip_purchase_invoice_item  where  invoice_id ='"+invoiceid+"'");
while(rp.next())
{
%>
<tr>
            

<td><%=rp.getString("item_name")%>
</td>

<td><%=rp.getString("item_description")%>
</td>

<td><%=rp.getString("item_sku")%>
</td>

<td> <%=rp.getString("item_price")%>
</td> 
               
<td><%=rp.getString("item_qty")%>
</td> 
 
 <td><%=rp.getString("item_UOM")%>
</td>               

</tr>
    
<%} %>
</tbody>
</table>
 <div class="pull-right" style="margin-right: 50px;">
<div class="col-xs-12 col-md-7 col-md-offset-3 col-lg-3 col-lg-offset-3">
 

</div>
</div>
</div>
<div class="modal-footer" id="contact_submit">
<input type="button" value="Back" style="background:#204b58; margin-right:650px;" class="btn btn-info pull-left"  onclick="goBack()"/>
</div>
</div>
</div>
</div>
<%@include file="footer.jsp" %>
</form>
<script type="text/javascript">
function goBack() {
    window.history.back();
   
};
</script>
</body>

</html>