-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchbyifsc.php
114 lines (84 loc) · 2.94 KB
/
searchbyifsc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php include('header.php'); ?>
<title>Search By IFSC</title>
</head>
<body>
<?php $page="search"; ?>
<?php include('navbar.php'); ?>
<!-- loader start -->
<div id="wait" style="display:none;width:70px;height:70px;border:0px solid black;position:absolute;top:40%;left:50%;padding:0px;"><img src='pic/wait.gif' width="70" height="70" /><br></div>
<!-- loader end -->
<!-- search start -->
<div class="container">
<div class="row">
<div class="col-12 text-center">
<div class="p-1 my-2 rounded bg-warning text-dark h3">
Search Bank By IFSC Code
</div>
</div>
<div class="col-12">
<form class="bg-light py-2 px-2 rounded needs-validation" id="searchf" novalidate>
<div class="mb-3">
<label for="ifsccode" class="form-label">IFSC CODE</label>
<input type="text" class="form-control" id="ifsccode" aria-describedby="ifschelp" required>
<div id="ifschelp" class="form-text"><span class="text-danger">*</span>Enter Bank IFSC Code</div>
<div class="valid-feedback">
Looks good!
</div>
<div class="invalid-feedback">
Oops something went wrong!
</div>
</div>
<div class="mb-3 text-center">
<button type="submit" id="searchbtn" class="btn btn-primary">Search</button>
</div>
</form>
</div>
<div id="result" class="my-2">
</div>
<div class="row justify-content-center text-center my-2">
<div class="col-12 col-sm-6 my-1">
<button type="button" class="btn btn-info" id="btnloc">Search Bank By Location</button>
</div>
<div class="col-12 col-sm-6 my-1">
<button type="button" class="btn btn-success" id="btnmicr">Search Bank By MICR Code</button>
</div>
</div>
</div>
</div>
<!-- search end -->
<?php include('footer.php'); ?>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Load records
$(document).ajaxStart(function(){
$("#wait").css("display", "block");
});
$(document).ajaxComplete(function(){
$("#wait").css("display", "none");
});
$("#searchbtn").on("click",function(e){
e.preventDefault();
var searchf=document.querySelector("#searchf");
//var bank=document.getElementsByName("bank");
if(!searchf.checkValidity()){
e.preventDefault();
e.stopPropagation();
}
searchf.classList.add('was-validated');
var ifsc = $('#ifsccode').val();
//searchf.reset();
$.ajax({
url: "php/searchifsc.php",
type: "POST",
data : {ifsc:ifsc },
success: function(data) {
$("#result").html(data);
}
});
});
});
</script>
</body>
</html>