diff options
author | dmitry-radyno <dmitry.radyno@gmail.com> | 2013-09-24 11:49:47 +0300 |
---|---|---|
committer | dmitry-radyno <dmitry.radyno@gmail.com> | 2013-09-24 11:49:47 +0300 |
commit | e8adb5a9ce248e67c523fac807f9ee1bc33bcb7d (patch) | |
tree | 9daeac9008d7feaf017cc82cbfb4685f8a25cd32 /samples | |
parent | d15f7f2e3b673306b491c5d3d0ed78e73ac616b3 (diff) | |
parent | 351c266ee5165fd2588f96282dcff697c31d6e19 (diff) | |
download | connector-php-e8adb5a9ce248e67c523fac807f9ee1bc33bcb7d.zip connector-php-e8adb5a9ce248e67c523fac807f9ee1bc33bcb7d.tar.gz connector-php-e8adb5a9ce248e67c523fac807f9ee1bc33bcb7d.tar.bz2 |
Merge branch 'master' of 192.168.3.251:connector-php
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"); |