<!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>Test</title> <?php include "/var/www/kurtl/tcshl/engine/select_functions.php"; ?> </head> <body> <?php echo select_color('mycolorselect', '808000'); ?> </body> </html>
* * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ // Page requirements define('LOGIN_REQUIRED', true); define('PAGE_ACCESS_LEVEL', 2); define('PAGE_TYPE', 'ADMIN'); // Set for every page require 'engine/common.php'; require_once 'com/tcshl/team/Team.php'; require_once 'com/tcshl/team/Teams.php'; $smarty->assign('div_newobject_style', 'display: none'); $smarty->assign('page_name', 'Team Manager'); $smarty->assign('newTeamFGColorSelect', select_color('teamFGColor', 'FFFFFF')); $smarty->assign('newTeamBGColorSelect', select_color('teamBGColor', '000000')); // Handle posts if (isset($_POST['action'])) { // if Form post of a new team if ($_POST['action'] == "Add New Team") { $team = new Team(0); // If form does not validate, we need to return with errors. if ($team->formValidation()) { handle_errors($team->get_teamFormErrors()); $team->formReposts($smarty); $smarty->assign('div_newobject_style', 'display: block'); } else { // If errors occur while trying to create team, we need to return with errors. if ($team->formProcessInsert()) { handle_errors($team->get_teamFormErrors()); $team->formReposts($smarty);
public function get_teamColorSelect($inputname, $color) { return select_color($inputname, $color); }