Current File : /home/obabain/public_html/abc/F_LapouringDA.jsp |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="javax.sql.*" %>
<%@include file="Connection.jsp" %>
<%
Statement st=con.createStatement();
ResultSet rs = 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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form>
<%
try{
/* String shift=(String)session.getAttribute("shiftg");
String process=(String)session.getAttribute("processg"); */
String order_no=request.getParameter("order_no");
String heat_no=request.getParameter("heat_no");
String shift=request.getParameter("shift");
String process=request.getParameter("process");
String date=request.getParameter("date");
String voucher = "";
String[] a=null;
/* String[] b=null;
String[] c=null;
String[] d=null; */
a=request.getParameterValues("labour[]");
for(int m=0;m<a.length;m++){
voucher+=a[m]+" ";
}
/* b=request.getParameterValues("lname[]");
c=request.getParameterValues("skill[]");
d=request.getParameterValues("phno[]");
*/
/* for(int j=0;j<=a.length-1 ;j++){ */
int i=st.executeUpdate("insert into pouring(shift,process,e_id,createddate,order_no,heat_no) values('"+shift+"','"+process+"','"+voucher+"','"+date+"','"+order_no+"','"+heat_no+"')");
/* } */
response.sendRedirect("F_Labour_pouring.jsp");
}
catch(Exception el){out.print(el);}
%>
</form>
</body>
</html>