Hi, I try to have multiple dropdown menu on the calendar Form (lightbox), but can’t figure out how to do that… I have 2 different table in the database, one is types and one clients.
So I wanna be able to select from different table on the form… Is it possible?
tks
Seby
FilesSeby.zip (1.67 KB)
CODE HTML:
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title></title>
html, body{
margin:0px;
padding:0px;
height:100%;
overflow:hidden;
}
CODE PHP for events.php:
<?php include ('../../../codebase/connector/scheduler_connector.php'); include ('../../common/config.php'); $res=mysql_connect($server, $user, $pass); mysql_select_db($db_name); $scheduler = new schedulerConnector($res); $list = new OptionsConnector($res); $list->render_table("types","typeid","typeid(value),name(label)"); $clients = new OptionsConnector($res); //$clients->render_table("clients","id","id(value),id(label)"); $clients->render_table("clients","full_name","full_name(value),full_name(label)"); //$clients->render_table("types","typeid","typeid(value),name(label)"); $scheduler->set_options("types",$list); $scheduler->set_options("clients",$clients); //$scheduler->enable_log("log.txt",true); //$scheduler->enable_log("log.txt",true); //$scheduler = new schedulerConnector($res); $scheduler->render_table("events","event_id","start_date,end_date,event_name,details,types,subtype,clients"); ?>