-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
257 lines (250 loc) · 10.2 KB
/
index.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
<?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');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="noodp, noydir" name="robots">
<meta content="IFSC Code, MICR Code List of all Banks in India. IFSC Code List, Find IFSC Code, Bank IFSC Code, branch contact phone number, address" name="description">
<meta content="ifsc code,micr code, bank address,bank branches, bank contact number" name="keywords">
<meta name="country" content="IN">
<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(){
$('#bank_name').change(function(){
$('#form1').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>
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;
}
.container
{
padding-left: 0px;
width: 58%;
margin: 0 auto;
border: 1px solid silver !important;
box-shadow: 2px 2px 22px 2px silver;
padding-right: 0px;
margin-left: 21%;}
</style>
<title>IFSC Code and MICR Code of all Bank Branches in India</title>
</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 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 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>
</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;">IFSC Code, MICR Code and Branch Code of all NEFT enabled bank Branches in India</h1>
<h2 style="color:#015198;margin-bottom: 22px;font-size:15px;">Find IFSC Code / MICR Code using the Lists below...</h2>
<p align="justify">Select your bank from the drop-down list below and then select your state. After that select your district and finally select the branch of your bank to find your branch <b>IFSC Code</b/>.</p>
<span style="color:#015198;
float: left;font-size: 11px;">Select bank name ></span><br>
<?php
$conn=mysqli_connect('localhost','root','','ifsc');
if(!$conn)
{
echo "error in connection";
exit;
}
$sql="SELECT DISTINCT bank_name FROM `TABLE 6` ORDER BY bank_name";
$res=mysqli_query($conn,$sql);
echo '<div id="div3">';
echo '<form id="form1" method="get" action="imtermediate1.php">';
echo '<img src="images/2.png" style="margin-left:30px">';
echo '<select id="bank_name" name="bank_name">';
echo '<option value="">SELECT BANK NAME</option>';
while($r=mysqli_fetch_array($res))
{
//echo $r['bank_name'];
$name=$r['bank_name'];
$name2=explode(" ",$name);
//$name3=implode($name2,'.');
$name5="";
for($i=0;$i<count($name2);$i++)
{
$name3=$name2[$i];
$name4=ucfirst(strtolower($name3));
$name5.=$name4;
}
echo '<option value="'.$name5.'">'.$name.'</option>';
}
//echo $name5.'<br>';
echo '</select><img src="images/5.png" height="30px"><br>';
echo '<img src="images/2.png"><select><option>State</option></select><br>';
echo '<img src="images/2.png"><select><option>District</option></select><br>';
echo '<img src="images/2.png"><select><option>Branch</option></select><br>';
echo '</form>';
echo '</div>';
?>
</div>
<div class="col-lg-12 below">
<h4 style="text-align:center;color:rgb(1, 81, 152);">
List Of Banks</h3>
<?php
echo '<div id="detail">';
$sql2="SELECT DISTINCT bank_name FROM `TABLE 6` ORDER BY bank_name";
$res2=mysqli_query($conn,$sql2);
while($p=mysqli_fetch_array($res2))
{
$name=$p['bank_name'];
$name2=explode(" ",$name);
$name5="";
for($i=0;$i<count($name2);$i++)
{
$name3=$name2[$i];
$name4=ucfirst(strtolower($name3));
$name5.=$name4;
}
$pieces = preg_split('/(?=[A-Z])/',$name5);
$pieces2=implode($pieces,"-");
$piece3=ltrim($pieces2,"-");
echo '<a href="'.$piece3.'" ><img src="images/6.png"> '.$p['bank_name'].'</a><br>';
}
echo '</div>';
?>
</div>
</div>
<div class="col-lg-3" style="padding-top:35px;padding-right:0px">
<strong>What is 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 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>
</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>
</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
?>