Current File : //home/obabain/public_html/abc/productspecificationpdf1.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page language="java" import="java.util.Date" %>
       <%@ include file="Connection.jsp" %>

<!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">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<title>Insert title here</title>
<style>
</style>
</head>
<body>
<%
Date date=new Date();
String date1=date.toString();
String date3[]=date1.split(" ");
System.out.println(date3[2]+":"+date3[1]+":"+date3[5]);
String id=request.getParameter("id");
Statement st=con.createStatement();
String lot="";
String ig="";
String sname="";
String sinvno="";
String sinvdate="";
String item="";
String qty="";
ResultSet rs=st.executeQuery("SELECT * FROM inward_goods_specification where id="+id);
while(rs.next())
{
	lot=rs.getString("l_no");
	ig=rs.getString("ig_no");
	sname=rs.getString("s_name");
	sinvno=rs.getString("si_no");
	sinvdate=rs.getString("si_date");
	item=rs.getString("item_name");
	qty=rs.getString("qty");
	
}
%>
<div style="border:1px solid black;width:600px;height:700px;margin:20px">
<div class="row" >
<div class="col-sm-2">
<div style="margin:10px"> <img alt="" src="img/Saac.png"></div>
</div>
<div class="col-sm-8">
<p style="font-size:15px"><b>SHRI ANNNAPURNESHWARI ALLOY CASTING(P) LTD.</b><br>
<span style="font-size:12px">Plot No:28 D&E KIADB Industrial Area, Machenahalli,Nidige Post, <br>SHIVMOGGA-577222,karnataka India
Ph:08182 246700 <br>M:9741104560,9980124810,Email:annapoorneshwaricast@gmail.com</span></p>
</div>
<div class="col-sm-2">
<div style="margin:10px;margin-left:-20px"> <img alt="" src="img/Saac.png"></div>
</div>
</div> 
<div class="row">
<div class="col-xs-12">
<h5 style="border:1px solid black;margin-left:140px;font-family: initial"><b style="margin:5px">INWARD GOOD SPECIFICATION</b></h5>
</div>
</div>
<div style="margin-left:400px;,margin-top:20px">
<b>Date:</b><u><%=date3[2]+"-"+date3[1]+"-"+date3[5] %></u>
</div>
<div class="row" style="margin-top:50px;margin-left:10px">
<div class="col-sm-4"><b>Lot No:</b></div>
<div class="col-sm-3"><u><%=lot %></u></div>
<div class="col-sm-2"><b>IGI No:</b></div>
<div class="col-sm-3"><%=ig %></div>
</div>
<div class="row" style="margin-top:20px;margin-left:10px">
<div class="col-sm-4"><b>Supplier Name:</b></div>
<div class="col-sm-3"><%=sname%></div>
</div>
<div class="row" style="margin-top:20px;margin-left:10px">
<div class="col-sm-4"><b>Supplier Inv.No:</b></div>
<div class="col-sm-3"><%=sinvno %></div>
</div>
<div class="row" style="margin-top:20px;margin-left:10px">
<div class="col-sm-4"><b>Supplier Inv.Date:</b></div>
<div class="col-sm-3"><%=sinvdate %></div>
</div>
<div class="row" style="margin-top:20px;margin-left:10px">
<div class="col-sm-4"><b>Item Name:</b></div>
<div class="col-sm-3"><%=item %></div>
</div>
<div class="row" style="margin-top:20px;margin-left:10px">
<div class="col-sm-4"><b>Qty Supplied:</b></div>
<div class="col-sm-3"><%=qty %></div>
</div>
<h6 style="margin-top:20px;margin-left:10px">Acceptance date:Accept/Reject</h6>
<div>
<table class="table table-striped table-bordered" style="margin:20px;width:500px">
<thead>
<tr><th  colspan=2 >Elements</th>
<% 
     Statement st1=con.createStatement();
     ResultSet rs1=st1.executeQuery("SELECT * FROM `inward_goods_specification2` where g_id="+id);
     while(rs1.next())
     {
    	%>
    	<th><%=rs1.getString("elements") %></th>
    	<% 
     }
     %></tr>
<tr><th rowspan=3>Specified</th>

</tr>
<tr><th>min</th>
<% 
     Statement st2=con.createStatement();
     ResultSet rs2=st1.executeQuery("SELECT * FROM `inward_goods_specification2` where g_id="+id);
     while(rs2.next())
     {
    	%>
    	<th><%=rs2.getString("min") %></th>
    	<% 
     }
     %></tr>
<tr><th>max</th>
<% 
     Statement st3=con.createStatement();
     ResultSet rs3=st1.executeQuery("SELECT * FROM `inward_goods_specification2` where g_id="+id);
     while(rs3.next())
     {
    	%>
    	<th><%=rs3.getString("max") %></th>
    	<% 
     }
     %></tr>
</thead>
<tbody>

<tr><th colspan=2>Observed</th>
<% 
     Statement st4=con.createStatement();
     ResultSet rs4=st1.executeQuery("SELECT * FROM `inward_goods_specification2` where g_id="+id);
     while(rs4.next())
     {
    	%>
    	<th><%=rs4.getString("observed") %></th>
    	<% 
     }
     %></tr></tbody>
</table>
</div>
</div>

</body>
</html>