source: branches/2.2.0.1/calendar/js/dhtmlx/samples/03_extensions/19_map_view.html @ 4001

Revision 4001, 2.6 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        <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
7       
8        <script src="../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
9        <script src="../../codebase/ext/dhtmlxscheduler_map_view.js" type="text/javascript" charset="utf-8"></script>
10       
11        <link rel="stylesheet" href="../../codebase/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
12        <link rel="stylesheet" href="../../codebase/ext/dhtmlxscheduler_ext.css" type="text/css" title="no title" charset="utf-8">
13       
14        <style type="text/css" media="screen">
15                html, body{
16                        margin:0px;
17                        padding:0px;
18                        height:100%;
19                        overflow:hidden;
20                }       
21        </style>
22
23        <script type="text/javascript" charset="utf-8">
24                function init() {
25               
26                        scheduler.config.xml_date="%Y-%m-%d %H:%i";
27                        scheduler.config.prevent_cache = true;
28                       
29                        scheduler.locale.labels.map_tab = "Map";
30                        scheduler.locale.labels.section_location = "Location";
31                       
32                        scheduler.xy.map_date_width = 180; // date column width
33                        scheduler.xy.map_description_width = 400; // description column width
34                       
35                       
36                        scheduler.config.lightbox.sections=[   
37                                { name:"description", height:50, map_to:"text", type:"textarea", focus:true },
38                                { name:"location", height:43, map_to:"event_location", type:"textarea"  },
39                                { name:"time", height:72, type:"time", map_to:"auto"}   
40                        ]
41                       
42                        scheduler.config.map_inital_zoom = 8;
43                       
44                        scheduler.init('scheduler_here',new Date(2010,8,1),"map");
45                        scheduler.load("php/events_map_view.php");
46
47                        dp = new dataProcessor("php/events_map_view.php");
48                        dp.init(scheduler);
49                                       
50                }       
51        </script>
52       
53</head>
54
55<body onload="init();" >
56        <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
57                <div class="dhx_cal_navline">
58                        <div class="dhx_cal_prev_button">&nbsp;</div>
59                        <div class="dhx_cal_next_button">&nbsp;</div>
60                        <div class="dhx_cal_today_button"></div>
61                        <div class="dhx_cal_date"></div>
62                        <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
63                        <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
64                        <div class="dhx_cal_tab" name="map_tab" style="right:280px;"></div>
65                        <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
66                </div>
67                <div class="dhx_cal_header">
68                </div>
69                <div class="dhx_cal_data">
70                </div>         
71        </div>
72</body>
Note: See TracBrowser for help on using the repository browser.