[ Index ]
 

Code source de jpGraph 2.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/src/Examples/ -> listallflags.php (source)

   1  <?php
   2  // List all current supported flags.
   3  // $Id: listallflags.php,v 1.1.2.1 2003/06/29 15:28:12 aditus Exp $
   4  include  "../jpgraph.php";
   5  include  "../jpgraph_flags.php";
   6  
   7  // Flag size to use in table 
   8  $s = FLAGSIZE2 ;
   9  $w = 60;
  10  $flags = new FlagImages($s) ;
  11  
  12  // Create a nice table wil all flags and their full name (and index)
  13  echo "<table width=100%><tr>\n";
  14  $cols=0;
  15  while( list($key,$val) = each($flags->iCountryNameMap) ) {
  16  
  17      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>';
  18      echo "<small>$key</small><br><small><font color=blue><i>idx=$val</i></font></small></td>\n";
  19      
  20      if( ++$cols == 5 ) {
  21      echo "</tr>\n<tr>";
  22      $cols=0;
  23      }
  24  }
  25  
  26  echo "</tr></table>";
  27  
  28  ?>
  29  


Généré le : Sat Nov 24 09:27:55 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics