$memberpoint = false; if (is_numeric($memberid)) { $memberpoint = get_memberpoint($memberid); } if ($memberpoint >= 0 && is_numeric($memberid)) { $point = $memberpoint; $varpoint = "<span class=\"detail_point\">" . $point . " Points</span>"; $vartbncheckout = "<a href=\"/redeem/checkout/\" class=\"detail_redeembtn\"><span>redeem now</span></a>"; } else { $varpoint = "<p class=\"logininfo\">You must <a class=\"forcelogin\" href=\"#\" ><strong>LOGIN</strong></a> first to redeem this <strong>ITEM</strong></p>"; } } else { $varpoint = "<p class=\"logininfo\">You must <a class=\"forcelogin\" href=\"#\" ><strong>LOGIN</strong></a> first to redeem this <strong>ITEM</strong></p>"; } //get thumb $thumb = get_redeem_thumbimg($idredeem); if ($thumb) { $thumbimg = $thumb; } else { $thumbimg = "/images/redeem/no-image.jpg"; } echo "\n\t\t\t\t\t<div class=\"redeem_pic\">\n\t\t\t\t\t\t<img src=\"" . $thumbimg . "\" width=\"310\" height=\"427\"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"redeem_detail\">\n\t\t\t\t\t\t<span class=\"pointtitle\">recent points</span>\n\t\t\t\t\t\t" . $varpoint . "\n\t\t\t\t\t\t<span class=\"detail_name\">" . $detail->product_name . "</span>\n\t\t\t\t\t\t<p class=\"detail_desc\">" . $detail->product_desc . "</p>\n\t\t\t\t\t\t<span class=\"detail_cost\">" . $detail->product_point . " Points</span>\n\t\t\t\t\t\t" . $vartbncheckout . "\n\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t\t"; } else { header("location:/redeem/#maincontent"); exit; } ?> </div> <!--end redeemcontent-->
<span>Redeem</span> </div> <!--END NAVPAGE--> <!--start redeemcontent--> <div id="redeemcontent"> <h3>Redeem your points!</h3> <span class="subtitle">You can redeem your points to get our special products*</span> <ul class="listredeem"> <?php $redeem = get_redeemlist(); if ($redeem) { foreach ($redeem as $row) { //get thumb $thumb = get_redeem_thumbimg($row->id); if ($thumb) { $thumbimg = $thumb; } else { $thumbimg = "/images/redeem/no-image.jpg"; } echo "\n\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t<img src=\"" . $thumbimg . "\" width=\"186\" height=\"258\"/>\n\t\t\t\t\t\t\t\t<span class=\"redeem_title\">" . $row->product_name . "</span>\n\t\t\t\t\t\t\t\t<span class=\"redeem_points\">" . $row->product_point . " Points</span>\n\t\t\t\t\t\t\t\t<a href=\"detail/?redeem_p=" . $row->id . "#maincontent\" class=\"redeembtn\"><span>redeem</span></a>\n\t\t\t\t\t\t\t</li>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t"; } } ?> </ul> <span class="extranote"><!--* Valid from 2 - 31 August 2015, while stock last.--></span> </div> <!--end redeemcontent-->