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 | </head>
|
---|
7 | <script src='../../codebase/dhtmlxscheduler.js' type="text/javascript" charset="utf-8"></script>
|
---|
8 | <script src='../../codebase/ext/dhtmlxscheduler_timeline.js' type="text/javascript" charset="utf-8"></script>
|
---|
9 |
|
---|
10 | <link rel='STYLESHEET' type='text/css' href='../../codebase/dhtmlxscheduler.css'>
|
---|
11 | <link rel="stylesheet" href="../../codebase/ext/dhtmlxscheduler_ext.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 |
|
---|
16 |
|
---|
17 | <style type="text/css" media="screen">
|
---|
18 | html, body{
|
---|
19 | margin:0px;
|
---|
20 | padding:0px;
|
---|
21 | height:100%;
|
---|
22 | overflow:hidden;
|
---|
23 | }
|
---|
24 | .one_line{
|
---|
25 | white-space:nowrap;
|
---|
26 | overflow:hidden;
|
---|
27 | padding-top:5px; padding-left:5px;
|
---|
28 | text-align:left !important;
|
---|
29 | }
|
---|
30 | </style>
|
---|
31 |
|
---|
32 | <script type="text/javascript" charset="utf-8">
|
---|
33 | function init() {
|
---|
34 |
|
---|
35 | scheduler.locale.labels.timeline_tab = "Timeline"
|
---|
36 | scheduler.locale.labels.section_custom="Section";
|
---|
37 | scheduler.config.details_on_create=true;
|
---|
38 | scheduler.config.details_on_dblclick=true;
|
---|
39 | scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
---|
40 |
|
---|
41 | scheduler.config.default_date = "%j %M %Y (#%W)";
|
---|
42 |
|
---|
43 |
|
---|
44 | //===============
|
---|
45 | //Configuration
|
---|
46 | //===============
|
---|
47 | var sections=[
|
---|
48 | {key:1, label:"James Smith"},
|
---|
49 | {key:2, label:"John Williams"},
|
---|
50 | {key:3, label:"David Miller"},
|
---|
51 | {key:4, label:"Linda Brown"}
|
---|
52 | ];
|
---|
53 |
|
---|
54 | scheduler.createTimelineView({
|
---|
55 | name: "timeline",
|
---|
56 | x_unit: "week",
|
---|
57 | x_date: "Week #%W",
|
---|
58 | x_step: 1,
|
---|
59 | x_size: 12,
|
---|
60 | x_start: 0,
|
---|
61 | x_length: 12,
|
---|
62 | y_unit: sections,
|
---|
63 | y_property: "section_id",
|
---|
64 | render:"bar"
|
---|
65 | });
|
---|
66 |
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 | //===============
|
---|
71 | //Data loading
|
---|
72 | //===============
|
---|
73 | scheduler.config.lightbox.sections=[
|
---|
74 | {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
|
---|
75 | {name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
|
---|
76 | {name:"time", height:72, type:"time", map_to:"auto"}
|
---|
77 | ]
|
---|
78 |
|
---|
79 | scheduler.init('scheduler_here',new Date(2009,5,30),"timeline");
|
---|
80 | scheduler.parse([
|
---|
81 | { start_date: "2009-06-30 09:00", end_date: "2009-07-15 12:00", text:"Task A-12458", section_id:1},
|
---|
82 | { start_date: "2009-07-15 10:00", end_date: "2009-08-30 16:00", text:"Task A-89411", section_id:1},
|
---|
83 | { start_date: "2009-07-30 10:00", end_date: "2009-08-24 14:00", text:"Task A-64168", section_id:1},
|
---|
84 | { start_date: "2009-09-01 16:00", end_date: "2009-10-30 17:00", text:"Task A-46598", section_id:1},
|
---|
85 |
|
---|
86 | { start_date: "2009-06-30 12:00", end_date: "2009-07-12 20:00", text:"Task B-48865", section_id:2},
|
---|
87 | { start_date: "2009-07-02 14:00", end_date: "2009-07-18 16:00", text:"Task B-44864", section_id:2},
|
---|
88 | { start_date: "2009-07-27 16:30", end_date: "2009-08-24 18:00", text:"Task B-46558", section_id:2},
|
---|
89 | { start_date: "2009-08-07 18:30", end_date: "2009-09-27 20:00", text:"Task B-45564", section_id:2},
|
---|
90 |
|
---|
91 | { start_date: "2009-06-30 08:00", end_date: "2009-08-01 12:00", text:"Task C-32421", section_id:3},
|
---|
92 | { start_date: "2009-08-12 14:30", end_date: "2009-09-28 16:45", text:"Task C-14244", section_id:3},
|
---|
93 |
|
---|
94 | { start_date: "2009-06-30 09:20", end_date: "2009-09-30 12:20", text:"Task D-52688", section_id:4},
|
---|
95 | { start_date: "2009-06-30 11:40", end_date: "2009-07-15 16:30", text:"Task D-46588", section_id:4},
|
---|
96 | { start_date: "2009-08-10 12:00", end_date: "2009-09-18 18:00", text:"Task D-12458", section_id:4}
|
---|
97 | ],"json");
|
---|
98 | }
|
---|
99 | </script>
|
---|
100 |
|
---|
101 | <body onload="init();">
|
---|
102 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
103 | <div class="dhx_cal_navline">
|
---|
104 | <div class="dhx_cal_prev_button"> </div>
|
---|
105 | <div class="dhx_cal_next_button"> </div>
|
---|
106 | <div class="dhx_cal_today_button"></div>
|
---|
107 | <div class="dhx_cal_date"></div>
|
---|
108 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
109 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
110 | <div class="dhx_cal_tab" name="timeline_tab" style="right:280px;"></div>
|
---|
111 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
112 | </div>
|
---|
113 | <div class="dhx_cal_header">
|
---|
114 | </div>
|
---|
115 | <div class="dhx_cal_data">
|
---|
116 | </div>
|
---|
117 | </div>
|
---|
118 | </body> |
---|