Colors $header_label", "100%", $colors["header"], "3", "center", "");
draw_edit_form(array(
"config" => array(),
"fields" => inject_form_variables($fields_color_edit, (isset($color) ? $color : array()))
));
html_end_box();
form_save_button("color.php");
}
function color() {
global $colors;
html_start_box("Colors", "100%", $colors["header"], "3", "center", "color.php?action=edit");
print "
";
DrawMatrixHeaderItem("Hex Value",$colors["header_text"],1);
DrawMatrixHeaderItem("Color",$colors["header_text"],1);
DrawMatrixHeaderItem(" ",$colors["header_text"],1);
## Space
DrawMatrixHeaderItem(" ",$colors["header_text"],1);
DrawMatrixHeaderItem("Hex Value",$colors["header_text"],1);
DrawMatrixHeaderItem("Color",$colors["header_text"],1);
DrawMatrixHeaderItem(" ",$colors["header_text"],1);
print "
";
$color_list = db_fetch_assoc("select * from colors order by hex");
$i = 0;
if (sizeof($color_list) > 0) {
$j=0; ## even/odd counter
foreach ($color_list as $color) {
$j++;
if ($j % 2 == 1) {
form_alternate_row_color($colors["alternate"],$colors["light"],$i); $i++;
?>
">
|
" width="1%"> |
">
|
|
">
|
" width="1%"> |
">
|
|