source: branches/2.2.0.1/calendar/js/dhtmlx/samples/02_customization/13_single_checkbox_section.html @ 4001

Revision 4001, 2.3 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1615 - Componente novo para agenda......................................

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
7        <script src="../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
8        <link rel="stylesheet" href="../../codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
9        <link rel="stylesheet" href="../../codebase/ext/dhtmlxscheduler_ext.css" type="text/css" media="screen" title="no title" charset="utf-8">
10
11        <script src="../../codebase/ext/dhtmlxscheduler_editors.js" type="text/javascript" charset="utf-8"></script>
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                        scheduler.config.multi_day = true;
25                       
26                        scheduler.config.event_duration = 30;
27                        scheduler.config.auto_end_date = true;
28                        scheduler.config.details_on_create=true;
29                        scheduler.config.details_on_dblclick=true;
30                       
31                       
32                        scheduler.locale.labels.section_checkme = "I'm going to participate";   
33                       
34                        scheduler.config.lightbox.sections=[   
35                                { name:"description", height:50, map_to:"text", type:"textarea", focus:true },
36                                { name:"checkme", map_to:"single_checkbox", type:"checkbox", checked_value: "registrable", unchecked_value: "unchecked" },
37                                { name:"time", height:72, type:"time", map_to:"auto"}   
38                        ];
39                       
40                        scheduler.config.xml_date="%Y-%m-%d %H:%i";
41                        scheduler.init('scheduler_here',null,"week");
42                        scheduler.load("../common/events.xml");
43                       
44                }
45        </script>
46
47</head>
48
49<body onload="init();">
50        <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
51                <div class="dhx_cal_navline">
52                        <div class="dhx_cal_prev_button">&nbsp;</div>
53                        <div class="dhx_cal_next_button">&nbsp;</div>
54                        <div class="dhx_cal_today_button"></div>
55                        <div class="dhx_cal_date"></div>
56                        <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
57                        <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
58                        <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
59                </div>
60                <div class="dhx_cal_header">
61                </div>
62                <div class="dhx_cal_data">
63                </div>
64        </div>
65</body>
Note: See TracBrowser for help on using the repository browser.