diff options
Diffstat (limited to 'samples')
-rw-r--r-- | samples/gantt/01_basic_init_connector.php | 13 | ||||
-rw-r--r-- | samples/scheduler/06_json_connector_options.php | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/samples/gantt/01_basic_init_connector.php b/samples/gantt/01_basic_init_connector.php new file mode 100644 index 0000000..a39c2b3 --- /dev/null +++ b/samples/gantt/01_basic_init_connector.php @@ -0,0 +1,13 @@ +<?php + + include ('../config.php'); + include ('../../codebase/gantt_connector.php'); + + $res=mysql_connect($mysql_server,$mysql_user,$mysql_pass); + mysql_select_db($mysql_db); + + $gantt = new JSONGanttConnector($res); + $gantt->openAll(); + $gantt->render_links("gantt_links", "id", "source_task,target_task,type"); + $gantt->render_table("gantt_tasks","id","start_date,duration,text,progress,order,parent"); +?>
\ No newline at end of file diff --git a/samples/scheduler/06_json_connector_options.php b/samples/scheduler/06_json_connector_options.php index 40ff3c0..53cbbb9 100644 --- a/samples/scheduler/06_json_connector_options.php +++ b/samples/scheduler/06_json_connector_options.php @@ -8,7 +8,6 @@ $list->render_table("types","typeid","typeid(value),name(label)"); $scheduler = new JSONSchedulerConnector($res); -// $scheduler->enable_log("log.txt",true); $scheduler->set_options("type", $list); $scheduler->render_table("tevents","event_id","start_date,end_date,event_name,type"); |