diff --git a/Repositories/statistics/includes/inc.html.cumulative_usage.es.php b/Repositories/statistics/includes/inc.html.cumulative_usage.es.php index 99dc661..5d25691 100755 --- a/Repositories/statistics/includes/inc.html.cumulative_usage.es.php +++ b/Repositories/statistics/includes/inc.html.cumulative_usage.es.php @@ -1,61 +1,69 @@

Abstract views and document downloads by year/month

\n"; - print 'Click on a month to see document downloads for that month.
- The numbers in (parentheses) are the number of distinct countries that views/downloads originated from.
'; - print 'Period - Abstracts - Downloads -  '; - for ($rs=0;$rs' . - $GLOBALS["db_values"][$rs]["year"]. - ' '. - $GLOBALS["db_values"][$rs]["month"]. - ''. - $GLOBALS["db_values"][$rs]["abstracts"]. - '('. - $GLOBALS["db_values"][$rs]["acountries"]. - ')'. - $GLOBALS["db_values"][$rs]["downloads"]. - '('. - $GLOBALS["db_values"][$rs]["dcountries"]. - ')'; - $cur_count = $GLOBALS["db_values"][$rs]["abstracts"]; - $col_width = (int) ($cur_count/$max_count * $max_width); - $col_width = max($col_width, 1); - $col_width .= "px"; - print 'abstracts
'; - $cur_count = $GLOBALS["db_values"][$rs]["downloads"]; - $col_width = (int) ($cur_count/$max_count * $max_width); - $col_width = max($col_width, 1); - $col_width .= "px"; -print 'downloads'; - } + // NJS 2006-04-24 + // Add if to check whether there actually are any stats! + if (! isset($GLOBALS["db_values"]["0"]["abstracts"])) { + print "\n"; + print ''; + print "\n"; + } else { + $max_count = $GLOBALS["db_values"][0]["abstracts"]; + for ($rs=0;$rs\n"; + print ''; + print ' + + + '; + for ($rs=0;$rs'; + $cur_count = $GLOBALS["db_values"][$rs]["abstracts"]; + $col_width = (int) ($cur_count/$max_count * $max_width); + $col_width = max($col_width, 1); + $col_width .= "px"; + print ''; + } + } // of else print "
No statistics available.
Click on a month to see document downloads for that month.
+ The numbers in (parentheses) are the number of distinct countries that views/downloads originated from.
PeriodAbstractsDownloads 
' . + $GLOBALS["db_values"][$rs]["year"]. + ' '. + $GLOBALS["db_values"][$rs]["month"]. + ''. + $GLOBALS["db_values"][$rs]["abstracts"]. + '('. + $GLOBALS["db_values"][$rs]["acountries"]. + ')'. + $GLOBALS["db_values"][$rs]["downloads"]. + '('. + $GLOBALS["db_values"][$rs]["dcountries"]. + ')abstracts
'; + $cur_count = $GLOBALS["db_values"][$rs]["downloads"]; + $col_width = (int) ($cur_count/$max_count * $max_width); + $col_width = max($col_width, 1); + $col_width .= "px"; + print 'downloads
\n"; ?>