/
search-header.php
187 lines (127 loc) · 6.76 KB
/
search-header.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
<?php include 'config.php';?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" href="style.css" rel="stylesheet" />
<link type="text/css" href="menubar.css" rel="stylesheet" />
<script type="text/javascript" src="jquery.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
@$bname=addslashes($_REQUEST['bname']);
@$lcity=addslashes($_REQUEST['lcity']);
@$c=$lcity;
@$first_city_cap = ucfirst($c);
@$city_rep=str_replace(' ','+',$c);
@$res=mysql_query("SELECT * FROM city WHERE city='$lcity'");
$num_rows_c=MYSQL_NUM_ROWS($res);
@$id=mysql_result($res,0,"id");
@$state=mysql_result($res,0,"state");
@$title=mysql_result($res,0,"title");
@$mdesc=mysql_result($res,0,"mdesc");
@$keyword=mysql_result($res,0,"keyword");
@$cdesc=mysql_result($res,0,"cdesc");
if($num_rows_c!="")
{
}else{
echo "<script type='text/javascript'>";
echo "alert('City in which you want to search is not Foundt. Try Another City')";
echo "</script>";
echo "<script type='text/javascript'>";
echo "window.location = 'index.php'";
echo "</script>";
}
$title="Search result for ".$bname." ".$first_city_cap.", Find ".$bname." in ".$first_city_cap;
$keyword="Businesses ".$bname." ".$first_city_cap.", Search for ".$bname." in ".$first_city_cap.", Find ".$bname." Local Listings";
$mdesc="Searches for ".$bname." Businesses in ".$first_city_cap.". Find local listings ".$bname. " in ".$first_city_cap." Business directory";
?>
<title><?php echo $title; ?></title>
<meta name="keywords" content="<?php echo $keyword; ?>" />
<meta name="description" content="<?php echo $mdesc; ?>" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5607347-44']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body bgcolor="#C1CDE1">
<!-- div for centering -->
<div style="width:100%; height:100%; border:thick #990033;">
<!-- div for relative -->
<div style="margin-left:auto; margin-right:auto; width:950px; height:auto; position:relative; background-color:#0033FF; border-width:3px; border-color:#33CC99;">
<!-- Main Div Menu -->
<div id="first-main" style="background-color:#0E94CE; position:absolute; width:950px; height:30px; padding:0em; top:10px; left:0px; border-style:solid; border-width:0px; display:block;">
<table width="950px">
<tr>
<td align="left" width="475px"><img src="business-dir/img/arrow-left-national.gif" /><a href="index.php"><font color="#FFFFFF" ><b>National Home </b></font></a>
</td>
<td align="right" width="475px"><font color="#FFFFFF">
<?php
if(@$_SESSION['fname']!=""){
echo "<a href='add-business/index.php'><font color='#ffffff'>Add Your Business</font></a> | <a href='contactus.php'><font color='#FFFFFF'>Conatct us</font></a> | <a href='user/index.php'><font color='#FFFFFF'>My Account</font></a> | Welcome ".$_SESSION['fname'];
echo " ";
echo $_SESSION['lname']." | <a href='logout.php'><font color='#FFFFFF'>Logout</font></a>";
}
else
{
echo "<a href='allcities.php'><font color='#ffffff'>Add Your Business</font></a> | <a href='login.php'><font color='#FFFFFF'>Login</font></a> | <a href='register.php'><font color='#FFFFFF'>Become A Member</font></a> | <a href='contactus.php'><font color='#FFFFFF'>Contact us</font></a>";
} ?>
</font>
</td>
</tr>
</table>
</div>
<!-- -->
<!-- Div for cover background -->
<div id="header" style="background-color:#ffffff; position:absolute; width:950px; height:2794px; padding:0em; top:32px; left:0px; border-style:solid; border-width:0px;">
<!-- Div for header -->
<div id="header" style=" background-image:url(img/Untitled-4.gif); background-repeat:repeat-x; position:absolute; width:950px; height:150px; padding:0em; top:0px; left:0px; border-style:solid; border-width:0px;">
<div style="height:100px; width:600px; position:absolute; top:10px; left:40px;">
<h1><font color="#000000">Uk Local Business Directory</font></h1>
</div>
<div style="height:100px; width:600px; position:absolute; top:30px; left:680px;">
<img src="business-dir/img/topbanner-pin.png" />
</div>
<div style="height:100px; width:600px; position:absolute; top:10px; left:700px;">
<p><h1><font color="#FFFFFF"><?php echo @$first_city_cap; ?></font></h1></p>
</div>
<div style="height:100px; width:600px; position:absolute; top:60px; left:800px;">
<a style="text-decoration:none;" href="allcities.php"> <img src="business-dir/img/topbanner-changelocation.png" /> </a>
</div>
</div>
<!-- Div for NAV BAR -->
<div id="header" style=" position:absolute; width:950px; height:38px; padding:0em; top:80px; left:4px; border-style:solid; border-width:0px;">
<div id="menubar">
<ul>
<li class="firstitem"><img src="images/menu-left.png" width="14" height="38" ></li>
<li id="house"><a href="city/<?php echo $city_rep; ?>">Local Home</a></li>
<li id="business-dir"><a href="business-dir/<?php echo $city_rep;?>">Business Directory</a></li>
<li id="photo"><a href="city/photos/c/<?php echo $city_rep; ?>">Local Photos</a></li>
<li id="wolfram"><a href="city/events/c/<?php echo $city_rep; ?>">Local Event</a></li>
<li id="key"><a href="city/property/c/<?php echo $city_rep; ?>">Local Property</a></li>
<?php if(@$_SESSION['uid']!=""){
echo "<li id='add'><a href='add-business/index.php'>Add Your Business</a></li>";
echo "<li id='banda'><a href='user/index.php'>Account</a></li>";
}else{
echo "<li id='add'><a href='login.php'>Add Your Business</a></li>";
echo "<li id='banda'><a href='login.php'>Login</a></li>";
}
?>
<li class="lastitem" ><img src="images/menu-right.png" width="14" height="38" ></li>
</ul>
</div>
<div id="header" style=" position:absolute; width:800px; height:25px; padding:0em; top:46px; left:4px; border-style:solid; border-width:0px; ">
<font color="#8DA7C2" size="1">You are Here: <a href="city/<?php echo $city_rep; ?>"> <?php echo $first_city_cap; ?> </a> > <a href="business-dir/<?php echo $city_rep; ?>"> Business <?php echo $c; ?> Directory</a> > Searches for <?php echo $bname." in ".$first_city_cap; ?> </font>
</div>
<!--
<img src="../nav/nav-localhome-top.gif" alt="" />
<img src="../nav/nav-business-top.gif" alt="" />
<img src="../nav/nav_photos_top.gif" alt="" />
<img src="../nav/nav-youraccount-top.gif" alt="" />
<img src="../nav/nav-property-bot.gif" alt="" />
-->
</div>