if (isset($_GET["redir"])) { $_SESSION["redir"] = $_GET["redir"]; header("Location: index.php"); exit; } $platinumImages = array(6); $db = new DatabaseConnection(); $result = $db->Query("SELECT platinum_membershipId,logo\n FROM platinum_membership\n WHERE platinum_membership_status='active'\n AND dt_expire>'" . date("Y-m-d") . "'\n ORDER BY RAND() LIMIT 6"); $rows = $db->Rows(); for ($i = 0; $i < $rows; $i++) { $qr = mysql_fetch_row($result); $platinumImages[$i] = $qr; } $imagePos = 0; for ($i = 0; $i < count($platinumImages); $i++) { updateImpressions("platinum_membership", $platinumImages[$i][0]); } $loginEmail = showLoggedInAs(); //default $button1 = "homebuttonIff_04"; $button2 = "homebuttonIff_05"; $button3 = "homebuttonIff_06"; $button4 = "homebuttonIff_07"; $button5 = "homebuttonIff_08"; $button6 = "homebuttonIff_09"; $button7 = "homebuttonIff_10"; $button8 = "homebuttonIff_11"; switch ($section) { case "1": $button1 = "homebuttOn_04"; break;
<?php require "common_all.php"; $type = (int) $_GET["type"]; $name = $_GET["name"]; $supplier = new Supplier(); $results = $supplier->GetList(array(array("supplier_category_id", "=", $type), array("supplier_status", "=", "active")), "dt_created"); shuffle($results); foreach ($results as $obj) { updateImpressions("supplier", $obj->supplierId); } $section = 7; require "top.php"; ?> <table width="459" border="0" cellspacing="0" cellpadding="0" > <tr> <td><img src="images/spacer.gif" alt="spacer" width="1" height="5" border="0" /></td> </tr> <tr> <td><div class="roundcont"> <div class="roundtop"> <img class="corner" src="images/bl_01.gif" alt="edge" style=" display: none;" /></div> <h1>Suppliers for <?php echo $_GET['name']; ?> </h1> <div class="roundbottom"> <img src="images/bl_06.gif" alt="edge" class="corner" style=" display: none;" /></div> </div></td> </tr> </table> <table id="table" cellspacing = "0" cellpadding = "0"> <?php
<?php require "common_all.php"; $member = new Gold_membership(); $results = $member->GetList(array(array("gold_membership_status", "=", "active"), array("dt_expire", ">", date("Y-m-d")))); shuffle($results); foreach ($results as $obj) { updateImpressions("gold_membership", $obj->gold_membershipId); } $section = 4; require "top.php"; ?> <link rel=stylesheet href="css/gold.css" type="text/css"> <table width="459" border="0" cellspacing="0" cellpadding="0" > <tr> <td><img src="images/spacer.gif" alt="spacer" width="1" height="5" border="0" /></td> </tr> <tr> <td><div class="roundcont"> <div class="roundtop"> <img class="corner" src="images/bl_01.gif" alt="edge" style=" display: none;" /></div> <h1>Gold Members - UK Franchises</h1> <div class="roundbottom"> <img src="images/bl_06.gif" alt="edge" class="corner" style=" display: none;" /></div> </div></td> </tr> </table> <p style ="margin-left:10px;">Click on the logo to visit the companies web site or on the archived link for more details.</p> <table id="table" cellspacing = "0" cellpadding = "0"> <?php $rowCount = 0; echo "<TR>"; foreach ($results as $obj) {