- Switched navigation bars to use global actions/includes array in
inc.vars.es_src.php instead of manually including files.
- Fixed a display bug with the "Last year" navigation bar item that caused
  it to erroneiously highlight "Last year" when you were actually viewing
  a single month from last year.
1 parent a202363 commit 4f093fa5ca37ff162f2f2df21a91edd08c5c024c
nstanger authored on 19 Jan 2006
Showing 9 changed files
View
12
Repositories/statistics/config/inc.vars.es_src.php
"vTITLE" => "Form actions",
"vDESCRIPTION" => "Which files are included for get/post actions. i.e the pub_default action will include the files listed in the array",
"includes" => array(
'public' => array(
'pub_default' => array ('inc.html.header.es.php','inc.html.pub_default.es.php','inc.html.footer.es.php'),
'pub_default' => array ('inc.html.header.es.php','inc.fns.navbar.es.php','inc.html.navbar_global.es.php','inc.html.pub_default.es.php','inc.html.footer.es.php'),
'no_service_public' => array ('inc.html.header.es.php','inc.html.no_service_public.es.php','inc.html.footer.es.php'),
'cumulative_usage' => array ('inc.fns.cumulative_usage.es.php','inc.html.header.es.php','inc.html.cumulative_usage.es.php','inc.html.footer.es.php'),
'cumulative_usage_country' => array ('inc.fns.cumulative_usage_country.es.php','inc.html.header.es.php','inc.html.cumulative_usage_country.es.php','inc.html.footer.es.php'),
'show_detail_date' => array ('inc.fns.show_detail_date.es.php','inc.html.header.es.php','inc.html.show_detail_date.es.php','inc.html.footer.es.php'),
'show_detail_country' => array ('inc.fns.show_detail_country.es.php','inc.html.header.es.php','inc.html.show_detail_country.es.php','inc.html.footer.es.php'),
'show_detail_eprint' => array ('inc.fns.show_detail_eprint.es.php','inc.html.header.es.php','inc.html.show_detail_eprint.es.php','inc.html.footer.es.php'),
'cumulative_usage' => array ('inc.fns.cumulative_usage.es.php','inc.html.header.es.php','inc.fns.navbar.es.php','inc.html.navbar_global.es.php','inc.html.cumulative_usage.es.php','inc.html.footer.es.php'),
'cumulative_usage_country' => array ('inc.fns.cumulative_usage_country.es.php','inc.html.header.es.php','inc.fns.navbar.es.php','inc.html.navbar_global.es.php','inc.html.cumulative_usage_country.es.php','inc.html.footer.es.php'),
'show_detail_date' => array ('inc.fns.show_detail_date.es.php','inc.html.header.es.php','inc.fns.navbar.es.php','inc.html.navbar_global.es.php','inc.html.show_detail_date.es.php','inc.html.footer.es.php'),
'show_detail_country' => array ('inc.fns.show_detail_country.es.php','inc.html.header.es.php','inc.fns.navbar.es.php','inc.html.navbar_global.es.php','inc.html.show_detail_country.es.php','inc.html.footer.es.php'),
'show_detail_eprint' => array ('inc.fns.show_detail_eprint.es.php','inc.html.header.es.php','inc.fns.navbar.es.php','inc.html.navbar_global.es.php','inc.html.show_detail_eprint.es.php','inc.html.footer.es.php'),
),
),
),
);
View
4
Repositories/statistics/includes/inc.html.cumulative_usage.es.php
<?php
require("inc.html.navbar_global.es.php");
?>
 
<h3>Abstract views and document downloads by year/month</h3>
 
<?php
$max_count = $GLOBALS["db_values"][0]["abstracts"];
View
4
Repositories/statistics/includes/inc.html.cumulative_usage_country.es.php
<?php
require("inc.html.navbar_global.es.php");
?>
 
<h3>Abstract views and document downloads by country (derived from IP address of query)</h3>
 
<p><strong>Note:</strong> The country of origin is determined by looking up the source IP address in the <a href="http://www.maxmind.com/app/geoip_country">GeoLite Country</a> database provided by MaxMind LLC. Due to the ever-changing nature of the Internet, this database can never be 100% complete or accurate, so it is possible that a small number of downloads may be reported as being from the wrong country.</p>
 
View
8
Repositories/statistics/includes/inc.html.navbar_eprint.es.php
<?php
require_once("inc.fns.navbar.es.php");
 
$current_year = date("Y");
$last_year = date("Y")-1;
/*
"last_year" => array(
"match" => (isset($_REQUEST["action"]) &&
($_REQUEST["action"] == "show_detail_eprint") &&
isset($_REQUEST["year"]) &&
($_REQUEST["year"] == $last_year)),
($_REQUEST["year"] == $last_year) &&
isset($_REQUEST["month"]) &&
($_REQUEST["month"] == 0)),
"text" => "Last year",
"href" => $_SERVER['PHP_SELF'] . "?action=show_detail_eprint;id=" .
$_REQUEST["id"] . ";year=" . $last_year,
),
View
8
Repositories/statistics/includes/inc.html.navbar_global.es.php
<?php
require_once("inc.fns.navbar.es.php");
 
$current_year = date("Y");
$last_year = date("Y")-1;
/*
"last_year" => array(
"match" => (isset($_REQUEST["action"]) &&
($_REQUEST["action"] == "show_detail_date") &&
isset($_REQUEST["year"]) &&
($_REQUEST["year"] == $last_year)),
($_REQUEST["year"] == $last_year) &&
isset($_REQUEST["month"]) &&
($_REQUEST["month"] == 0)),
"text" => "Last year",
"href" => $_SERVER['PHP_SELF'] . "?action=show_detail_date;year=" . $last_year,
),
"all_years" => array(
View
5
Repositories/statistics/includes/inc.html.pub_default.es.php
<?php
require("inc.html.navbar_global.es.php");
?>
View
Repositories/statistics/includes/inc.html.show_detail_country.es.php
View
Repositories/statistics/includes/inc.html.show_detail_date.es.php
View
Repositories/statistics/includes/inc.html.show_detail_eprint.es.php