GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Digital_Repository
Browse code
- Changed "no downloads" message slightly.
master
1 parent
8d44cf0
commit
6813d00cd195b5a82f77540a4354f5dbe3ae5d82
nstanger
authored
on 15 Dec 2005
Patch
Showing
1 changed file
Repositories/statistics/includes/inc.html.show_detail_country.es.php
Ignore Space
Show notes
View
Repositories/statistics/includes/inc.html.show_detail_country.es.php
<?php require("inc.html.navbar_global.es.php"); ?> <h3>Document downloads from: <?php print $show_country_name; // select a flag print ' '; $c_flag = 'flags18x14/' . $show_country . '.png'; if (file_exists($c_flag)) { print '<img src="'. $c_flag . '" width="18" height="14" alt="'. $show_country . '">'; } else { print '<img src="flags18x14/unknown.png" width="18" height="14" alt="' . $show_country . '">'; }; ?></h3> <?php if (isset ($GLOBALS["db_values"]["0"]["count"])) { print '<span style="font-size:small;">Click on a document title to see detailed statistics for that document</span>'; print "<table>\n"; print '<tr><th style="background-color:#cccccc;">Document</th> <th style="background-color:#4477dd;color:#ffffff;">Downloads</th></tr>'; } else { print "<table>\n"; print '<tr><td><strong style="color:#ff0000;">No downloads for this country.</strong></td></tr>'; } for ($rs=0;$rs<count($GLOBALS["db_values"]);$rs++) { $extra_args = array(); $cur_count = $GLOBALS["db_values"][$rs]["count"]; if(isset($_REQUEST["year"])) { $extra_args[] = "year=".$_REQUEST["year"]; } if(isset($_REQUEST["month"])) { $extra_args[] = "month=".$_REQUEST["month"]; } if(isset($_REQUEST["range"])) { $extra_args[] = "range=".$_REQUEST["range"]; } print '<tr><td width="600" align="left" style="font-size:small;"><a href="'. $_SERVER['PHP_SELF']. '?action=show_detail_eprint;id='. $GLOBALS["db_values"][$rs]["archiveid"]. ';'. implode(";",$extra_args). '">'. $GLOBALS["db_values"][$rs]["eprint_name"]. '</a></td><td align="right" style="font-size:small;">'. $GLOBALS["db_values"][$rs]["count"]. '</td></tr>'; } print "</table>\n"; ?>
<?php require("inc.html.navbar_global.es.php"); ?> <h3>Document downloads from: <?php print $show_country_name; // select a flag print ' '; $c_flag = 'flags18x14/' . $show_country . '.png'; if (file_exists($c_flag)) { print '<img src="'. $c_flag . '" width="18" height="14" alt="'. $show_country . '">'; } else { print '<img src="flags18x14/unknown.png" width="18" height="14" alt="' . $show_country . '">'; }; ?></h3> <?php if (isset ($GLOBALS["db_values"]["0"]["count"])) { print '<span style="font-size:small;">Click on a document title to see detailed statistics for that document</span>'; print "<table>\n"; print '<tr><th style="background-color:#cccccc;">Document</th> <th style="background-color:#4477dd;color:#ffffff;">Downloads</th></tr>'; } else { print "<table>\n"; print '<tr><td style="color:#ff0000;"><b>No downloads have come from this country.</b></td></tr>'; } for ($rs=0;$rs<count($GLOBALS["db_values"]);$rs++) { $extra_args = array(); $cur_count = $GLOBALS["db_values"][$rs]["count"]; if(isset($_REQUEST["year"])) { $extra_args[] = "year=".$_REQUEST["year"]; } if(isset($_REQUEST["month"])) { $extra_args[] = "month=".$_REQUEST["month"]; } if(isset($_REQUEST["range"])) { $extra_args[] = "range=".$_REQUEST["range"]; } print '<tr><td width="600" align="left" style="font-size:small;"><a href="'. $_SERVER['PHP_SELF']. '?action=show_detail_eprint;id='. $GLOBALS["db_values"][$rs]["archiveid"]. ';'. implode(";",$extra_args). '">'. $GLOBALS["db_values"][$rs]["eprint_name"]. '</a></td><td align="right" style="font-size:small;">'. $GLOBALS["db_values"][$rs]["count"]. '</td></tr>'; } print "</table>\n"; ?>
Show line notes below