Current File : //home/obabain/public_html/abc/editfiscalyear.jsp |
<%@include file="master.jsp" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%><%@ page language="java" import="javax.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
Statement st=con1.createStatement();
%>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<div class="container">
<div class="row" style="width:110%">
<div class="col-md-10" >
<div class="panel panel-default" >
<div class="panel-heading main-color-bg">
<h3 class="panel-title">Fiscal Year</h3>
</div>
</head>
<%!int id;String f_Ystart,f_Yend, f_year;ResultSet rs=null; %>
<body>
<form action="updatefiscalyear.jsp" method="post">
<%
try{
String id=request.getParameter("Id");
int no=Integer.parseInt(id);
System.out.print(no);
String query = "select * from fiscalyear where f_id='"+no+"'";
rs = st.executeQuery(query);
while(rs.next()){
id=rs.getString("f_id");
f_Ystart=rs.getString("f_Ystart");
f_Yend=rs.getString("f_Yend");
System.out.print(f_Yend);
f_year=rs.getString("f_year");
%>
<div class="panel-body" >
<div class="row" >
<b></b>
<br>
<div >
<label for="lastname" style="margin-left:5px;">Year Start:</label>
<input id="lastname" class="" style="width:130px;margin-left:px;height:30px;" type="date"
value="<%=f_Ystart %>" name="f_Ystart" >
<label for="lastname" style="margin-left:30px;">Year End:</label>
<input id="lastname" class="form-controle" style="width:130px;margin:px;height:30px;" type="date"
value="<%=f_Yend%>" name="f_Yend"/>
<label for="lastname" style="margin-left:60px;">Year:</label>
<input id="lastname" style="width:120px;margin:px;height:30px;" type="number"
value="<%=f_year%>" name="f_year" min="2001" max="2018" />
<span class="add-on">
<i class="icon-th"></i></span>
<input type="hidden" name="id" value="<%=id%>">
</div>
</div>
<br>
<div class="modal-footer" id="contact_submit">
<input type="button" value="Back" style="background:#204b58;" class="btn btn-info pull-left" onclick="goBack()"/>
<a class="btn btn-default" href="SalesInvoiceMain.jsp">Reset</a>
<input type="submit" value="Update" style="background:#204b58" class="btn btn-info" onclick="validate();">
</div>
</div>
<%}}catch(Exception e){
} %>
</form>
</body>
</html>