[6779] | 1 | <?php
|
---|
| 2 | require_once ('../../../codebase/connector/scheduler_connector.php');
|
---|
| 3 | require_once('../../../codebase/connector/crosslink_connector.php');
|
---|
| 4 | require_once ('../../common/config.php');
|
---|
| 5 |
|
---|
| 6 | $res=mysql_connect($server, $user, $pass);
|
---|
| 7 | mysql_select_db($db_name);
|
---|
| 8 |
|
---|
| 9 | $cross = new CrossOptionsConnector($res);
|
---|
| 10 | $cross->dynamic_loading(true);
|
---|
| 11 | $cross->options->render_table("user","user_id","user_id(value),username(label)");
|
---|
| 12 | $cross->link->render_table("event_user","event_id", "user_id,event_id");
|
---|
| 13 |
|
---|
| 14 | $fruitCross = new CrossOptionsConnector($res);
|
---|
| 15 | $fruitCross->dynamic_loading(true);
|
---|
| 16 | $fruitCross->options->render_table("fruit","fruit_id","fruit_id(value),fruit_name(label)");
|
---|
| 17 | $fruitCross->link->render_table("event_fruit","event_id","fruit_id,event_id");
|
---|
| 18 |
|
---|
| 19 | //sleep(2);
|
---|
| 20 | $scheduler = new SchedulerConnector($res);
|
---|
| 21 | //$scheduler->enable_log("events_logs.txt",true);
|
---|
| 22 |
|
---|
| 23 | $scheduler->set_options("user_id", $cross->options);
|
---|
| 24 | $scheduler->set_options("fruit_id", $fruitCross->options);
|
---|
| 25 |
|
---|
| 26 | $scheduler->render_table("events_ms","event_id","start_date,end_date,event_name,details");
|
---|
| 27 | ?> |
---|