You are on page 1of 8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.

or
g/TR/html4/loose.dtd">
<html>
<head>
<title>AJUA's Listings</title>
<meta name="keywords" content="">
<meta name="description" content="Properties in AJUA">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Demo 8 - Thumbnail Preview</title>
<link href="menu_assets/styles.css" rel="stylesheet" type="text/css">
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
<title>Login</title>
<link rel="STYLESHEET" type="text/css" href="style/fg_membersite.css" />
<script type='text/javascript' src='scripts/gen_validatorv31.js'></script>
<style type="text/css">
body {
background-color:#FFFFFF;
font-family:calibri;
font-size:13px;
color:#000;
}
td div {
width: 520px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bb
{
border-bottom: solid 1px grey;
}
</style>
</head>
<body>
<div id="topWrapper">
<div id="topBanner"></div>
</div>
<div id='cssmenu'>
<ul>
<li class='active '><a href="login.php"><span>Home</span></a></li>
<li class='has-sub '><a href="listing.html"><span>Listing</span></a>
<ul>
<li><a href="buying.html"><span>Buying</span></a></li>
<li><a href="selling.html"><span>Selling</span></a></li>
<li><a href="renting.html"><span>Renting</span></a></li>
<li><a href="officecommerce.html"><span>Office/Commercial</span></a></l
i>
<li><a href="renovation.html"><span>Renovation</span></a></li>
<li><a href="relocation.html"><span>Relocation</span></a></li>
<li><a href="decoratinghome.html"><span>Decorating Home</span></a></li>
<li><a href="designConsultant.html"><span>Design Consultants</span></a>
</li>
</ul>
</li>
<li><a href="clients.html"><span>Clients</span></a></li>
<li><a href="about.html"><span>About Us</span></a></li>
<li><a href="contact.html"><span>Contact Us</span></a></li>
</ul>
</div>
<table border="0" align="right" style="margin:0px 140px 0px 0px">
<tr>
<td class="bb" align="center" bgcolor=#FFFF00 >Ajua's Adz</td>
</tr>
<tr>
<td class="bb" align="center"><a href='http://www.google.co.in/webhp?hl=en&t
ab=ww'><img src="ads1.jpg" width='150' border='0' class='imgborder' alt=''/></a>
</td>
</tr>
<tr>
<td class="bb" align="center" bgcolor=#FFFF00>Escalators</td>
</tr>
<tr>
<td class="bb" align="center"><a href='http://www.google.co.in/webhp?hl=en&t
ab=ww'><img src="ads2.jpg" width='150' border='0' class='imgborder' alt=''/></a>
</td>
</tr>
</table>
<div class="content" style="width:795px;margin:0px 60px 0px 144px;text-align:lef
t;">
<table style="width: 795px; table-layout: fixed; background-image:url(dot.jp
g)" border="0" align="center" cellpadding="10" cellspacing="0" >
<tr>
<td colspan="3" valign="top" class="listingcell">

<form id="form1" name="form1" method="post" action="listing.php">
<table width="450" border="0" align="center" cellpadding="0" style="ma
rgin:0 auto">
<tr>
<td colspan="7" align="center"><strong>Refine Your Search</strong>
</td>
</tr>
<tr>
<td width="9%">City</td>
<td width="8%" nowrap="nowrap">&nbsp;</td>
<td width="10%">Locality</td>
<td width="8%">&nbsp;</td>
<td width="10%">Min Price</td>
<td width="14%">&nbsp;</td>
<td width="41%">Property ID</td>
</tr>
<tr>
<td><select name="town" id="town">
<option value="all" selected>----all----</option>
<option value="Guwahati" >Guwahati</option>
<option value="Jorhat" >Jorhat</option>
<option value="Nalbari" >Nalbari</option>
<option value="Tezpur" >Tezpur</option>
<option value="Rangia" >Rangia</option>
<option value="Dibrugarh" >Dibrugarh</option>
</select> </td>
<td>&nbsp;</td>
<td><select name="water" id="water">
<option value="Chandmari" >Chandmari</option>
<option value="GS Road" >GS Road</option>
<option value="Panbazar" >Panbazar</option>
<option value="Ganeshguri" >Ganeshguri</option>
<option value="Jalukbari" >Jalukbari</option>
<option value="all" selected>----all----</option>
</select> </td>
<td>&nbsp;</td>
<td><select name="minprice" id="minprice">
<option value="min" selected>min</option>
<option value="200000.00">200,000</option>
<option value="400000.00">400,000</option>
<option value="600000.00">600,000</option>
<option value="800000.00">800,000</option>
<option value="1000000.00">1,000,000</option>
</select> </td>
<td>&nbsp;</td>
<td><input name="linkId" type="text" id="linkId" size="7" value=""
/></td>
</tr>
<tr>
<td style="padding-top:10px"><input type="hidden" name="cmd" id="s
earch" />
Property Type</td>
<td>&nbsp;</td>
<td style="padding-top:10px">Bedrooms</td>
<td>&nbsp;</td>
<td style="padding-top:10px">Max Price</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><select name="type" id="type">
<option value="all" selected>----all----</option>
<option value="Apartment" >Apartment</option>
<option value="PG/Rent" >PG/Rent</option>
<option value="Flat" >Flat</option>
<option value="Villa" >Villa</option>
<option value="Commercial" >Commercial</option>
</select></td>
<td>&nbsp;</td>
<td><select name="bedrooms" id="bedrooms">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>

</select></td>
<td>&nbsp;</td>
<td><select name="maxprice" id="maxprice">
<option value="400000.00">400,000</option>
<option value="600000.00">600,000</option>
<option value="800000.00">800,000</option>
<option value="1000000.00">1,000,000</option>
<option value="2000000.00">2,000,000</option>
<option value="3000000.00">3,000,000</option>
<option value="max" selected>max</option>
</select></td>
<td>&nbsp;</td>
<td><input type="Submit" name="Submit" value="Search Listings" s
tyle="font-family: calibre; font-size: 12px;" /></td>
</tr>
</table>
</form> </td>
</tr>
<tr>
<td class="bb" colspan="3" align="center" valign="top" class="listingcell"><s
trong>VIEW ALL OF AJUA's PROPERTY LISTINGS</strong><br />
<table width="100%" border="0" align="center" cellpadding="0" style="font-siz
e:10px">
<tr>
<td width="75" nowrap="nowrap" style="font-size:10px"> </td>
<td width="307" align="center" nowrap="nowrap" style="font-size:10px">
<p>1&nbsp;&nbsp; <a href="http://www.google.co.in/webhp?hl=en&tab=ww"><u>2
</u></a>&nbsp;&nbsp; <a href="http://www.google.co.in/webhp?hl=en&tab=ww"><u>3</
u></a>&nbsp;&nbsp; <a href="http://www.google.co.in/webhp?hl=en&tab=ww"><u>4</u>
</a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Records
etlistings=4"><u>5</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sa
le.php?pageNum_Recordsetlistings=5"><u>6</u></a>&nbsp;&nbsp; <a href="marthas-vi
neyard-property-for-sale.php?pageNum_Recordsetlistings=6"><u>7</u></a>&nbsp;&nbs
p; <a href="marthas-vineyard-property-for-sale.php?pageNum_Recordsetlistings=7">
<u>8</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum
_Recordsetlistings=8"><u>9</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-propert
y-for-sale.php?pageNum_Recordsetlistings=9"><u>10</u></a>&nbsp;&nbsp; <a href="m
arthas-vineyard-property-for-sale.php?pageNum_Recordsetlistings=10"><u>11</u></a
>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Recordsetl
istings=11"><u>12</u></a>&nbsp;&nbsp; <a href="http://www.google.co.in/webhp?hl=
en&tab=ww"><u>13</u></a>&nbsp;&nbsp; <a href="http://www.google.co.in/webhp?hl=e
n&tab=ww"><u>14</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.
php?pageNum_Recordsetlistings=14"><u>15</u></a>&nbsp;&nbsp; <a href="marthas-vin
eyard-property-for-sale.php?pageNum_Recordsetlistings=15"><u>16</u></a>&nbsp;&nb
sp;</p></td>
<td width="76" style="font-size:10px"> <a href="/marthas-vineyard-p
roperty-for-sale.php?pageNum_Recordsetlistings=1&totalRows_Recordsetlistings=782
"></a>
</td>
</tr>
</table></td></tr>


<?php
// Connecting, selecting database
$link = mysql_connect('localhost', 'root', '')
or die('Could not connect: ' . mysql_error());
mysql_select_db('real_estate') or die('Could not select database');
// Performing SQL query
if (!isset($_POST['Submit'])) {
$query = "SELECT * FROM listing";
}
else {
$location = empty($_POST['water'])? : mysql_escape_string($_POST['water']);
if ($location == 'all') {
$query = "SELECT * FROM listing";
}
else {
$query = "SELECT * FROM listing where location = '$location'";
}
}
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
// Printing results in HTML
while($row = mysql_fetch_array($result)){
$picture = $row['picture'];
$name = $row['name'];
$location = $row['location'];
$type = $row['type'];
$area = $row['area'];
$avail = $row['avail'];
$price = $row['price'];
$description = $row['description'];

$str =
"<tr bgcolor='#F5F5F5' >
<td class='bb' width='250' rowspan='2' valign='top' class='listingcell'>
<a href='http://www.google.co.in/webhp?hl=en&tab=ww'><img src=$picture width='25
0' border='0' class='imgborder' alt=''/></a></td>
<td width='200' valign='top' class='listingcell' style='max-heig
ht:60px'><strong>$name </strong><br /><br /><strong> Location:</strong> $locatio
n<br />
<strong>Type:</strong> $type<br /><strong>Area:</strong> $area s
q ft<br /><strong>Availability:</strong> $avail<br /><strong> Price:</strong>$pr
ice<br />
</td>
<td width='100' valign='top' class='listingcell' style='max-heig
ht:60px'><p><a href='http://www.google.co.in/webhp?hl=en&tab=ww' class='detailli
nk' style='margin-bottom:20px'>View Property Details</a></p>
<p><a href='http://www.google.co.in/webhp?hl=en&tab=ww'>Contacts</a></p>
<p><a href='http://www.google.co.in/webhp?hl=en&tab=ww'>Map</a></p>
</td>
</tr>
<tr bgcolor='#F5F5F5'>
<td colspan='2' valign='top' style='padding:10px' class='bb'>
<div>$description
</div>
</tr>";

echo $str;
}
mysql_free_result($result);
mysql_close($link);
?>
</table>
<table width="100%" border="0" align="center" cellpadding="10" style="font-size:
10px">
<tr>
<td width="75" nowrap="nowrap" style="font-size:10px"> </td>
<td width="307" align="center" nowrap="nowrap" style="font-size:10px">0 - 20
of 500 Listings
<p>
1&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Re
cordsetlistings=1"><u>2</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-f
or-sale.php?pageNum_Recordsetlistings=2"><u>3</u></a>&nbsp;&nbsp; <a href="marth
as-vineyard-property-for-sale.php?pageNum_Recordsetlistings=3"><u>4</u></a>&nbsp
;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Recordsetlisting
s=4"><u>5</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pa
geNum_Recordsetlistings=5"><u>6</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-pr
operty-for-sale.php?pageNum_Recordsetlistings=6"><u>7</u></a>&nbsp;&nbsp; <a hre
f="marthas-vineyard-property-for-sale.php?pageNum_Recordsetlistings=7"><u>8</u><
/a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Recordse
tlistings=8"><u>9</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sal
e.php?pageNum_Recordsetlistings=9"><u>10</u></a>&nbsp;&nbsp; <a href="marthas-vi
neyard-property-for-sale.php?pageNum_Recordsetlistings=10"><u>11</u></a>&nbsp;&n
bsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Recordsetlistings=1
1"><u>12</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pag
eNum_Recordsetlistings=12"><u>13</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-p
roperty-for-sale.php?pageNum_Recordsetlistings=13"><u>14</u></a>&nbsp;&nbsp; <a
href="marthas-vineyard-property-for-sale.php?pageNum_Recordsetlistings=14"><u>15
</u></a>&nbsp;&nbsp; <a href="marthas-vineyard-property-for-sale.php?pageNum_Rec
ordsetlistings=15"><u>16</u></a>&nbsp;&nbsp; </p></td>
<td width="76" style="font-size:10px"> <a href="/marthas-vineyard-pro
perty-for-sale.php?pageNum_Recordsetlistings=1&totalRows_Recordsetlistings=782">

</a>
</td>
</tr>
</table>
</div>
<div style="clear:both"> </div>
</div>
<div style="clear:both"> </div>
</div>
<div style="clear:both"> </div>
</div>
<div style="clear:both"> </div>
</div>
<div id='horizontalbar'></div>
<div id="bottomWrapper">
<div id="footer">
<div class="footer-one-third">
<h5>Our Services</h5>
<ul>
<li>
<a href="#" shape="rect">Selling</a>
</li>
<li>
<a href="#" shape="rect">Buying</a>
</li>
<li>
<a href="#" shape="rect">Renting</a>
</li>
<li>
<a href="#" shape="rect">Others</a>
</li>
<li>
<a href="#" shape="rect">Consultants</a>
</li>
</ul>
</div>
<div class="footer-one-third">
<h5>Popular Links</h5>
<ul>
<li>
<a href="#" shape="rect">Latest News</a>
</li>
<li>
<a href="#" shape="rect">Social Responsibility</a>
</li>
<li>
<a href="#" shape="rect">About Us</a>
</li>
<li>
<a href="#" shape="rect">Contact Us</a>
</li>
<li>
<a href="#" shape="rect">Careers</a>
</li>
</ul>
</div>
<div class="footer-one-third footer-last">
<h5>Social Network</h5>
<ul>
<li>
<a href="#" shape="rect">Facebook</a>
</li>
<li>
<a href="#" shape="rect">Twitter</a>
</li>
<li>
<a href="#" shape="rect">RSS</a>
</li>
<li>
<a href="#" shape="rect">Google +</a>
</li>
<li>
<a href="#" shape="rect">LinkedIn</a>
</li>
</ul>
</div>
</div>
<div id="bottom-links">
<div style="padding-top:15px">

&copy; <a href="login.php" shape="rect">AJUA</a> Technologies Pvt Ltd &reg; 2012
-2013.
</div>
</div>
</div>
</div>
</body>
</html>