Login   Register  
PHP Classes
elePHPant
Icontem

File: color.sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Márcio Elias Hahn do Nascimento  >  Combo Color  >  color.sample.php  >  Download  
File: color.sample.php
Role: Example script
Content type: text/plain
Description: file with sample of the use
Class: Combo Color
Generate a form select field to choose a color
Author: By
Last change:
Date: 9 years ago
Size: 1,607 bytes
 

Contents

Class file image Download
<?
/*###################################################################################################
#########                                                                                    ########
#########                             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>