Newer
Older
Digital_Repository / Repositories / statistics / includes / inc.html.show_detail_date.es.php
nstanger on 27 Nov 2005 1 KB - Added intelligent navigation bars.
  1. <?php
  2. require("inc.html.navbar_global.es.php");
  3. ?>
  4.  
  5. <h3>Document downloads for: <?php print $show_date; ?></h3>
  6.  
  7. <?php
  8. if (isset ($GLOBALS["db_values"]["0"]["count"])) {
  9. print '<span style="font-size:small;">Click on a document title to see detailed statistics for that document</span>';
  10. print "<table>\n";
  11. print '<tr><th style="background-color:#cccccc;">Document</th>
  12. <th style="background-color:#4477dd;color:#ffffff;">Downloads</th></tr>';
  13. }
  14. else {
  15. print "<table>\n";
  16. print '<tr><td style="color:#ff0000;"><b>No statistics are available for this period.</b></td></tr>';
  17. }
  18. for ($rs=0;$rs<count($GLOBALS["db_values"]);$rs++)
  19. {
  20. $extra_args = array();
  21. $cur_count = $GLOBALS["db_values"][$rs]["count"];
  22. if(isset($_REQUEST["year"])) { $extra_args[] = "year=".$_REQUEST["year"]; }
  23. if(isset($_REQUEST["month"])) { $extra_args[] = "month=".$_REQUEST["month"]; }
  24. if(isset($_REQUEST["range"])) { $extra_args[] = "range=".$_REQUEST["range"]; }
  25. print '<tr><td width="600" align="left" style="font-size:small;"><a href="'.
  26. $_SERVER['PHP_SELF'].
  27. '?action=show_detail_eprint;id='.
  28. $GLOBALS["db_values"][$rs]["archiveid"].
  29. ';'.
  30. implode(";",$extra_args).
  31. '">'.
  32. $GLOBALS["db_values"][$rs]["eprint_name"].
  33. '</a></td><td align="right" style="font-size:small;">'.
  34. $GLOBALS["db_values"][$rs]["count"].
  35. '</td></tr>';
  36. }
  37. print "</table>\n";
  38. ?>
  39.