source: sandbox/2.3-MailArchiver/calendar/js/dhtmlx/samples/03_extensions/18_scroll_units.html @ 6779

Revision 6779, 2.8 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

Line 
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
11       
12<style type="text/css" media="screen">
13        html, body{
14                margin:0px;
15                padding:0px;
16                height:100%;
17                overflow:hidden;
18        }       
19</style>
20
21<script type="text/javascript" charset="utf-8">
22        function init() {
23
24                var sections=[
25                        {key:1, label:"Section 01"},
26                        {key:2, label:"Section 02"},
27                        {key:3, label:"Section 03"},
28                        {key:4, label:"Section 04"},
29                        {key:5, label:"Section 05"},
30                        {key:6, label:"Section 06"},
31                        {key:7, label:"Section 07"},
32                        {key:8, label:"Section 08"},
33                        {key:9, label:"Section 09"},
34                        {key:10, label:"Section 10"},
35                        {key:11, label:"Section 11"},
36                        {key:12, label:"Section 12"},
37                        {key:13, label:"Section 13"},
38                        {key:14, label:"Section 14"},
39                        {key:15, label:"Section 15"}
40                ];
41               
42                scheduler.locale.labels.unit_tab = "Unit"
43                scheduler.locale.labels.section_custom="Section";
44                scheduler.config.details_on_create=true;
45                scheduler.config.details_on_dblclick=true;
46                scheduler.config.xml_date="%Y-%m-%d %H:%i";
47                scheduler.config.lightbox.sections=[   
48                        {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
49                        {name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
50                        {name:"time", height:72, type:"time", map_to:"auto"}
51                ]
52               
53                scheduler.createUnitsView({
54                        name:"unit",
55                        property:"section_id",
56                        list:sections,
57                        size:10,
58                        step:5
59                });
60                scheduler.config.multi_day = true;
61               
62                scheduler.init('scheduler_here',new Date(2009,5,30),"unit");
63                scheduler.load("../common/units.xml");
64        }
65</script>
66
67<body onload="init();">
68        <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
69                <div class="dhx_cal_navline">
70                        <div class="dhx_cal_prev_button">&nbsp;</div>
71                        <div class="dhx_cal_next_button">&nbsp;</div>
72                        <div class="dhx_cal_today_button"></div>
73                        <div class="dhx_cal_date"></div>
74                        <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
75                        <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
76                        <div class="dhx_cal_tab" name="unit_tab" style="right:280px;"></div>
77                        <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
78                </div>
79                <div class="dhx_cal_header">
80                </div>
81                <div class="dhx_cal_data">
82                </div>         
83        </div>
84</body>
Note: See TracBrowser for help on using the repository browser.