Current File : /home/obabain/khb_obaba_in/purchasequotationview.jsp
 <%@page import="java.sql.ResultSet"%>
<%@ 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 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="UTF-8">
<title>   </title>
 
 <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://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css">

</head>

<body>
<script type="text/javascript">
$(document).ready(function() {
    $('#example').DataTable();
} );
</script>
 <form action="StateVinutype.jsp" method="post">

<div class="row" style="width:108%;">
<div class="col-md-9"  style="background-color:white;">
<div class="panel panel-default" >
        <div class="panel-heading main-color-bg" style="height:40px;">
           <a href="#" style="color:white;"><h5>Purchase Quatation Viewpage</h5></a> 
     
         <div style="margin-top:-5px;" class="pull-right">
      
      <!-- <a class="btn btn-danger" href="CitynewVinu.jsp">+New</a> -->
<div style="margin-top:-35px;margin-left:970px;"><a class="btn btn-danger" style="background:" href="quotation.jsp">+New</a>
 <!-- <a style="background:" class="btn btn-danger" href="material_type.jsp">New</a>  -->

</div></div></div><br>
  <%-- <% ResultSet rs1 = null;
       rs1=st.executeQuery("select product_name from ip_stock_register where stock_id="+id+"");
       while(rs1.next()) 
       {
       %>
       <tr>
       <td>
       <b>
     <%=rs1.getString("product_name") %> ::
     
     </b></td>
       </tr> --%>
<div style="overflow-x:auto;width:100%;">
<table id="example"  class="table table-striped table-bordered">            
       
           <thead>
            <tr class="success">
 <th>Quotation No.</th>
 <th>Supplier Name </th>

 <th>Quotation Date</th>
  
<th> Total Amount</th>
 <th style="text-align:center">Action</th>          
            </tr>
       </thead>
              <tbody>
              <%
              	 try{
		
    String query="";		 
      /* query="select * from purchase_quotation_item pt right join purchase_quotation pq on pq.pquotation_id=pt.q_id"; */
      query="select * from purchase_quotation";
 	/* query="select  supplier_name, quotation_no,quotation_date,item_sub_total from purchase_quotation join  purchase_quotation ON  ip_suppliers.supplier_id=purchase_quotation.supplier_name joinpurchase_quotation ON purchase_quotation_item.q_id=purchase_quotation.pquotation_id"; */
    ResultSet  rs=st.executeQuery(query);
 	while(rs.next())
 	{
 		%> 
            <tr>
                  
                <td style="text-align:center"><a href="Purchase_quotation_View1.jsp?id=<%=rs.getString("pquotation_id")%>"><%=rs.getString("quotation_no")%></a></td>
                <td> <%=rs.getString("pname")%> </td>
               
                 
                <td> <%=rs.getString("quotation_date")%> </td>
                  <td> <%=rs.getString("paid_amt")%> </td>
               
                 <%-- <td style="text-align:center;">
 <a  href="QuotationEdit.jsp?Id=<%=rs.getString("pq.pquotation_id") %>"><span class="glyphicon glyphicon-pencil"></span></a>
                </td>  --%>
    <td style="text-align:center;">
 <a   href="QuatationDelete.jsp?Id=<%=rs.getString("pquotation_id") %>" onclick = "if (! confirm('Are you Sure To Delete?')) { return false; }"><span class="glyphicon glyphicon-remove"></span></a>
                </td> 
                  </tr>                   
          <%  
          	}
 	
 	}
              catch(Exception el){
            	  
              }
 	%> 
           
          
            </tbody>
           <!--  </thead> -->
                        
            
            </table>
            </div>
            </div>
            </div>
</div>
</form>
</body>


<%-- <%@include file="footer.jsp" %>  --%>
<script type="text/javascript">
function goBack() {
    window.history.back();
   
};
</script>

</html>