<center><img src="img/ad1.jpg" border="1" alt="Ad Region 1"></center> <br /> <!-- -----------------Recent Ads Listing Start----------------- --> <div onload="recentFadeOut()"> <div class="thumbnail-header"> <span class="cat_header">Recent Ads</span> </div> <br> <h5>Currently unavailable</h5> <span id="recent1”> <?php if (isset($_COOKIE["fbcity"]) && isset($_COOKIE["fblocType"])) { $post = recentPost(“”, $_COOKIE["fblocType"], $_COOKIE["fbcity"]); } else { $post = recentPost(“”, ””, ””); } $counter = 1; while ($row = mysqli_fetch_array($post)) { ?> <div id="recent_<?php echo $counter; ?> "> <div class="media"> <a class="pull-left" href="product.php?pid=<?php echo $row['Post_id']; ?> " title="<?php echo $row['Post_title']; ?>
<center><a href="post.php?#ad_details" title="Sell your product now" ><img src="why_wizlyst.jpg" border="0" alt="Why Wizlyst?"></a></center> <br /> <!-- -----------------Recent Ads Listing Start----------------- --> <div onload="recentFadeOut()"> <div class="thumbnail-header"> <span class="cat_header">Recent Ads</span> </div> <br> <span id="recent1"> <?php if (isset($_COOKIE["fbcity"]) && isset($_COOKIE["fblocType"])) { $post = recentPost("", $_COOKIE["fblocType"], $_COOKIE["fbcity"]); } else { $post = recentPost("", "", ""); } $counter = 1; while ($row = mysqli_fetch_array($post)) { ?> <div id="recent_<?php echo $counter; ?> "> <div class="media"> <a class="pull-left" href="product.php?pid=<?php echo $row['Post_id']; ?> " title="<?php echo $row['Post_title']; ?>
<br /> <div class="row"> <div class="span8"> <div class="thumbnail-header"> <span class="cat_header">Recent Posts</span> <span class="pull-right cat_header"><a href="searchresult.php?l_type=recent&cat=<?php echo $cat; ?> ">More</a></span> </div> <table class="category_table" cellpadding="10" cellspacing="0"> <?php if (isset($_COOKIE["fbcity"]) && isset($_COOKIE["fblocType"])) { $post = recentPost($cat, $_COOKIE["fblocType"], $_COOKIE["fbcity"]); } else { $post = recentPost($cat, "", ""); } $rowcount = mysqli_num_rows($post); if ($rowcount == 0) { ?> <br /><center><img src='shopping.png' /><h4>Oops! No one is selling!</h4><strong>Try some other location</strong></center> <?php } $counter = 3; while ($row = mysqli_fetch_array($post)) { $title = substr($row['Post_title'], 0, 60); if (strlen($row['Post_title']) > 60) { $title = $title . "..."; } if ($counter == 3) { echo "<tr>";