Current File : //home/obabain/public_html/abc/Purchase_quotation_View1.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ include file="Connection.jsp" %>
    <%!
    
    String lpo=null;
   
    String qno=null;
    String qdate=null;
   
    int inid=0;
    String date=null;
    String gtotal=null;
    %>
    <%   
    String id=request.getParameter("id");
   
	Statement st=con.createStatement();
    ResultSet rs=st.executeQuery("select * from  purchase_quotation where pquotation_id='"+id+"'");
    		
    while(rs.next())
    {
    lpo=rs.getString("pname");
    qno=rs.getString("quotation_no");
    qdate=rs.getString("quotation_date");
    gtotal=rs.getString("paid_amt");
    
  
    }
    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">Purchase Quotation View</h3>
              </div>
             </div>
<div class="panel-body">
<%-- <div class="row">

<div class="form-group col-xs-4">

           <span style="color:#69BC98; font-size:large;"> <b><%=supplname %></b></span></br>
           <%=ship %></br>
           <%=sta %>
           
            <div class="onerow">
            Last PO Created:<span style="color:red;"><%=lpo %></span>
            </div>
            </div>
</div> --%>
<div class="row">
 <div align="right" >
 <a href="purchasequotationview.jsp" style="background:#204b58;margin-right: 40px" class="btn btn-info"  >View</a>
 </div>

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


 <div class="form-group col-xs-2">
               <p> <label for="quotno" style="margin:5px;">
               Quotation No<span style="color:red;">*</span></label></p>
<input type="text" class="form-control" name="quotno" value="<%=qno %>" readonly="readonly" >
</div>
 <div class="form-group col-xs-2">
 <p> <label for="invgrp" style="margin:5px;">
 Quotation Date</label></p>
<input type="text" class="form-control" name="invgrp" readonly="readonly" value="<%=qdate %>">
</div>

</div>

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

<th>Product <span style="color:red;">*</span></th>

<th>HSN</th>
<th>Qty</th>
<th>Price</th>

<th>UOM</th>

<th>Total</th>

</tr>
<tbody>
<%
ResultSet rp=st.executeQuery("select * from  purchase_quotation_item  where q_id="+id+"");
while(rp.next())
{
%>
<tr>

<td>
<%=rp.getString("p_name") %>
</td>
<td>
<%=rp.getString("item_hsn") %>
</td>
<td>
<%=rp.getString("item_qty") %>
</td>
<td>
<%=rp.getString("item_price") %>
</td>
<td>
<%=rp.getString("unit_name") %>
</td>
<td>
<%=rp.getString("item_sub_total") %>
</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">
 <table class="table table-bordered">

<tr>
            <th class="text-center">Grand&nbsp;Total</th>
            <td class="text-center"><input type="text" name='total_amount'style="width:150px" value="<%=gtotal %>" class="form-control" readonly/></td>
          </tr>
</table> 

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