2 include_once $gfplugins.'webcalendar/www/includes/init.php';
3 $INC = array('js/colors.php');
4 print_header($INC,'','',true);
6 $colors = array("00", "33", "66", "99", "CC", "FF");
7 $grayscale = array("FFFFFF","DDDDDD","C0C0C0","969696","808080","646464","4B4B4B","242424","000000");
8 $green1 = array("FF", "CC", "99");
9 $green2 = array("66", "33", "00");
13 <div style="text-align:center;">
14 <table style="border-collapse: separate;border: none;background-color:#000000;border-spacing: 1px;">
17 for ($r=0; $r<count($colors); $r++){ //the red colors loop
19 for ($g=0; $g<count($green1); $g++){ //the green colors loop
20 for ($b=0; $b<count($colors); $b++){ //iterate through the six blue colors
21 $c = $colors[$r].$green1[$g].$colors[$b];
22 echo "<td style=\"background-color:#" . $c . ";\"><a href=\"javascript:sendColor('#" . $c .
23 "')\"><img src=\"spacer.gif\" class=\"color\" alt=\"\" /></a></td>\n";
24 } //End of b-blue innermost loop
25 } //End of g-green loop
26 echo "</tr>\n"; // close row
27 } //End of r-red outermost loop
30 for ($r=0; $r<count($colors); $r++){ //the red colors loop
32 for ($g=0; $g<count($green2); $g++){ //the green colors loop
33 for ($b=0; $b<count($colors); $b++){ //iterate through the six blue colors
34 $c = $colors[$r].$green2[$g].$colors[$b];
35 echo "<td style=\"background-color:#" . $c . ";\"><a href=\"javascript:sendColor('#" . $c .
36 "')\"><img src=\"spacer.gif\" class=\"color\" alt=\"\" /></a></td>\n";
37 } //End of b-blue innermost loop
38 } //End of g-green loop
39 echo "</tr>\n"; // close row
40 } //End of r-red outermost loop
44 <table style="border-collapse: separate;border: none;background-color:#000000;border-spacing: 1px;"><tr>
46 for ($gs=0; $gs<count($grayscale); $gs++){
48 echo "<td style=\"background-color:#" . $c . ";\"><a href=\"javascript:sendColor('#" . $c .
49 "')\"><img src=\"spacer.gif\" class=\"color\" alt=\"\" /></a></td>\n";
56 <?php print_trailer ( false, false, true ); ?>