Current File : //home/obabain/ms_obaba_in/editVouchLedgerwise.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@include file="Connection.jsp" %>
<%
Statement st=con.createStatement();
ResultSet rs = null;
String id=request.getParameter("id");
String type=request.getParameter("type");
%>
<!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>
<input type="hidden" name="Id" value="<%=id%>">
<%
	try
{
	String Id=request.getParameter("Id");
	if(type.equals("payment"))
	{
		response.sendRedirect("editPayVoucher.jsp?Id="+Id +"");
	}
	if(type.equals("receipt"))
	{
		response.sendRedirect("editRecVoucher.jsp?Id="+Id +"");
	}
	if(type.equals("contra"))
	{
		response.sendRedirect("editContraVoucher.jsp?Id="+Id +"");
	}
	if(type.equals("journal"))
	{
		response.sendRedirect("editJournalVoucher.jsp?Id="+Id +"");
	}
	if(type.equals("sales"))
	{
		response.sendRedirect("ViewSIbyNO.jsp?Id="+Id +"");
		
	}
	if(type.equals("purchase"))
	{
		response.sendRedirect("ViewInvoicePurchaseById.jsp?Id="+Id +"");
		
	}
	}
catch (Exception el) {
	}
%>
</body>
</html>