ERROR: Domain not supplied, please contact Hitwise customer support at: '.$supportEmail.'' ); if( !isset( $iDate ) ) exit( 'ERROR: Date not supplied, please contact Hitwise customer support at: '.$supportEmail.'' ); if ( !validate_date( $iDate ) ) exit( 'ERROR: Date supplied is not valid, please contact Hitwise customer support at: '.$supportEmail.'' ); if( !isset( $iCatnum ) ) exit( 'ERROR: Industry not supplied, please contact Hitwise customer support at: '.$supportEmail.'' ); if ( !isset( $Cal ) ) $Cal = 0; $aQuarters = array ( "January - March", "April - June", "July - September", "October - December" ); // Quarter names $aSeminAnnuals = array ( "January - June", "July - December" ); // Half yearly names $iYear = substr( $iDate, 0, 4 ); // Extract the year $iQuarter = substr( $iDate, 5, 1 ); // Extract the Quarter if( isset($semi) && ( $semi == 1 || $semi == 2 ) ) { $iSemiAnnual = $semi; } else { $iSemiAnnual = 0; } // If no quarter was passed it's an annual award ... // otherwise set the quarter as normal if ($iQuarter <= 0 && $iSemiAnnual == 0) { $sQuarter = $iDate; // Defines the Quarter name } else if ( $iSemiAnnual > 0 ){ $sQuarter = $aSeminAnnuals[ $iSemiAnnual - 1 ]; // Defines the Half yearly name } else { $sQuarter = $aQuarters[ $iQuarter - 1 ]; // Defines the Quarter name } $pResult = pg_query( $pDBConnection, "select realname,domain,displayurl from websitedata where domain like '$sDomain' or displayurl like '$sDomain'" ); $urls = pg_fetch_assoc($pResult); $originaldomain = $sDomain; if(!empty($urls['displayurl']) && (strcmp($urls['displayurl'],$sDomain) != 0) && ($iYear > 2006)) { $sDomain = $urls['displayurl']; } elseif((!empty($urls['domain'])) && (strcmp($urls['domain'],$sDomain) != 0) && ($iYear > 2006)) { $originaldomain = $urls['domain']; } if(!empty($urls['realname'])) { $realName = $urls['realname']; } else { exit( 'ERROR: Domain supplied invalid, please contact Hitwise customer support at: '.$supportEmail.'' ); } $pResult = pg_query( $pDBConnection, "select name from categorynames where id = $iCatnum" ); $cat = pg_fetch_assoc($pResult); if(!empty($cat['name'])) { $catName = $cat['name']; } else { exit( 'ERROR: Category supplied invalid, please contact Hitwise customer support at: '.$supportEmail.'' ); } if ($iQuarter <= 0 && $iSemiAnnual == 0) { if ($Cal == "1" && $iYear >= 2004) { $rankTableName = "rank_{$iYear}_annual_cal"; // due to the changeover from financial to calendar // annual reporting periods, this is a fudge! } else { $rankTableName = "rank_{$iYear}_annual_cal"; } $rankTableDate = $iYear; $query = "select * from pg_tables where tablename = '$rankTableName' and schemaname = '$countryId'"; $tableCheckResult = pg_exec( $pDBConnection, $query ); $tableCheck = pg_numrows( $tableCheckResult ); if ( $tableCheck == 1 ) { //NOTE: need to verify against both domain name and display url in case there have been categorisation changes $sQuery = "SELECT r.catnum AS cat, r.ranksess AS rank FROM $rankTableName AS r, id_domain AS id, websitedata AS w WHERE r.date = '$rankTableDate' AND r.catnum = $iCatnum and r.ranksess <= 10 and r.area = 1 AND id.id = r.domainid AND ((w.domain = id.domain AND w.domain = '".$originaldomain."') OR (w.displayurl = id.domain AND w.displayurl = '".$sDomain."')) ORDER BY r.ranksess ASC"; } else { exit( 'ERROR: No data returned for the date supplied, please contact Hitwise customer support at: '.$supportEmail.'' ); } } else if ( $iSemiAnnual > 0 ) { //NOTE: need to verify against both domain name and display url in case there have been categorisation changes $sQuery = "SELECT cat, rank FROM semiannual_list WHERE (domain='".$sDomain."' OR domain='".$originaldomain."') and date=$iDate and cat=$iCatnum" ; } else { //NOTE: need to verify against both domain name and display url in case there have been categorisation changes $sQuery = "SELECT cat, rank FROM quarterly_list WHERE (domain='".$sDomain."' OR domain='".$originaldomain."') and date=$iDate and cat=$iCatnum" ; } $pResult = pg_exec( $pDBConnection, $sQuery ); $iRows = pg_numrows( $pResult ); if( $iRows ) { $aData = pg_fetch_array( $pResult, 0, PGSQL_ASSOC ); } else { exit( 'ERROR: Domain supplied invalid, please contact Hitwise customer support at: '.$supportEmail.'' ); } $aQuarters2 = array ( "jan_mar", "apr_jun", "jul_sep", "oct_dec" ); // Quarter names $aSeminAnnuals2 = array ( "jan_jun", "jul_dec" ); // Half yearly names // If no quarter was passed it's an annual award ... // otherwise set the quarter as normal if ($iQuarter <= 0 && $iSemiAnnual == 0) { if ($Cal == "1") { $sQuarter2 = "annual_cal"; // Defines the Quarter name } else { $sQuarter2 = "annual"; // Defines the Quarter name } } else if ( $iSemiAnnual > 0 ) { $sQuarter2 = $aSeminAnnuals2[ $iSemiAnnual - 1 ]; // Defines the Half yearly name } else { $sQuarter2 = $aQuarters2[ $iQuarter - 1 ]; // Defines the Quarter name } if( $exactcountryalt == "United Kingdom" ) { $exactcountryalt = "UK"; } if( isset( $aData['rank'] ) && $aData['rank'] == 1 && $sQuarter2 != 'annual' ) { $iType = 1; } else { $iType = 10; } ?> Hitwise
-
0 ) { ?>

Twice a year, Hitwise awards the 10 most popular websites across some of our 160+ categories.

= 2007) && ($iDate < 9999) && ($exactcountry == "United Kingdom") ) { ?>

The Hitwise UK Online Performance Awards celebrates the most successful UK websites in more than 50 key selected industries, based on the market share of visits a website has received throughout .

= 2006) && ($iDate < 9999) && ($exactcountry == "United Kingdom") ) { ?>

The Hitwise UK Online Performance Awards celebrates the most successful UK websites in 50 key selected industries, based on the market share of visits a website has received throughout 2006.

Each quarter, Hitwise, the world's leading online competitive intelligence service recognizes the Top Ten websites across each industry we monitor, with a Top Ten award!

= 200603) ? 'white' : '07'); } else { // it's a calendar year (annual award) echo (($iDate >= 2006) ? 'white' : '07'); } ?>.gif" width="100" height="100" alt="" border="0" align="right">

= 2007) && ($iDate < 9999) && ($exactcountry == "United Kingdom") ){ ?> In , ranked # based on market share of visits among all UK websites in the Hitwise industry as visited by Internet users.

= 2006) && ($iDate < 9999) && ($exactcountry == "United Kingdom") ) { ?> In , ranked # by visits among all United Kingdom websites in the Hitwise '' category. This ranking relates to based users visiting websites.

From January to December July to June , , was ranked # in the Hitwise '' industry .

This ranking relates to based users visiting websites.

To register your business to be eligible for the Hitwise Top Ten Award program, click here.

To learn more about how Hitwise Competitive Intelligence can help you plan and report on search marketing and online affiliate campaigns, click here.

To receive the Hitwise Competitive Intelligence monthly newsletter, featuring the latest online news and trends, click here.

Close this window
setURL($GAOverrideURL); } echo $analytics->render(); ?> = 13 ) return false; } return true; } /** * Switches the text depending on the date and text type */ function text_switcher($date){ $content = ""; $length = strlen( $date ); $year = (int) substr( $date, 0, 4 ); $origional_content = "based on number of visits"; $new_content = "based on monthly average market share"; if ( $length == 6 ) { $quater = (int) substr( $date, 4, 6 ); if( ($year > 2007 ) ) { $content .= $new_content; } else{ $content .= $origional_content; } } else { if($year == 2007){ $content .= $new_content; } else { $content .= $origional_content; } } return $content; } ?>