Esempio n. 1
0
 public function onPreInit($param)
 {
     //        if(isset($_GET['idtm_organisation'])){
     //            $openItem = $_GET['idtm_organisation'];
     //        }else{
     //            $openItem = 1;
     //        }
     //
     //        $this->setUserStartId($this->user->getStartNode($this->user->getUserId($this->user->Name),"tm_organisation"));
     $res = mysql_connect($this->Application->Parameters['Host'], $this->Application->getModule('db1')->database->getUsername(), $this->Application->getModule('db1')->database->getPassword());
     mysql_select_db($this->Application->Parameters['Database']);
     $scheduler = new schedulerConnector($res);
     $scheduler->enable_log("log.txt", true);
     $scheduler->render_table("vv_termin_connector", "idtm_termin", "ter_starttimestamp, ter_endtimestamp, ter_betreff, ter_descr,idtm_activity");
 }
<?php

include '../config.php';
include '../../codebase/scheduler_connector.php';
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
$scheduler = new schedulerConnector($res);
$scheduler->enable_live_update('actions_table');
$scheduler->enable_log("log.txt", true);
$scheduler->render_table("events", "event_id", "start_date,end_date,event_name,details");