<?php

include '../../codebase/db_pdo.php';
include '../../codebase/scheduler_connector.php';
include '../config.php';
$res = new PDO($mysql_server, $mysql_user, $mysql_pass);
$list = new JSONOptionsConnector($res, "PDO");
$list->render_table("types", "typeid", "typeid(value),name(label)");
$scheduler = new JSONSchedulerConnector($res, "PDO");
$scheduler->set_options("type", $list);
$scheduler->render_table("tevents", "event_id", "start_date,end_date,event_name,type");
Esempio n. 2
0
<?php

require_once '../../common/connector/scheduler_connector.php';
include '../../common/config.php';
$scheduler = new JSONSchedulerConnector($res, $dbtype);
$scheduler->render_table("events", "event_id", "start_date,end_date,event_name,details");
Esempio n. 3
0
<?php

require_once "../config.php";
require_once '../../codebase/db_pdo.php';
$res = new PDO($mysql_server, $mysql_user, $mysql_pass);
require "../../codebase/data_connector.php";
require "../../codebase/scheduler_connector.php";
require "../../codebase/grid_connector.php";
$details = new JSONDataConnector($res, "PDO");
$details->mix("active", "yes");
$details->configure("types", "typeid", "name");
$events = new JSONSchedulerConnector($res, "PDO");
$events->mix("types", $details, array("typeid" => "type"));
$events->render_table("tevents", "event_id", "start_date,end_date,event_name,type", "", "");
Esempio n. 4
0
<?php

require_once '../../common/connector/scheduler_connector.php';
include '../../common/config.php';
$scheduler = new JSONSchedulerConnector($res, $dbtype);
$scheduler->render_table("horario", "idhorario", "inicio,fin,espacio_idespacio");
Esempio n. 5
0
<?php

require_once "../config.php";
require_once '../../codebase/db_pdo.php';
$res = new PDO($mysql_server, $mysql_user, $mysql_pass);
require "../../codebase/scheduler_connector.php";
ConnectorSecurity::$security_key = true;
$_GET["id"] = 810;
$grid = new JSONSchedulerConnector($res, "PDO");
$grid->render_table("events", "event_id", "start_date, end_date, event_name");