Ejemplo n.º 1
0
<?php

require_once '../../common/connector/scheduler_connector.php';
include '../../common/config.php';
$list = new OptionsConnector($res, $dbtype);
$list->render_table("types", "typeid", "typeid(value),name(label)");
$scheduler = new schedulerConnector($res, $dbtype);
//$scheduler->enable_log("log.txt",true);
$scheduler->set_options("type", $list);
$scheduler->render_table("tevents", "event_id", "start_date,end_date,event_name,type");
Ejemplo n.º 2
0
<?php

require_once "../config.php";
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res);
$grid->dynamic_loading(100);
/*$filter1 = new OptionsConnector($res);
	$filter1->render_table("countries","item_id","item_id(value),item_nm(label)");
	$grid->set_options("item_nm",$filter1);*/
$filter1 = new OptionsConnector($res);
$filter1->render_table("countries", "item_id", "item_id(value),item_nm(label)");
$grid->set_options("item_nm", $filter1);
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");
Ejemplo n.º 3
0
 public function __construct($res, $type = false, $item_type = false, $data_type = false, $render_type = false)
 {
     if (!$item_type) {
         $item_type = "GanttLinkDataItem";
     }
     parent::__construct($res, $type, $item_type, $data_type, $render_type);
 }
<?php

require_once "../config.php";
$res = mysql_connect($mysql_server, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db);
require "../../codebase/grid_connector.php";
$grid = new GridConnector($res);
$grid->dynamic_loading(100);
/*$filter1 = new OptionsConnector($res);
	$filter1->render_table("countries","item_id","item_id(value),item_nm(label)");
	$grid->set_options("item_nm",$filter1);*/
$filter1 = new OptionsConnector($res);
$filter1->render_sql("SELECT  DISTINCT SUBSTR(item_nm,1,2) as value from grid50000", "item_id", "item_nm(value)");
$grid->set_options("item_nm", $filter1);
$grid->render_table("grid50000", "item_id", "item_nm,item_cd");