home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / cp.php < prev    next >
Encoding:
PHP Script  |  2003-03-16  |  1.3 KB  |  50 lines

  1. <?php
  2. /////////////////////////////////////////////////////////
  3. //    
  4. //    source/cp.php
  5. //
  6. //    (C)Copyright 2000-2002 Ryo Chijiiwa <Ryo@IlohaMail.org>
  7. //
  8. //        This file is part of IlohaMail.
  9. //        IlohaMail is free software released under the GPL 
  10. //        license.  See enclosed file COPYING for details,
  11. //        or see http://www.fsf.org/copyleft/gpl.html
  12. //
  13. /////////////////////////////////////////////////////////
  14.  
  15. /********************************************************
  16.  
  17.     AUTHOR: Ryo Chijiiwa <ryo@ilohamail.org>
  18.     PURPOSE:
  19.         Display color grid and corresponding color codes
  20.     PRE-CONDITIONS:
  21.         $user - Session ID
  22.     COMMENTS:
  23. ********************************************************/
  24.  
  25.     include("../include/super2global.inc");
  26.  
  27.     include("../include/header_main.inc");
  28.     include("../lang/".$my_prefs["lang"]."cp.inc");
  29.  
  30.     $r=array("00", "33", "66", "99", "CC", "FF");
  31.     $g=array("00", "33", "66", "99", "CC", "FF");
  32.     $b=array("00", "33", "66", "99", "CC", "FF");
  33.  
  34.     echo "<p><table>";
  35.     while (list($rkey, $r_code) = each ($r)){
  36.         reset($g);
  37.         while (list($gkey, $g_code) = each ($g)){
  38.             echo "<tr>";
  39.             reset($b);
  40.             while (list($bkey, $b_code) = each ($b)){
  41.                 $code="#".$r_code.$g_code.$b_code;
  42.                 echo "<td>$code</td><td width=60 bgcolor=\"$code\"></td>";
  43.             }
  44.             echo "</tr>\n";
  45.         }
  46.     }
  47.     echo "</table>";
  48.     
  49. ?>
  50. </body></html>