{
        parent::parse_request();
        if (count($this->config->text)) {
            if (isset($_GET["to"])) {
                $this->request->set_filter($this->config->text[0]["name"], $_GET["to"], "<");
            }
            if (isset($_GET["from"])) {
                $this->request->set_filter($this->config->text[1]["name"], $_GET["from"], ">");
            }
        }
    }
}
$res = mysqli_connect("localhost", "root", "312487", "huab");
mysqli_select_db($res, "huab");
$conn = new SchedulerConnector($res);
$conn->render_table("events", "id", "start_date,end_date,text");
/*! DataProcessor class for Scheduler component
**/
class SchedulerDataProcessor extends DataProcessor
{
    function name_data($data)
    {
        if ($data == "start_date") {
            return $this->config->text[0]["db_name"];
        }
        if ($data == "id") {
            return $this->config->id["db_name"];
        }
        if ($data == "end_date") {
            return $this->config->text[1]["db_name"];
        }
<?php

include '../../common/connector/scheduler_connector.php';
include '../../common/connector/crosslink_connector.php';
require_once '../../common/config.php';
$cross = new CrossOptionsConnector($res, $dbtype);
$cross->dynamic_loading(true);
$cross->options->render_table("user", "user_id", "user_id(value),username(label)");
$cross->link->render_table("event_user", "event_id", "user_id,event_id");
$fruitCross = new CrossOptionsConnector($res, $dbtype);
$fruitCross->dynamic_loading(true);
$fruitCross->options->render_table("fruit", "fruit_id", "fruit_id(value),fruit_name(label)");
$fruitCross->link->render_table("event_fruit", "event_id", "fruit_id,event_id");
$scheduler = new SchedulerConnector($res, $dbtype);
$scheduler->set_options("user_id", $cross->options);
$scheduler->set_options("fruit_id", $fruitCross->options);
$scheduler->render_table("events_ms", "event_id", "start_date,end_date,event_name,details");
Beispiel #3
0
<?php

require "connector/scheduler_connector.php";
$res = mysql_connect("46.101.32.81:3306", "root", "teameight");
mysql_select_db("eg_database");
$conn = new SchedulerConnector($res, "MySQL");
$conn->render_table("eg_calender_events", "eventID", "start_date,end_date,text");
<?php

require_once '../../common/connector/scheduler_connector.php';
include '../../common/config.php';
$scheduler = new SchedulerConnector($res, $dbtype);
$scheduler->render_table("events_map", "event_id", "start_date,end_date,event_name,details,event_location,lat,lng");