Current File : //home/obabain/public_html/abc/ModifyFiscalTax.jsp
<%@include file="master.jsp"%>
<%@include file="Connection.jsp" %> 
   

<%

 
ResultSet rs= null;
%>
<%@page import="java.sql.*,java.util.*"%>
<%@page import="java.sql.ResultSet"%>



<style type="text/css">
.highlight-error {
	border-color: red;
}
table, th, td {
    border: 1px solid black;
    width:30px;
}

.inlineTable {
            display: inline-block;
        }

.panel-default>.panel-heading-custom {
	background: #ff0000;
	color: #fff;
}
</style>
<!-- <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">-->
<script
	src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script
	src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<body>
	<div class="row">
		
			<section id="main">
				<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">Modify Fiscal Tax</h3>
								</div>
<%!int id;String f_lable,f_project,f_Eoperiod,f_dDate,f_amount,f_paytype,f_account;ResultSet rs=null;%>
<form action="updateFiscalTax.jsp" method="post" >
<%
 try{ 
	 Statement st=con.createStatement();
String id=request.getParameter("Id");
int no=Integer.parseInt(id);

String query = "select * from fiscal_tax where f_id='"+no+"'";
 rs = st.executeQuery(query);
while(rs.next()){
	id=rs.getString("f_id");
	f_lable=rs.getString("f_lable");
	f_project=rs.getString("f_project");
	 System.out.println(f_project); 
	 f_Eoperiod=rs.getString("f_Eoperiod");
	 f_dDate=rs.getString("f_dDate");
	 f_amount=rs.getString("f_amount");
	 f_paytype=rs.getString("f_paytype");
	 f_account=rs.getString("f_account");
%>


								<!--  <div class="panel panel-">-->
								<!--   <div class="panel-heading main-color-bg"></div>-->

								<div class="onerow">
									
								</div>
								<br> <br>

								<div class="panel-body">

									<div class="row">

										<!-- <label for="lastname" style="margin:5px;">manufacturingOrder:</label>
             <input id="lastname" class=" input-group-lg reg_name"  style="width:170px;margin:5px;"  type="text" 
                       title="Enter last name"
                   name="address"    placeholder=""/>  -->
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<label for="lastname" style="margin-left:-32px;">Label &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;  :</label>
<input id="lastname" class="input-group-lg reg_name"style="width:170px;margin-left:px;height:31px;border-radius:5px;border:1px solid #ccc;"  name="f_lable" type="text" value="<%=f_lable%>" placeholder="" />

<div class="row">
<br>
 
	<label for="lastname" style="margin-left:-20px;">Project&emsp;&emsp;&emsp;&nbsp; :</label> 
	<input id="lastname" class="input-group-lg reg_name"style="width:170px;margin-left:px;height:31px;border-radius:5px;border:1px solid #ccc;" type="text"name="f_project" value="<%=f_project%>" placeholder="" />
	
	



										<div class="form-group col-xs-2">
											<p><label for="lastname" style="margin: 5px;"> </label>
											</p></div>
									</div>


									



									<div class="row">
<br>

	<label for="lastname" style="margin-left:123px;">End of date period :</label>			
	<input id="lastname" class=""style="width: 170px; margin:px;height:31px;border-radius:5px;border:1px solid #ccc;" type="date"name="f_Eoperiod" value="<%=f_Eoperiod%>" placeholder="" />
<div class="row">
	<br>
	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	<label for="lastname"	style="margin-left:46px;">Due date &nbsp; &emsp; &emsp;:</label>  
	<input id="lastname" class=""style="width: 170px; margin:px;height:31px;border-radius:5px;border:1px solid #ccc;" type="date"name="f_dDate" value="<%=f_dDate%>" placeholder="" />
</div>

									<div class="row">

<br>
 &nbsp; &nbsp; &nbsp; 


<label for="lastname" style="margin-left:140px;">Payment Type&nbsp; :</label> 
<input id="lastname" class="input-group-lg reg_name"style="width: 170px; margin:px;height:31px;border-radius:5px;border:1px solid #ccc;" type="text"name="f_paytype" value="<%=f_paytype%>" placeholder="" /> &nbsp;
										
									
		  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
	<br><br>
<label for="firstname" style="margin-left:165px;">Bank account&nbsp; :</label> 
<input id="firstname" class=" "style="width: 170px; margin:px;height:31px;border-radius:5px;border:1px solid #ccc;" type="text"placeholder=""name="f_account" value="<%=f_account%>"/>



</div>
 <input type="hidden" name="f_id" value="<%=id%>">  
									
									
                                  <div class="row">
   
 <div class="panel-body">
 <div class="inlineTable">
  <a href="ViewFiscalTax.jsp?Id=<%=rs.getString("f_id")%>"><input type="submit" value="Update" style="background:#204b58;margin-left:50px;" class="btn btn-info" onclick="validate();"></a>                    
    </div>	                           
 

<div class="inlineTable">
          <a href="ModifyFiscalTax.jsp"> <button type="button" class="btn btn-primary"style="margin-left:400px;">Cancel</button></a>                    
    </div>	                           
                               
                             
									 </div> 

   									
									
								
                                
                              
                                
                          </form>      
                         </div>       
                                        </div>
	<%
}

} catch (Exception e) {
e.printStackTrace();
}
%>
                                
							</div>
						</div>
					</div>
				</div>
	</div>
	
	</section>
	<%-- <% }else{ 
     response.sendRedirect("login.jsp");
    } %> --%>
	<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
	<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>

	<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
	<script
		src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
	<script
		src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
	<script
		src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
	<script type="text/javascript">
		$('[data-type="adhaar-number"]').keyup(
				function() {
					var value = $(this).val();
					value = value.replace(/\D/g, "").split(/(?:([\d]{4}))/g)
							.filter(s = s.length > 0).join("-");
					$(this).val(value);
				});

		$('[data-type="adhaar-number"]').on("change, blur", function() {
			var value = $(this).val();
			var maxLength = $(this).attr("maxLength");
			if (value.length != maxLength) {
				$(this).addClass("highlight-error");
				alert("Aadhar card number not valid");
			} else {
				$(this).removeClass("highlight-error");
			}
		});
	</script>
	
	</div>
</body>
</html>