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></title>
|
---|
6 | </head>
|
---|
7 | <script src="../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
|
---|
8 | <script src="../../codebase/ext/dhtmlxscheduler_units.js" type="text/javascript" charset="utf-8"></script>
|
---|
9 | <link rel="stylesheet" href="../../codebase/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
|
---|
10 | <script src="../../codebase/ext/dhtmlxscheduler_collision.js" type="text/javascript" charset="utf-8"></script>
|
---|
11 |
|
---|
12 |
|
---|
13 | <style type="text/css" media="screen">
|
---|
14 | html, body{
|
---|
15 | margin:0px;
|
---|
16 | padding:0px;
|
---|
17 | height:100%;
|
---|
18 | overflow:hidden;
|
---|
19 | }
|
---|
20 | </style>
|
---|
21 |
|
---|
22 | <script type="text/javascript" charset="utf-8">
|
---|
23 | function init() {
|
---|
24 |
|
---|
25 | var sections=[
|
---|
26 | {key:1, label:"Section A"},
|
---|
27 | {key:2, label:"Section B"},
|
---|
28 | {key:3, label:"Section C"},
|
---|
29 | {key:4, label:"Section D"}
|
---|
30 | ];
|
---|
31 |
|
---|
32 | scheduler.locale.labels.unit_tab = "Unit"
|
---|
33 | scheduler.locale.labels.section_custom="Section";
|
---|
34 | scheduler.config.details_on_create=true;
|
---|
35 | scheduler.config.details_on_dblclick=true;
|
---|
36 | scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
---|
37 |
|
---|
38 | scheduler.config.lightbox.sections=[
|
---|
39 | {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
|
---|
40 | {name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
|
---|
41 | {name:"time", height:72, type:"time", map_to:"auto"}
|
---|
42 | ]
|
---|
43 |
|
---|
44 | scheduler.createUnitsView({
|
---|
45 | name:"unit",
|
---|
46 | property:"section_id",
|
---|
47 | list:sections
|
---|
48 | });
|
---|
49 | scheduler.config.multi_day = true;
|
---|
50 |
|
---|
51 | scheduler.init('scheduler_here',new Date(2009,5,30),"unit");
|
---|
52 | scheduler.load("../common/units.xml");
|
---|
53 | }
|
---|
54 | </script>
|
---|
55 |
|
---|
56 | <body onload="init();">
|
---|
57 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
58 | <div class="dhx_cal_navline">
|
---|
59 | <div class="dhx_cal_prev_button"> </div>
|
---|
60 | <div class="dhx_cal_next_button"> </div>
|
---|
61 | <div class="dhx_cal_today_button"></div>
|
---|
62 | <div class="dhx_cal_date"></div>
|
---|
63 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
64 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
65 | <div class="dhx_cal_tab" name="unit_tab" style="right:280px;"></div>
|
---|
66 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
67 | </div>
|
---|
68 | <div class="dhx_cal_header">
|
---|
69 | </div>
|
---|
70 | <div class="dhx_cal_data">
|
---|
71 | </div>
|
---|
72 | </div>
|
---|
73 | </body> |
---|