diff --git a/Repositories/statistics/includes/inc.fns.cumulative_usage_country.es.php b/Repositories/statistics/includes/inc.fns.cumulative_usage_country.es.php index e876079..617170c 100755 --- a/Repositories/statistics/includes/inc.fns.cumulative_usage_country.es.php +++ b/Repositories/statistics/includes/inc.fns.cumulative_usage_country.es.php @@ -76,6 +76,13 @@ $total_abstracts = 0; $abstract_countries = array(); $download_countries = array(); + /* NJS 2007-02-07 + Keep an independent count of the row number so that we can + highlight them properly. We can't just use the loop counter + $rs below because we skip certain rows according to which + mode we're in, so $rs will appear to skip unpredictably. + */ + $row = 0; for ( $rs = 0; $rs < count( $GLOBALS["db_values"] ); $rs++ ) { @@ -108,7 +115,7 @@ if ($GLOBALS["db_values"][$rs]["country_name"]=='N/A') { $GLOBALS["db_values"][$rs]["country_name"]='unknown'; } // NJS 2005-12-15: subtly highlight every alternate row print ''; // select a flag