8ec98c9f
Guillaume
MAJ
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<?php // content="text/plain; charset=utf-8"
// List all current supported flags.
// $Id: listallflags.php,v 1.1.2.1 2003/06/29 15:28:12 aditus Exp $
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/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;
foreach ($flags->iCountryNameMap as $key => $val) {
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>";
?>
|