-
Notifications
You must be signed in to change notification settings - Fork 2
/
branchfinder.php
264 lines (258 loc) · 11.2 KB
/
branchfinder.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
<?php
//settings
$cache_ext = '.html'; //file extension
$cache_time = 3600; //Cache file expires afere these seconds (1 hour = 3600 sec)
$cache_folder = 'cache/'; //folder to store Cache files
$ignore_pages = array('', '');
$dynamic_url = 'http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . $_SERVER['QUERY_STRING']; // requested dynamic page (full url)
$cache_file = $cache_folder.md5($dynamic_url).$cache_ext; // construct a cache file
$ignore = (in_array($dynamic_url,$ignore_pages))?true:false; //check if url is in ignore list
if (!$ignore && file_exists($cache_file) && time() - $cache_time < filemtime($cache_file)) { //check Cache exist and it's not expired.
ob_start('ob_gzhandler'); //Turn on output buffering, "ob_gzhandler" for the compressed page with gzip.
readfile($cache_file); //read Cache file
echo '<!-- cached page - '.date('l jS \of F Y h:i:s A', filemtime($cache_file)).', Page : '.$dynamic_url.' -->';
ob_end_flush(); //Flush and turn off output buffering
exit(); //no need to proceed further, exit the flow.
}
//Turn on output buffering with gzip compression.
ob_start('ob_gzhandler');
?>
<?php
//echo $_GET['bank_name']." ".$_GET['branch_name']." ".$_GET['district']." ".$_GET['state'];
$conn=mysqli_connect('localhost','root','','ifsc');
$bank_name=$_GET['bank_name'];
$name2=explode("-",$bank_name);
$name3=implode($name2," ");
$state=$_GET['state'];
$name4=explode("-",$state);
$name5=implode($name4," ");
$district=$_GET['district'];
$name6=explode("-",$district);
$name7=implode($name6," ");
?>
<html>
<head>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$('#branch_name').change(function(){
$('#form4').submit();
});
$("#find").click(function(){
var value=$('#ifsc_micr').val();
if(value=='')
{
alert("PLEASE INSERT IFSC/MICR CODE TO GET DETAILS");
return false;
}
else
{
$('#filter').submit();
}
});
});
</script>
<style>
.container
{
width: 58%;
margin: 0px auto 0px 21%;
border: 1px solid silver !important;
box-shadow: 2px 2px 22px 2px silver;
padding-left: 0px;
padding-right: 0px;
}
p
{
padding-top:6px;
font-size:12px
}
strong
{
font-size:12px;
}
select
{
width: 76%;
height: 35px;
margin-top: 12px !important;
border-radius: 7px;
border: 2px solid silver;
}
a
{
font-size: 12px;
line-height: 2;
color: #2b9208;
}
.above
{
margin-top: 8px !important;
width: 100%;
border: 1px solid silver;
text-align: center;
border-bottom: 3px dashed rgba(43, 200, 226, 0.44) !important;
}
#filter
{
float:right;
}
.below
{
border-top:none !important;
border:1px solid silver;
}
.homer
{
margin-right: 7px;
height: 25px;
width: 56px;
padding-top: 4px;
border-radius: 7px;
font-size: 12px;
}
</style>
<title>All ABHYUDAYA CO-OP BANK LTD branches in DAKSHINA KANNADA District with IFSC Code - KARNATAKA List</title>
<meta content="noodp, noydir" name="robots">
<meta content="All <?php echo $name3;?> branches in <?php echo $name7;?> District IFSC Code, Contact Phone Number, Address - <?php echo $name5;?> List" name="description">
<meta content="All <?php echo $name3;?> branches in <?php echo $name7;?> District,IFSC Code" name="keywords">
<meta name="country" content="IN">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
</head>
<body>
<div class="col-lg-12">
<div class="col-lg-12" style="background-color:#1f8eef;height:51px;padding-right:0px">
<div class="col-lg-6">
<h2 style="color:#ffffff;">Get IFSC Code</h2>
</div>
<div class="col-lg-6" style="padding-top:20px;padding-right:0px">
<form action="../../ifc_micrfinder.php" method="post" id="filter">
<a href="../../index.php" class="btn btn-default homer"><b>Home</b></a><input style="border: 2px solid silver;" type="text" name="ifsc_micr" placeholder="IFSC / MICR CODE" id="ifsc_micr">
<button id="find"><img src="../../images/8.png"></button>
</form>
</div>
</div>
<div class="col-lg-3" style="padding-top:35px;padding-right:0px">
<strong>What is <?php echo $name3;?> <?php echo $name5;?> <?php echo $name7;?> IFSC Code?</strong>
<p style="text-align:justify">Indian Financial System Code (IFSC) is a eleven digit code provided by the Reserve Bank of India (RBI) for identifying bank branches in India individually. This code is used for NEFT and RTGS.<br>
The code consists of 11 characters. The first part is the first four alphabet characters represent the Bank. Next character is zero(0), which is reserved for use in the future. The last six characters are the branch code.</p>
<strong>What is <?php echo $name3;?> <?php echo $name5;?> <?php echo $name7;?> MICR Code?</strong>
<p style="text-align:justify">Magnetic Ink Character Recognition (MICR) is a printing technology that is used to print alpha-numeric details. MICR Code is printed on cheques and they allow the cheque to be processed easily.</p>
<h3 style="color:#015198;font-size:14px;"><?php echo $name3;?> <?php echo $name5;?> IFSC Code</h3>
<p style="text-align:justify"><?php echo $name3;?> <?php echo $name5;?> has Branches. This bank has branches in the following states. States list as follows {districtlist}. Find Indian Financial System Code, Magnetic Ink Character Recognition, SWIFT Code, Address and Contact number of all Abhyudaya Co-op Bank Ltd branches.</p>
</div>
<div class="col-lg-6" style="padding-top:28px">
<div class="col-lg-12 above">
<h1 style="color:#015198;margin-bottom: 22px;font-size:22px;">All <?php echo $name3;?> branches in <?php echo $name5;?> with IFSC Code</h1>
<h2 style="color:#015198;margin-bottom: 22px;font-size:15px;">Find IFSC Code using the Lists below...</h2>
<p align="justify">First select your bank from the following drop-down list then select your state, now select your district and finally select the branch of your bank to find <b>IFSC Code</b/>.</p>
<span style="color:#015198;float: left;font-size: 11px;">Select bank name > Select State > Select District > Select Branch</span><br>
<?php
echo '<form id="form4" method="get" action="../../imtermediate4.php">';
echo '<img src="../../images/3.png"><select name="bank_name"><option value="'.$bank_name.'">'.$name3.'</option></select><img src="../../images/4.png"><br>';
echo '<img src="../../images/3.png"><select name="state"><option value="'.$state.'">'.$name5.'</option></select><img src="../../images/4.png"><br>';
echo '<img src="../../images/3.png"><select name="district"><option value="'.$district.'">'.$name7.'</option></select><img src="../../images/4.png"><br>';
$sql="SELECT DISTINCT branch_name FROM `TABLE 6` WHERE bank_name='$name3' and state='$name5' and district='$name7' ORDER BY branch_name";
$res=mysqli_query($conn,$sql);
echo '<img src="../../images/2.png"><select name="branch_name" id="branch_name">';
echo '<option>Select Branch</option>';
while($r=mysqli_fetch_array($res))
{
echo '<option>'.$r['branch_name'].'</option>';
}
echo '</select><img src="../../images/5.png">';
echo '</form>';
?>
</div>
<div class="col-lg-12 below">
<?php
$sql2a="SELECT DISTINCT branch_name FROM `TABLE 6` WHERE bank_name='$name3' and state='$name5' and district='$name7'";
$res2a=mysqli_query($conn,$sql2a);
$counter=mysqli_num_rows($res2a);
?>
<h4 style="text-align:center;color:rgb(1, 81, 152);"><?php echo $counter;?> <?php echo $name3;?> Bank Branch(es) Is In <?php echo $name7;?> Districts Of <?php echo $name5;?></h4>
<h2 style="text-align:center;color:#015198;margin-bottom: 22px;font-size:15px;">District wise list of <?php echo $name3;?> in <?php echo $name5;?></h2>
<?php
echo '<div id="detail">';
$sql2="SELECT DISTINCT branch_name FROM `TABLE 6` WHERE bank_name='$name3' and state='$name5' and district='$name7' ORDER BY branch_name";
$res2=mysqli_query($conn,$sql2);
while($p=mysqli_fetch_array($res2))
{
$iname=$p['branch_name'];
$iname2=explode(" ",$iname);
$iname3=implode($iname2,"-");
$iname4=explode(" ",$iname3);
$name5=implode($iname4,"-");
$banker=explode("-",$bank_name);
$banker2=implode($banker," ");
$branch=$p['branch_name'];
$branch2=explode(" ",$branch);
$branch3=implode($branch2,"-");
$stater=explode("-",$state);
$stater2=implode($stater," ");
$sql99="SELECT * FROM `TABLE 6` WHERE bank_name='$banker2' and state='$stater2' and district='$name7' and branch_name='$branch'";
$res99=mysqli_query($conn,$sql99);
while($z=mysqli_fetch_array($res99))
{
$ifsc=$z['ifsc_code'];
echo '<a href="../../'.$bank_name.'/'.$state.'/'.$district.'/'.$branch3.'-'.$ifsc.'"><img src="../../images/6.png"> '.$p['branch_name'].'</a><br>';
}
}
echo '</div>';
?>
</div>
</div>
<div class="col-lg-3" style="padding-top:35px;padding-right:0px">
<strong>What is <?php echo $name3;?> <?php echo $name5;?> <?php echo $name7;?> RTGS?</strong>
<p style="text-align:justify">Real Time Gross Settlement (RTGS) is a fund transfer mechanism which is used to transfer money from one bank to another. This gross basis transfer happens in realtime, hence the name. Minimum amount that can be transferred through RTGS is Rs. 2,00,000. Fees to process RTGS will be applicable.</p>
<strong>What is <?php echo $name3;?> <?php echo $name5;?> NEFT?</strong>
<p style="text-align:justify">National Electronic Fund Transfer (NEFT) is an online money transfer system which is supported by RBI. NEFT is used for medium and small amount transfer between accounts and banks. There is no minimum amount limit to send money via NEFT.</p>
<h4 style="color:#015198;font-size:12px;"><?php echo $name3;?> <?php echo $name5;?> Home Loans</h4>
<h4 style="color:#015198;font-size:12px;"><?php echo $name3;?> <?php echo $name5;?> Personal Loans</h4>
<h4 style="color:#015198;font-size:12px;"><?php echo $name3;?> <?php echo $name5;?> Car Loans</h4>
</div>
<div class="col-lg-12" style="background-color: rgb(31, 142, 239);padding-top: 9px;margin-bottom:-20px">
<div class="col-lg-6" align="center">
<ul class=gain>
<li><a href="index.php">Home</a></li>
<li><a href="search.php">Search by IFSC / MICR</a></li>
<li><a href="contact.php">Contact</a></li>
<li><a href="help.php">Help</a></li>
<li><a href="disclaimer.php">Disclaimer</a></li>
<li style="border-right:none !important"><a href="privacy.php">Privacy</a></li>
</ul>
<style>
ul.gain
{
padding-left:0px;
list-style-type:none;
}
ul.gain li{
display: inline-block;
margin-right: 18px;
border-right: 2px solid white !important;
padding-right: 5px;
margin-right:5px;
}
ul.gain li a{color:white;}
ul li a:hover{color:black;}
</style>
</div>
<div class="col-lg-6" align="center">
© Copyright. <a href="/" style="color:blue;">Get IFSC Code</a>
</div>
</div>
</body>
</html>
<?php
if (!is_dir($cache_folder)) { //create a new folder if we need to
mkdir($cache_folder);
}
if(!$ignore){
$fp = fopen($cache_file, 'w'); //open file for writing
fwrite($fp, ob_get_contents()); //write contents of the output buffer in Cache file
fclose($fp); //Close file pointer
}
ob_end_flush(); //Flush and turn off output buffering
?>