<? /*################################################################################################### ######### ######## ######### COLOR PICKER CREATOR CLASS ######## ######### CREATED BY Márcio Elias ######## ######### marcioelias@gmail.com ######## ######### ######## ###################################################################################################*/
//this is a sample of use the class colo.class.php
require_once('color.class.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Sample of use the Color Picker Class - by: Márcio Elias - me-Master</title> <? echo "<style type=\"text/css\"> <!-- body { background-color: ".$_GET['name_component']."; } --> </style>"; ?> </head>
<body> <form id="bgcolor" name="bgcolor" method="get" action="<? echo $_SERVER['PHP_SELF']; ?>"> <? //function for generate of the component $color_picker1 = new color_picker("name_component", "Select one", $_GET['name_component']); $color_picker1->print_select(); ?> <input type="submit" name="Submit" value="Change" /> </form> </body> </html>
|