i have big project. big database. But all work perfect and combo.
only when i try recieve label…!
combo server side:
<?php header(“Content-type:text/xml”);
require_once("…/dhtml/codebase/connector/combo_connector.php");
require_once("…/dhtml/codebase/connector/db_mysql.php");
$res=mysql_connect(“localhost”,“fintura2ru_medik”,“Qawsedrf”);
//
mysql_select_db(“fintura2ru_medik”);
mysql_query(“SET NAMES ‘utf8’”);
mysql_query(“SET CHARACTER SET ‘utf8’”);
mysql_query(“SET SESSION collation_connection = ‘utf8_general_ci’”);
//
$combo = new ComboConnector($res, “MySQL”);
$combo->event->attach(“beforeFilter”, “by_id”);
function by_id($filter) {
if (isset($_GET[‘id’]))
$filter->add(“id”, $_GET[‘id’], ‘=’);
}
$combo->dynamic_loading(10);
$combo->render_table(“cb_data290”,“id”,“f8260”);
?>
this code js:
scheduler.attachEvent(“onMouseDown”, function (id,eve){
scheduler.templates.event_text = function(start, end, event){
return event.text + " ("+scheduler.getLabel(“clients”,event.f7220) +")";
//return event.text + " ("+event.f7220+")";
}
and lightbox:
{name: “Врач”, height: 21, map_to: “f7240”, type: “select”, options:scheduler.serverList(“personal”),default_value: “”},
{ name: “Пациент”,height: 41, map_to: “f7220”, type: “combo”, script_path: “dhtml/combo.php”,filtering:true },
{name:“Первичный”, height:21,options:pervich, map_to:“f8880”,type:“radio”},
{name:“time”,width:100, height:72, type:“time”, map_to:“auto” },
{ name:“status”, height:38, options:status,map_to:“f7430”, type:“select”,default_value: “Записан”},
{name:“Доп.Инфо”, height:43, map_to:“text”, type:“textarea” , focus:false}