Hello!
Help me pls.
Why options do not save in database?
///// html
scheduler.locale.labels.section_type = "Type";
scheduler.config.active_link_view = "day";
scheduler.config.lightbox.sections=[
{name:"description", height:43, map_to:"text", type:"textarea" , focus:true},
{name: "type", height: 21, map_to: "type", type: "select", options: scheduler.serverList("selector")},
{name:"time", height:72, type:"time", map_to:"auto" }
];
scheduler.load("dhtml/connector.php");
var dp = new dataProcessor("dhtml/connector.php");
dp.init(scheduler);
scheduler.init('scheduler_here', new Date(), "month");
////
////connector.php
require("../dhtml/codebase/connector/scheduler_connector.php");
require("../dhtml/codebase/connector/db_mysql.php");
$res=mysql_connect("localhost","fintura2ru_newva","Qawsedrf");
mysql_select_db("fintura2ru_newva");
mysql_query("SET NAMES 'utf8'");
mysql_query("SET CHARACTER SET 'utf8'");
mysql_query("SET SESSION collation_connection = 'utf8_general_ci'");
$list = new OptionsConnector($res,"MySQL");
$list->render_table("types","type_id","type_id(value),name(label)");
$conn = new schedulerConnector($res,"MySQL");
$conn->set_options("selector", $list);
$conn->render_table("events","id","start_date,end_date,text,type_id");
/////