Newer
Older
Digital_Repository / Repositories / statistics / includes / inc.html.header.es.php
nstanger on 1 Aug 2006 2 KB - Fixed generic URLs.
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
  2. <html>
  3. <head>
  4. <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  5. <title>
  6. <?php
  7. // NJS 2006-06-14: Added support for multiple archives.
  8. print $GLOBALS["config_vars"]["general"]["repository_name"][$GLOBALS["config_vars"]["archivename"]];
  9. print ': Usage Statistics';
  10. ?>
  11. </title>
  12. <!-- Configure these URLs appropriately! -->
  13. <link rel="stylesheet" type="text/css" href="http://eprints.otago.ac.nz/eprints.css" title="screen stylesheet" media="screen" />
  14. <link rel="Top" href="http://eprints.otago.ac.nz/" />
  15. <link rel="Search" href="http://eprints.otago.ac.nz/perl/search" />
  16. <link rel="Help" href="http://eprints.otago.ac.nz/help" />
  17. </head>
  18. <body>
  19. <a id="top"></a>
  20.  
  21. <!-- Insert page header stuff here. -->
  22.  
  23. <h1>
  24. <?php
  25. // NJS 2006-06-14: Added support for multiple archives.
  26. print $GLOBALS["config_vars"]["general"]["repository_name"][$GLOBALS["config_vars"]["archivename"]];
  27. print ': Usage Statistics<br />';
  28. print '<span style="font-size:small;color:#cccccc;">[Last updated ' .
  29. $sql->getLastProc() . ']</span>';
  30. print '</h1>';
  31. // If we're displaying the global stats page, provide a list of all
  32. // the hosted repositories, BUT only if there is more than one.
  33. if ( ( $GLOBALS["config_vars"]["archivename"] == 'default' )
  34. and ( count( $GLOBALS["config_vars"]["general"]["repository_name"] ) > 1 ) )
  35. {
  36. print '<p>Note that these statistics are accumulated across <em>all</em> of
  37. the following repositories hosted on this server:</p>';
  38. print '<ul>';
  39. foreach ( $GLOBALS["config_vars"]["general"]["repository_name"] as $id => $name )
  40. {
  41. if ( $id != 'default' )
  42. print '<li><a href="'
  43. . $GLOBALS["config_vars"]["general"]["eprints_location"][$id]
  44. . '/es">' . $name . '</a></li>';
  45. }
  46. print '</ul>';
  47. print '</p>If you want usage statistics specific to only one of these
  48. repositories, please follow the appropriate link above.</p>';
  49. print '<hr />';
  50. }
  51. ?>
  52.  
  53. <!-- Insert your blurb here. -->
  54.