Search Results

assign('lang', $lang); $R70936771F26FE59707D3C4143FB7835E = array("postcode", "town", "state", "lat", "lng","start", "location"); cleanRequestVars($R70936771F26FE59707D3C4143FB7835E); if(($_REQUEST['lat'] == "") || ($_REQUEST['lng'] == "")){ @header('Location:store_locator.php'); die(""); } $R3AB29FE76F1D0CE315C2230369CCE966->assign('styleHref', 'skins/'.$R36FA884870866B1F7CD9448941E1AFC0['skin'].'/style.css'); $R3AB29FE76F1D0CE315C2230369CCE966->assign('formAction', 'store_locator_results.php'); $R3AB29FE76F1D0CE315C2230369CCE966->assign('formMethod', 'post'); $R3AB29FE76F1D0CE315C2230369CCE966->assign('skinLoc','skins/'.$R36FA884870866B1F7CD9448941E1AFC0['skin']); $R7B27345D6CB7CCB27E5C6DD3D6F7851C = @explode("@", $R36FA884870866B1F7CD9448941E1AFC0['contactEmail']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('siteEmail',sprintf("", $R7B27345D6CB7CCB27E5C6DD3D6F7851C[0], $R7B27345D6CB7CCB27E5C6DD3D6F7851C[1])); $R3AB29FE76F1D0CE315C2230369CCE966->assign('sitePhone',$R36FA884870866B1F7CD9448941E1AFC0['contactPhone']); $R6C235F616A1F95B9F6F9CA8F672D02AA = " "; $R3AB29FE76F1D0CE315C2230369CCE966->assign('headScript', $R6C235F616A1F95B9F6F9CA8F672D02AA); if( isset($_REQUEST['countryIso']) && $_REQUEST['countryIso'] != ""){ $R922DFC19DDA7D0C2F17E5DDB49655505 = $_REQUEST['countryIso']; }else{ $R922DFC19DDA7D0C2F17E5DDB49655505 = $R36FA884870866B1F7CD9448941E1AFC0['countryIso']; } $R3AB29FE76F1D0CE315C2230369CCE966->assign('countryIso', $R922DFC19DDA7D0C2F17E5DDB49655505); $R3AB29FE76F1D0CE315C2230369CCE966->assign('postcode', $_REQUEST['postcode']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('location_field', $_REQUEST['location']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('town', $_REQUEST['town']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('state', $_REQUEST['state']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('pageTitle', $R36FA884870866B1F7CD9448941E1AFC0['pageTitle']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('metaKeywords', $R36FA884870866B1F7CD9448941E1AFC0['metaKeywords']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('metaDescription', $R36FA884870866B1F7CD9448941E1AFC0['metaDescription']); $R130D64A4AD653C91E0FD80DE8FEADC3A = "select * from countries where iso is not null and iso != '' order by name asc"; $R679E9B9234E2062F809DBD3325D37FB6 = $mysql->exSql($R130D64A4AD653C91E0FD80DE8FEADC3A) or die($mysql->debugPrint()); while($R4EEB713E57BBAAF1217CF39632604473 = mysql_fetch_assoc($R679E9B9234E2062F809DBD3325D37FB6)){ if($R4EEB713E57BBAAF1217CF39632604473['iso'] == $R922DFC19DDA7D0C2F17E5DDB49655505){ $R4EEB713E57BBAAF1217CF39632604473['selected'] = "selected"; } $R3AB29FE76F1D0CE315C2230369CCE966->assign('country', $R4EEB713E57BBAAF1217CF39632604473); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.countryisooption1'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.countryisooption2'); } $R6C235F616A1F95B9F6F9CA8F672D02AA = " "; $R3AB29FE76F1D0CE315C2230369CCE966->assign('pageScript', $R6C235F616A1F95B9F6F9CA8F672D02AA); $R5B17F8708B4B51A34C2A79BEC2C4579B = mysqlSafe($mysql->conn, $_REQUEST['lat']); $RB94AD67383F9914F56B802F6E819E251 = mysqlSafe($mysql->conn, $_REQUEST['lng']); $R130D64A4AD653C91E0FD80DE8FEADC3A = '(SIN(RADIANS('.$R5B17F8708B4B51A34C2A79BEC2C4579B.')) * SIN(RADIANS(`latitude`)) + COS(RADIANS('.$R5B17F8708B4B51A34C2A79BEC2C4579B.')) * COS(RADIANS(`latitude`)) * COS(RADIANS((('.$RB94AD67383F9914F56B802F6E819E251.') - (`longitude`)))))'; $R130D64A4AD653C91E0FD80DE8FEADC3A = 'ACOS'.$R130D64A4AD653C91E0FD80DE8FEADC3A; $R130D64A4AD653C91E0FD80DE8FEADC3A = 'DEGREES('.$R130D64A4AD653C91E0FD80DE8FEADC3A.')'; $R130D64A4AD653C91E0FD80DE8FEADC3A = '('.$R130D64A4AD653C91E0FD80DE8FEADC3A.' * 69 )'; if($R36FA884870866B1F7CD9448941E1AFC0['distanceType'] == "KM"){ $R130D64A4AD653C91E0FD80DE8FEADC3A = '('.$R130D64A4AD653C91E0FD80DE8FEADC3A.' * 1.61 )'; } $RA817A163C21E4B6838C58FB185E7B086 = $R130D64A4AD653C91E0FD80DE8FEADC3A; $R371B349B5AA9E6FD4A7121DB8E8960F3 = $R130D64A4AD653C91E0FD80DE8FEADC3A . ' as `'.$R36FA884870866B1F7CD9448941E1AFC0['distanceType'].'` '; $R130D64A4AD653C91E0FD80DE8FEADC3A = sprintf("select *, %s from `stores` where %s <= %s order by %s asc", $R371B349B5AA9E6FD4A7121DB8E8960F3, $RA817A163C21E4B6838C58FB185E7B086, $R36FA884870866B1F7CD9448941E1AFC0['withInDistance'], $R36FA884870866B1F7CD9448941E1AFC0['distanceType']); $R679E9B9234E2062F809DBD3325D37FB6 = $mysql->exSql($R130D64A4AD653C91E0FD80DE8FEADC3A) or die($mysql->debugPrint()); $R2747F94474A278CAB1799FA45EA2EBF9 = mysql_num_rows($R679E9B9234E2062F809DBD3325D37FB6); $RB59C48E76241041B5FF133D2F0D53FF3 = 10; $R0B16C2BE280907213648B3242483ABB9 = intval($_REQUEST['start']); if($R0B16C2BE280907213648B3242483ABB9>0) $R0B16C2BE280907213648B3242483ABB9--; $R130D64A4AD653C91E0FD80DE8FEADC3A .= " limit $R0B16C2BE280907213648B3242483ABB9, $RB59C48E76241041B5FF133D2F0D53FF3 "; $R0B16C2BE280907213648B3242483ABB9++; $R679E9B9234E2062F809DBD3325D37FB6 = $mysql->exSql($R130D64A4AD653C91E0FD80DE8FEADC3A) or die($mysql->debugPrint()); $RBEFEE89E0A1B65DEA81FF34A6E78561E = mysql_num_rows($R679E9B9234E2062F809DBD3325D37FB6); $RFD68A31EC15F2AC4B23D97AD9AF04E2D = @ceil($R2747F94474A278CAB1799FA45EA2EBF9/$RB59C48E76241041B5FF133D2F0D53FF3); $R79640569DC6347D746435D09071156C2 = ceil($RFD68A31EC15F2AC4B23D97AD9AF04E2D-($R2747F94474A278CAB1799FA45EA2EBF9-$R0B16C2BE280907213648B3242483ABB9)/$RB59C48E76241041B5FF133D2F0D53FF3); if($R79640569DC6347D746435D09071156C2==0) $R79640569DC6347D746435D09071156C2++; if($_REQUEST['postcode'] != ""){ $RAE94F1F0304E14D2AFEE5B99285CBB58 = $_REQUEST['postcode'] . ", " . $_REQUEST['countryIso']; }else{ $RAE94F1F0304E14D2AFEE5B99285CBB58 = $_REQUEST['location'] . ", " . $_REQUEST['countryIso']; } $RAE94F1F0304E14D2AFEE5B99285CBB58 = ucwords($RAE94F1F0304E14D2AFEE5B99285CBB58); $R3AB29FE76F1D0CE315C2230369CCE966->assign('location', $RAE94F1F0304E14D2AFEE5B99285CBB58); if($R2747F94474A278CAB1799FA45EA2EBF9==0){ $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.errornotice'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main'); $R3AB29FE76F1D0CE315C2230369CCE966->out('main'); exit(); } $R3AB29FE76F1D0CE315C2230369CCE966->assign('currentPage', $R79640569DC6347D746435D09071156C2); $R3AB29FE76F1D0CE315C2230369CCE966->assign('totalPages', $RFD68A31EC15F2AC4B23D97AD9AF04E2D); $R3AB29FE76F1D0CE315C2230369CCE966->assign('totalRows', $R2747F94474A278CAB1799FA45EA2EBF9); $R3AB29FE76F1D0CE315C2230369CCE966->assign('pageTotalRows', $RBEFEE89E0A1B65DEA81FF34A6E78561E); if($RFD68A31EC15F2AC4B23D97AD9AF04E2D>1){ $R174EF860F044C1F6DC10751CB32F28B5 = $R79640569DC6347D746435D09071156C2+1; $R10AC6265BFF9D4B59F50D27435497078 = array( 'page' => $R174EF860F044C1F6DC10751CB32F28B5, 'start' => ($R79640569DC6347D746435D09071156C2*$RB59C48E76241041B5FF133D2F0D53FF3), 'postcode' => $_REQUEST['postcode'], 'lat' => $_REQUEST['lat'], 'lng' => $_REQUEST['lng'], 'location' => $_REQUEST['location'], 'countryIso' => $_REQUEST['countryIso']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('pdata', $R10AC6265BFF9D4B59F50D27435497078); if($R174EF860F044C1F6DC10751CB32F28B5 <= $RFD68A31EC15F2AC4B23D97AD9AF04E2D){ $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.paging.nextpage'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.paging2.nextpage'); } } if($R79640569DC6347D746435D09071156C2>1){ $RF586086353207BD5BB834F64600A0800 = $R79640569DC6347D746435D09071156C2-1; $R10AC6265BFF9D4B59F50D27435497078 = array( 'page' => $RF586086353207BD5BB834F64600A0800, 'start' => (($RF586086353207BD5BB834F64600A0800-1)*$RB59C48E76241041B5FF133D2F0D53FF3), 'postcode' => $_REQUEST['postcode'], 'lat' => $_REQUEST['lat'], 'lng' => $_REQUEST['lng'], 'location' => $_REQUEST['location'], 'countryIso' => $_REQUEST['countryIso']); $R3AB29FE76F1D0CE315C2230369CCE966->assign('pdata', $R10AC6265BFF9D4B59F50D27435497078); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.paging.lastpage'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.paging2.lastpage'); } $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.paging'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.paging2'); $RF37730C4F2FF198FC6D086E3CBC2A74A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $RA1D44C0654A40984A103C270FFB9BF33 = 0; while($R4EEB713E57BBAAF1217CF39632604473 = mysql_fetch_assoc($R679E9B9234E2062F809DBD3325D37FB6)){ $R4EEB713E57BBAAF1217CF39632604473['iconSrc'] = 'sladmin/images/icons/gmap/marker'.$RF37730C4F2FF198FC6D086E3CBC2A74A{$RA1D44C0654A40984A103C270FFB9BF33}.'.png'; $R4EEB713E57BBAAF1217CF39632604473['onclick1'] = sprintf("showInfo(%s, '%s');", $RA1D44C0654A40984A103C270FFB9BF33, 'hiddenDiv'.$RA1D44C0654A40984A103C270FFB9BF33); $R4EEB713E57BBAAF1217CF39632604473['onclick2'] = sprintf("showMiniMap(%s);", $RA1D44C0654A40984A103C270FFB9BF33); $R4EEB713E57BBAAF1217CF39632604473['hiddenDivId'] = 'hiddenDiv'.$RA1D44C0654A40984A103C270FFB9BF33; $R4EEB713E57BBAAF1217CF39632604473['itemDivId'] = 'itemDiv'.$RA1D44C0654A40984A103C270FFB9BF33; $R4EEB713E57BBAAF1217CF39632604473['distance'] = sprintf("%01.2f %s", $R4EEB713E57BBAAF1217CF39632604473[$R36FA884870866B1F7CD9448941E1AFC0['distanceType']], $R36FA884870866B1F7CD9448941E1AFC0['distanceType']); $RCFE7158CB0A88EB6D4C6C7DC9FD9BAE5[] = $R4EEB713E57BBAAF1217CF39632604473; $R3AB29FE76F1D0CE315C2230369CCE966->assign('data', $RCFE7158CB0A88EB6D4C6C7DC9FD9BAE5[(sizeof($RCFE7158CB0A88EB6D4C6C7DC9FD9BAE5)-1)]); if($R4EEB713E57BBAAF1217CF39632604473['website'] != "" && $R4EEB713E57BBAAF1217CF39632604473['displayWebsite'] == '1'){ $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay1.websiteHTML'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay2.websiteHTML'); } if($R4EEB713E57BBAAF1217CF39632604473['displayWeeklyAd'] == '1'){ $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay1.weeklyAdHTML'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay2.weeklyAdHTML'); } if($RA1D44C0654A40984A103C270FFB9BF33%2 == "1"){ $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay2.altrow'); } $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay1'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults.resultsdisplay2'); $RA1D44C0654A40984A103C270FFB9BF33++; } $RE165715345B3386CCA88E55C914789F8 = "load(".$RCFE7158CB0A88EB6D4C6C7DC9FD9BAE5[0]['latitude'].", ".$RCFE7158CB0A88EB6D4C6C7DC9FD9BAE5[0]['longitude'].", 12); F8235CFDF2C542396607FFBECDA677740(); showInfo(0, 'hiddenDiv0');"; $R3AB29FE76F1D0CE315C2230369CCE966->assign('bodyonload', $RE165715345B3386CCA88E55C914789F8); $R6C235F616A1F95B9F6F9CA8F672D02AA = ""; $R3AB29FE76F1D0CE315C2230369CCE966->assign('googleMapScript', $R6C235F616A1F95B9F6F9CA8F672D02AA); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main.searchresults'); $R3AB29FE76F1D0CE315C2230369CCE966->parse('main'); $R3AB29FE76F1D0CE315C2230369CCE966->out('main'); ?>