Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
29
jpgraph/Examples/listallflags.php
Normal file
29
jpgraph/Examples/listallflags.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
// List all current supported flags.
|
||||
// $Id: listallflags.php,v 1.1.2.1 2003/06/29 15:28:12 aditus Exp $
|
||||
include "../jpgraph.php";
|
||||
include "../jpgraph_flags.php";
|
||||
|
||||
// Flag size to use in table
|
||||
$s = FLAGSIZE2 ;
|
||||
$w = 60;
|
||||
$flags = new FlagImages($s) ;
|
||||
|
||||
// Create a nice table wil all flags and their full name (and index)
|
||||
echo "<table width=100%><tr>\n";
|
||||
$cols=0;
|
||||
while( list($key,$val) = each($flags->iCountryNameMap) ) {
|
||||
|
||||
echo '<td width=20%><a href="javascript:window.open(\'listallflags_helper.php?size=4&idx='.$val.'\',\'_new\',\'width=500,height=350\');void(0)"><img src="listallflags_helper.php?size='.$s.'&idx='.$val.'"></a><br>';
|
||||
echo "<small>$key</small><br><small><font color=blue><i>idx=$val</i></font></small></td>\n";
|
||||
|
||||
if( ++$cols == 5 ) {
|
||||
echo "</tr>\n<tr>";
|
||||
$cols=0;
|
||||
}
|
||||
}
|
||||
|
||||
echo "</tr></table>";
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue