Newer
Older
Digital_Repository / Repositories / statistics / includes / inc.fns.show_detail_date.es.php
  1. <?php
  2. /*
  3. Usage by dates, totals.
  4.  
  5. */
  6.  
  7. // Get detail given year/month
  8.  
  9. $show_date = 'all years';
  10. if(isset($_REQUEST["year"])) {
  11. if(isset($_REQUEST["month"])) {
  12. $dt = strtotime($_REQUEST["month"]."/1/".$_REQUEST["year"]);
  13. $show_date = date("F Y",$dt);
  14. } else {
  15. $show_date = $_REQUEST["year"];
  16. $_REQUEST["month"] = 0;
  17. }
  18. } else {
  19. $_REQUEST["year"] = 0;
  20. $_REQUEST["month"] = 0;
  21. }
  22. if(isset($_REQUEST["range"])) {
  23. // Work out current date
  24. if($_REQUEST["range"]=='4w') {
  25. $show_date = 'past 4 weeks';
  26. }
  27. } else {
  28. $_REQUEST["range"] = '';
  29. }
  30.  
  31. // NJS 2006-06-14: Added archive name as argument.
  32. $GLOBALS["db_values"] = $sql->getArchiveCountDate($GLOBALS["config_vars"]["archivename"],$_REQUEST["year"],$_REQUEST["month"],$_REQUEST["range"]);
  33. ?>