Current File : /home/obabain/anms_obaba_in/ViewTax5.jsp
<%@include file="master.jsp" %>
<%@include file="Connection.jsp" %> 
<%

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

<style type="text/css">
.highlight-error {
  border-color: red;
}
</style>
<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">
<form action="ViewTax.jsp" method="post"  >
<section id="main">
<div class="container">
 <div class="row" style="width:125%">
    <div class="col-md-10" >
       <div class="panel panel-default" style="background-color:#eae9e9;">
       <div class="panel-heading main-color-bg">
        <h3 class="panel-title">Fiscal tax</h3>
        </div>
         
          
     <div class="panel-body"  >
     <div align="right" >
<a href="Fiscal_tax.jsp"><input type="button" value="Add New" style="background:#009191;margin-right: 50px" class="btn btn-info"  /></a>
 </div>
    
       <div class="row" >
         
  

            
            <button type="submit" style="background:#fff" class="btn btn-default">All (0)</button>
        <button type="submit" style="background:#009191" class="btn btn-info" >Active(0)</button>
          <button type="submit" style="background:#009191" class="btn btn-info" >Inactive(0)</button>
 <br><br>
            
                    <b>View of Fiscal tax:</b>         
            
       <div class="panel-body">
<table id="myTable" class="table table-bordered" style="width:100%; border:2 ">
<tr>
	<th>Reference</th>
	<th>Label</th>
	<th>Type</th>
	<th>End of date</th>
	<th>Amount</th>
	<th>Due date</th>
	<th>Status</th>
</tr>
<%
try{
	Statement st=con.createStatement();
String sql ="select * from fiscal_tax";
resultSet = st.executeQuery(sql);
while(resultSet.next()){
%>





<tbody>

	<tr>

	<td>
  <a href="ViewFiscalTax.jsp?Id=<%=resultSet.getString("f_id")%>"><%=resultSet.getString("f_id") %></a>          
           
	</td>

	<td>
<%=resultSet.getString("f_lable") %>
	</td>


	<td>
<%=resultSet.getString("f_type") %>
	</td>
 
	<td>
<%=resultSet.getString("f_Eoperiod") %>
 	</td>
 
	<td>
<%=resultSet.getString("f_amount") %>
 	</td>
 
 	<td>
 <%=resultSet.getString("f_dDate") %>
 	</td>
 
 	<td>
Active
 	</td>

</tr>
<%
}

} catch (Exception e) {
e.printStackTrace();
}
%>


</tbody>
</table>
 <div align="right" >
<a href="Fiscal_tax.jsp"><input type="button" value="Back" style="background:#009191;margin-right: 50px" class="btn btn-info"  /></a>
 </div>
						</div>  
					</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>
</form>
</div>
</body>
</html>