} else { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], $_REQUEST['search_category']); ?> " class="img-responsive"> <a href="get<?php echo $_REQUEST['search_category']; ?> .php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top[$field]); ?> </h3> <p><?php echo substr($top['description'], 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } } ?> </div>
</div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `jobs` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top->id, 'jobs'); ?> " class="img-responsive"> <a href="getjobs.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['jobs_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div> </div><?php } ?> </div> </div>
$top_query = mysql_query("SELECT * FROM `coupons` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top->id, 'coupons'); ?> " class="img-responsive"> <a href="getcoupons.php?id=<?php echo $top['id']; ?> "> <h3><?php echo get_post_tile_string($top['coupon']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View </button> </a></div> </div><?php } ?> </div>
echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'deals'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->deals_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } ?> </div>
</div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `resumes` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top->id, 'resumes'); ?> " class="img-responsive"> <a href="getresumes.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['resumes_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div> </div><?php } ?> </div> </div>
<?php $imgdeal = $row->images; ?> <img src="img/<?php echo get_post_image($row->id, 'ads'); ?> " class="img-responsive"> <a href="getads.php?id=<?php echo $row->id; ?> "> <h3><?php echo get_post_tile_string($row->ads_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div> </div> <?php } ?>
echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'jobs'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->jobs_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } ?> </div>
echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'coupons'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->coupons_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } ?> </div>
</div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `deals` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], 'deals'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['deals_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div> </div><?php } ?> </div> </div>
</div> <div class="col-lg-12 getadscon" ><?php $top_query = mysql_query("SELECT * FROM `flyers` where payment_status = '1' ORDER BY id DESC LIMIT 3"); while ($top = mysql_fetch_array($top_query)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <img src="img/<?php echo get_post_image($top['id'], 'flyers'); ?> " class="img-responsive"> <a href="getflyers.php?id=<?php echo $top['id']; ?> "><h3><?php echo get_post_tile_string($top['flyers_title']); ?> </h3> <p><?php echo $top['description'] == '' ? '' : substr(htmlspecialchars($top['description']), 0, 20) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div> </div><?php } ?> </div> </div>
<?php if ($row->promote_coupons == 'high') { echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'coupons'); ?> " class="img-responsive"> <a href="getcoupons.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->coupon); ?> </h3> <p> <?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a></div> </div> <?php } ?>
echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'flyers'); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row->id; ?> "><h3><?php echo get_post_tile_string($row->flyers_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } ?> </div>
echo "<div class='high'>"; } else { echo "<div class='slider'>"; } ?> <img src="img/<?php echo get_post_image($row->id, 'resumes'); ?> " style="max-height: 100px;" height="100px"> <a href="getresumes.php?id=<?php echo $row->id; ?> "><h3 style="margin-left:20px;"><?php echo get_post_tile_string($row->resumes_title); ?> </h3> <p><?php echo substr($row->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } ?> </div>
<?php } $sel_Query8 = "SELECT * FROM `resumes` where promote_resumes3 = 'sidebar' and country='{$country_name}' and payment_status = '1' ORDER BY id desc LIMIT 1"; $query8 = mysql_query($sel_Query8); while ($slider6 = mysql_fetch_object($query8)) { ?> <li class="content2" style="margin-top:10px;"><img src="img/<?php echo get_post_image($slider6->id, 'resumes'); ?> " class="img-responsive"> <a href="getresumes.php?id=<?php echo $slider6->id; ?> "><h3><?php echo get_post_tile_string($slider6->resumes_title); ?> </h3> <p><?php echo substr($slider6->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button></a> </li> <?php } ?> </ul> </div> </div> </div>
function featured($key) { ?> <div class="col-md-12 col-lg-12" style=" margin-top:20px;"> <div class="sub1"> <h4>Featured <?php echo $key; ?> <a class="see_all" href="http://trademydeals.com/featured_<?php echo $key; ?> .php">See All</a></h4> </div> <div class="col-lg-12 " id="carousel_<?php echo $key; ?> "> <ul class="bxslider carousel_<?php echo $key; ?> "> <?php $promote = 'promote_' . $key . '2'; $title = $key . '_title'; $country_name = $_COOKIE['def_country'] == "United States" ? 'USA' : $_COOKIE['def_country']; $countries = array('Australia', 'Canada', 'USA', 'United Kingdom'); if (!in_array($country_name, $countries)) { $country_name = 'Canada'; } $sel_Query1 = "SELECT * FROM {$key} where {$promote} = 'home' and country = '{$country_name}' and payment_status = '1' ORDER BY RAND() limit 10"; $query1 = mysql_query($sel_Query1); while ($row11 = mysql_fetch_object($query1)) { ?> <div class="col-lg-4"> <div class="content2" style="margin-top:10px;"> <li> <img src="img/<?php echo get_post_image($row11->id, $key); ?> " class="img-responsive"> <a href="getdeals.php?id=<?php echo $row11->id; ?> "> <h3><?php echo get_post_tile_string($row11->{$title}); ?> </h3> <p><?php echo substr($row11->description, 0, 15) . '...'; ?> </p> <button type="button" class="btn btn-sm btn-danger pull-right btn5">View</button> </a> </div> </div> <?php } ?> </ul> </div> </div><?php }