1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
---|
3 | <head>
|
---|
4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
---|
5 | <title>For demo purpose only :: &1</title>
|
---|
6 |
|
---|
7 |
|
---|
8 | <script src='../../codebase/dhtmlxscheduler.js' type="text/javascript" charset="utf-8"></script>
|
---|
9 | <script src='../../codebase/ext/dhtmlxscheduler_timeline.js' type="text/javascript" charset="utf-8"></script>
|
---|
10 | <script src='../../codebase/ext/dhtmlxscheduler_treetimeline.js' type="text/javascript" charset="utf-8"></script>
|
---|
11 |
|
---|
12 | <link rel='stylesheet' type='text/css' href='../../codebase/dhtmlxscheduler.css'>
|
---|
13 | <link rel="stylesheet" href="../../codebase/ext/dhtmlxscheduler_ext.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
---|
14 |
|
---|
15 | </head>
|
---|
16 |
|
---|
17 |
|
---|
18 | <style type="text/css" media="screen">
|
---|
19 | html, body{
|
---|
20 | margin:0px;
|
---|
21 | padding:0px;
|
---|
22 | height:100%;
|
---|
23 | overflow:hidden;
|
---|
24 | }
|
---|
25 | .one_line{
|
---|
26 | white-space:nowrap;
|
---|
27 | overflow:hidden;
|
---|
28 | padding-top:5px; padding-left:5px;
|
---|
29 | text-align:left !important;
|
---|
30 | }
|
---|
31 | </style>
|
---|
32 |
|
---|
33 | <script type="text/javascript" charset="utf-8">
|
---|
34 | function init() {
|
---|
35 |
|
---|
36 | scheduler.locale.labels.timeline_tab = "Timeline";
|
---|
37 | scheduler.locale.labels.section_custom="Section";
|
---|
38 | scheduler.config.details_on_create=true;
|
---|
39 | scheduler.config.details_on_dblclick=true;
|
---|
40 | scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
---|
41 |
|
---|
42 | //===============
|
---|
43 | //Configuration
|
---|
44 | //===============
|
---|
45 |
|
---|
46 | elements = [ // original hierarhical array to display
|
---|
47 | {key:10, label:"Web Testing Dep.", open: true, children: [
|
---|
48 | {key:20, label:"Elizabeth Taylor"},
|
---|
49 | {key:30, label:"Managers", open: true, children: [
|
---|
50 | {key:40, label:"John Williams"},
|
---|
51 | {key:50, label:"David Miller"}
|
---|
52 | ]},
|
---|
53 | {key:60, label:"Linda Brown"},
|
---|
54 | {key:70, label:"George Lucas"}
|
---|
55 | ]},
|
---|
56 | {key:80, label:"Kate Moss"},
|
---|
57 | {key:90, label:"Dian Fossey"}
|
---|
58 | ];
|
---|
59 |
|
---|
60 |
|
---|
61 | scheduler.createTimelineView({
|
---|
62 | section_autoheight: false,
|
---|
63 | name: "timeline",
|
---|
64 | x_unit: "minute",
|
---|
65 | x_date: "%H:%i",
|
---|
66 | x_step: 30,
|
---|
67 | x_size: 24,
|
---|
68 | x_start: 16,
|
---|
69 | x_length: 48,
|
---|
70 | y_unit: elements,
|
---|
71 | y_property: "section_id",
|
---|
72 | render: "tree",
|
---|
73 | folder_events_available: true,
|
---|
74 | dy:60
|
---|
75 | });
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 | //===============
|
---|
80 | //Data loading
|
---|
81 | //===============
|
---|
82 | scheduler.config.lightbox.sections=[
|
---|
83 | {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
|
---|
84 | {name:"custom", height:23, type:"timeline", options:null , map_to:"section_id" }, //type should be the same as name of the tab
|
---|
85 | {name:"time", height:72, type:"time", map_to:"auto"}
|
---|
86 | ]
|
---|
87 |
|
---|
88 | scheduler.init('scheduler_here',new Date(2009,5,30),"timeline");
|
---|
89 | scheduler.load("php/events_tree_db.php");
|
---|
90 |
|
---|
91 | var dp = new dataProcessor("php/events_tree_db.php");
|
---|
92 | dp.init(scheduler);
|
---|
93 | }
|
---|
94 |
|
---|
95 | </script>
|
---|
96 |
|
---|
97 | <body onload="init();">
|
---|
98 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
99 | <div class="dhx_cal_navline">
|
---|
100 | <div class="dhx_cal_prev_button"> </div>
|
---|
101 | <div class="dhx_cal_next_button"> </div>
|
---|
102 | <div class="dhx_cal_today_button"></div>
|
---|
103 | <div class="dhx_cal_date"></div>
|
---|
104 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
105 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
106 | <div class="dhx_cal_tab" name="timeline_tab" style="right:280px;"></div>
|
---|
107 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
108 | </div>
|
---|
109 | <div class="dhx_cal_header">
|
---|
110 | </div>
|
---|
111 | <div class="dhx_cal_data">
|
---|
112 | </div>
|
---|
113 | </div>
|
---|
114 | </body> |
---|