Add version files and new GIF images for UI components
This commit is contained in:
52
themes/connector/samples/scheduler/01_basic_init.html
Normal file
52
themes/connector/samples/scheduler/01_basic_init.html
Normal file
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.config.prevent_cache = true;
|
||||
scheduler.config.lightbox.sections=[
|
||||
{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
|
||||
{name:"location", height:43, type:"textarea", map_to:"details" },
|
||||
{name:"time", height:72, type:"time", map_to:"auto"}
|
||||
]
|
||||
scheduler.config.first_hour=4;
|
||||
scheduler.locale.labels.section_location="Location";
|
||||
scheduler.config.details_on_create=true;
|
||||
scheduler.config.details_on_dblclick=true;
|
||||
scheduler.init('scheduler_here',new Date(2009,10,1),"month");
|
||||
scheduler.load("01_basic_init_connector.php?uid="+scheduler.uid());
|
||||
var dp = new dataProcessor("01_basic_init_connector.php");
|
||||
dp.init(scheduler);
|
||||
}
|
||||
</script>
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
@ -0,0 +1,12 @@
|
||||
<?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_log("log.txt",true);
|
||||
$scheduler->render_table("events","event_id","start_date,end_date,event_name,details");
|
||||
?>
|
||||
54
themes/connector/samples/scheduler/02_dynamic_loading.html
Normal file
54
themes/connector/samples/scheduler/02_dynamic_loading.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.config.prevent_cache = true;
|
||||
scheduler.config.lightbox.sections=[
|
||||
{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
|
||||
{name:"location", height:43, type:"textarea", map_to:"details" },
|
||||
{name:"time", height:72, type:"time", map_to:"auto"}
|
||||
]
|
||||
scheduler.config.first_hour=4;
|
||||
scheduler.locale.labels.section_location="Location";
|
||||
scheduler.config.details_on_create=true;
|
||||
scheduler.config.details_on_dblclick=true;
|
||||
|
||||
scheduler.init('scheduler_here',new Date(2009,10,1),"day");
|
||||
scheduler.setLoadMode("day");
|
||||
scheduler.load("02_dynamic_loading_connector.php?uid="+scheduler.uid());
|
||||
var dp = new dataProcessor("02_dynamic_loading_connector.php");
|
||||
dp.init(scheduler);
|
||||
}
|
||||
</script>
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
@ -0,0 +1,12 @@
|
||||
<?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_log("log.txt",true);
|
||||
$scheduler->render_table("events","event_id","start_date,end_date,event_name,details");
|
||||
?>
|
||||
57
themes/connector/samples/scheduler/03_connector_options.html
Normal file
57
themes/connector/samples/scheduler/03_connector_options.html
Normal file
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.multi_day = true;
|
||||
scheduler.config.prevent_cache = true;
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.init('scheduler_here',new Date(2010,2,1),"month");
|
||||
|
||||
|
||||
scheduler.locale.labels.section_type = "Type";
|
||||
scheduler.config.lightbox.sections = [
|
||||
{name:"description", height:200, map_to:"text", type:"textarea" , focus:true},
|
||||
{name:"type", height:21, map_to:"type", type:"select",
|
||||
options:scheduler.serverList("type")},
|
||||
{name:"time", height:72, type:"time", map_to:"auto"}
|
||||
];
|
||||
scheduler.load("03_connector_options.php");
|
||||
|
||||
var dp = new dataProcessor("03_connector_options.php");
|
||||
dp.init(scheduler);
|
||||
}
|
||||
</script>
|
||||
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
15
themes/connector/samples/scheduler/03_connector_options.php
Normal file
15
themes/connector/samples/scheduler/03_connector_options.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include ('../../codebase/scheduler_connector.php');
|
||||
include ('../config.php');
|
||||
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
|
||||
mysql_select_db($mysql_db);
|
||||
|
||||
$list = new OptionsConnector($res);
|
||||
$list->render_table("types","typeid","typeid(value),name(label)");
|
||||
|
||||
$scheduler = new schedulerConnector($res);
|
||||
// $scheduler->enable_log("log.txt",true);
|
||||
|
||||
$scheduler->set_options("type", $list);
|
||||
$scheduler->render_table("tevents","event_id","start_date,end_date,event_name,type");
|
||||
?>
|
||||
46
themes/connector/samples/scheduler/04_recurring_events.html
Normal file
46
themes/connector/samples/scheduler/04_recurring_events.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="../dhtmlx/dhtmlxscheduler_recurring.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.config.details_on_create=true;
|
||||
scheduler.config.details_on_dblclick=true;
|
||||
scheduler.init('scheduler_here',null,"month");
|
||||
scheduler.load("04_recurring_events_connector.php?uid="+scheduler.uid());
|
||||
|
||||
var dp = new dataProcessor("04_recurring_events_connector.php");
|
||||
dp.init(scheduler);
|
||||
}
|
||||
</script>
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
include ('../config.php');
|
||||
include ('../../codebase/scheduler_connector.php');
|
||||
include ('../../codebase/db_sqlsrv.php');
|
||||
|
||||
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
|
||||
mysql_select_db($mysql_db);
|
||||
|
||||
|
||||
function delete_related($action){
|
||||
global $scheduler;
|
||||
|
||||
$status = $action->get_status();
|
||||
$type =$action->get_value("rec_type");
|
||||
$pid =$action->get_value("event_pid");
|
||||
//when serie changed or deleted we need to remove all linked events
|
||||
if (($status == "deleted" || $status == "updated") && $type!=""){
|
||||
$scheduler->sql->query("DELETE FROM events_rec WHERE event_pid='".$scheduler->sql->escape($action->get_id())."'");
|
||||
}
|
||||
if ($status == "deleted" && $pid !=0){
|
||||
$scheduler->sql->query("UPDATE events_rec SET rec_type='none' WHERE event_id='".$scheduler->sql->escape($action->get_id())."'");
|
||||
$action->success();
|
||||
}
|
||||
|
||||
}
|
||||
function insert_related($action){
|
||||
$status = $action->get_status();
|
||||
$type =$action->get_value("rec_type");
|
||||
|
||||
if ($status == "inserted" && $type=="none")
|
||||
$action->set_status("deleted");
|
||||
}
|
||||
|
||||
$scheduler = new schedulerConnector($res);
|
||||
//$scheduler->enable_log("log.txt",true);
|
||||
$scheduler->event->attach("beforeProcessing","delete_related");
|
||||
$scheduler->event->attach("afterProcessing","insert_related");
|
||||
$scheduler->render_table("events_rec","event_id","start_date,end_date,text,rec_type,event_pid,event_length");
|
||||
?>
|
||||
52
themes/connector/samples/scheduler/05_json.html
Normal file
52
themes/connector/samples/scheduler/05_json.html
Normal file
@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.config.prevent_cache = true;
|
||||
scheduler.config.lightbox.sections=[
|
||||
{name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
|
||||
{name:"location", height:43, type:"textarea", map_to:"details" },
|
||||
{name:"time", height:72, type:"time", map_to:"auto"}
|
||||
]
|
||||
scheduler.config.first_hour=4;
|
||||
scheduler.locale.labels.section_location="Location";
|
||||
scheduler.config.details_on_create=true;
|
||||
scheduler.config.details_on_dblclick=true;
|
||||
scheduler.init('scheduler_here',new Date(2009,10,1),"month");
|
||||
scheduler.load("05_json_connector.php?uid="+scheduler.uid(), "json");
|
||||
var dp = new dataProcessor("05_json_connector.php");
|
||||
dp.init(scheduler);
|
||||
}
|
||||
</script>
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
11
themes/connector/samples/scheduler/05_json_connector.php
Normal file
11
themes/connector/samples/scheduler/05_json_connector.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?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 JSONSchedulerConnector($res);
|
||||
$scheduler->render_table("events","event_id","start_date,end_date,event_name,details");
|
||||
?>
|
||||
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.multi_day = true;
|
||||
scheduler.config.prevent_cache = true;
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.init('scheduler_here',new Date(2010,2,1),"month");
|
||||
|
||||
|
||||
scheduler.locale.labels.section_type = "Type";
|
||||
scheduler.config.lightbox.sections = [
|
||||
{name:"description", height:200, map_to:"text", type:"textarea" , focus:true},
|
||||
{name:"type", height:21, map_to:"type", type:"select",
|
||||
options:scheduler.serverList("type")},
|
||||
{name:"time", height:72, type:"time", map_to:"auto"}
|
||||
];
|
||||
scheduler.load("06_json_connector_options.php", "json");
|
||||
|
||||
var dp = new dataProcessor("06_json_connector_options.php");
|
||||
dp.init(scheduler);
|
||||
}
|
||||
</script>
|
||||
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include ('../../codebase/scheduler_connector.php');
|
||||
include ('../config.php');
|
||||
$res=mysql_connect($mysql_server,$mysql_user,$mysql_pass);
|
||||
mysql_select_db($mysql_db);
|
||||
|
||||
$list = new JSONOptionsConnector($res);
|
||||
$list->render_table("types","typeid","typeid(value),name(label)");
|
||||
|
||||
$scheduler = new JSONSchedulerConnector($res);
|
||||
// $scheduler->enable_log("log.txt",true);
|
||||
|
||||
$scheduler->set_options("type", $list);
|
||||
$scheduler->render_table("tevents","event_id","start_date,end_date,event_name,type");
|
||||
?>
|
||||
54
themes/connector/samples/scheduler/07_array_connector.html
Normal file
54
themes/connector/samples/scheduler/07_array_connector.html
Normal file
@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<script src="../dhtmlx/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
||||
<link rel="stylesheet" href="../dhtmlx/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
html, body{
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
height:100%;
|
||||
overflow:hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
function init() {
|
||||
scheduler.config.multi_day = true;
|
||||
scheduler.config.prevent_cache = true;
|
||||
scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
||||
scheduler.init('scheduler_here',new Date(2012,4,1),"month");
|
||||
|
||||
|
||||
scheduler.locale.labels.section_type = "Type";
|
||||
scheduler.config.lightbox.sections = [
|
||||
{name:"description", height:200, map_to:"text", type:"textarea" , focus:true},
|
||||
{name:"type", height:21, map_to:"type", type:"select",
|
||||
options:scheduler.serverList("type")},
|
||||
{name:"time", height:72, type:"time", map_to:"auto"}
|
||||
];
|
||||
scheduler.load("07_array_connector.php");
|
||||
}
|
||||
</script>
|
||||
|
||||
<body onload="init();">
|
||||
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
||||
<div class="dhx_cal_navline">
|
||||
<div class="dhx_cal_prev_button"> </div>
|
||||
<div class="dhx_cal_next_button"> </div>
|
||||
<div class="dhx_cal_today_button"></div>
|
||||
<div class="dhx_cal_date"></div>
|
||||
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
||||
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
||||
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
||||
</div>
|
||||
<div class="dhx_cal_header">
|
||||
</div>
|
||||
<div class="dhx_cal_data">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
11
themes/connector/samples/scheduler/07_array_connector.php
Normal file
11
themes/connector/samples/scheduler/07_array_connector.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
include ('../../codebase/scheduler_connector.php');
|
||||
|
||||
$data = array(
|
||||
array("event_id" => 1, "start_date" => "2012-05-24 00:00", "end_date" => "2012-05-25 00:00", "event_name" => "creation time"),
|
||||
array("event_id" => 2, "start_date" => "2010-02-16", "end_date" => "2084-06-08", "event_name" => "second part")
|
||||
);
|
||||
|
||||
$scheduler = new SchedulerConnector();
|
||||
$scheduler->render_array($data,"event_id","start_date,end_date,event_name");
|
||||
?>
|
||||
28
themes/connector/samples/scheduler/index.html
Normal file
28
themes/connector/samples/scheduler/index.html
Normal file
@ -0,0 +1,28 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<style type="text/css" media="screen">
|
||||
*{
|
||||
font-family:Tahoma;
|
||||
}
|
||||
div,li{
|
||||
font-size:10pt;
|
||||
}
|
||||
div{
|
||||
padding-bottom:20px;
|
||||
}
|
||||
li{
|
||||
padding-left:50px;
|
||||
padding-bottom:10px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<h2>dhtmlxConnector for PHP :: Samples</h2>
|
||||
|
||||
<li><a href="01_basic_init.html">Basic init</a></li>
|
||||
<li><a href="02_dynamic_loading.html">Dynamic loading</a></li>
|
||||
<li><a href="03_connector_options.html">Connector options</a></li>
|
||||
<li><a href="04_recurring_events.html">Recurring events</a></li>
|
||||
<li><a href="05_json.html">JSON data loading</a></li>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user