Current File : //home/obabain/anms_obaba_in/inwardInvSelect.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*" %>
<%@ include file="Connection.jsp" %>
<%!
String pono=null;
String podate=null;
String invdate=null;
String buffer=null;
String buffer2=null;
String buffer3=null;
String buffer4=null;
%>
<%
if(request.getParameter("count")!=null)
{
String id=request.getParameter("count"); //get country_id from index.jsp page with function country_change() through ajax and store in id variable
try
{
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from ip_puchase_invoice where purchase_invoice_no='"+id+"'");
while(rs.next())
{
pono=rs.getString("pono");
podate=rs.getString("podate");
invdate=rs.getString("invoice_date_created");
}
//buffer=pono+ "|" +podate+ "|" +invdate;
buffer="<input type='text' name='pono' class='form-control input-group-lg reg_name' style='width:200px;margin:5px;' id='pno'invno value='"+pono+"'>";
buffer2="<input type='text' invno value='"+podate+"' name='podate' class='form-control input-group-lg reg_name' style='width:200px;margin:5px;' id='datetimepicker3'>";
buffer3="<input type='text' invno value='"+invdate+"' name='invdate' class='form-control input-group-lg reg_name' style='width:200px;margin:5px;' id='datetimepicker4'>";
buffer4=buffer+"|" +buffer2+"|"+buffer3;
//out.print(buffer);
response.getWriter().println(buffer4);
System.out.print(buffer4);
}
catch(Exception el){}
}
%>
<!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>
<script src="http://code.jquery.com/jquery-latest.min.js"
type="text/javascript"></script>
</head>
<body>
</body>
</html>