source: branches/2.2.0.1/calendar/js/dhtmlx/samples/02_customization/shared_events/combined.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</head>
7        <script src="../../../codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
8        <link rel="stylesheet" href="../../../codebase/dhtmlxscheduler.css" type="text/css" title="no title" charset="utf-8">
9
10       
11<style type="text/css" media="screen">
12        html, body{
13                margin:0px;
14                padding:0px;
15                height:100%;
16                overflow:hidden;
17        }       
18    /*event in day or week view*/
19        .dhx_cal_event.user_2 div{
20                background-color:#FF8040 !important;
21                color:white !important;
22        }
23    /*multi-day event in month view*/
24        .dhx_cal_event_line.user_2{
25                background-color:#FF8040 !important;
26                color:white !important;
27        }
28    /*event with fixed time, in month view*/
29        .dhx_cal_event_clear.user_2{
30                color:#FF8040 !important;
31        }       
32</style>
33
34
35<script type="text/javascript" charset="utf-8">
36        function init() {
37                scheduler.config.xml_date="%Y-%m-%d %H:%i";
38                scheduler.config.readonly = true;
39                scheduler.config.first_hour=6;
40                scheduler.config.prevent_cache = true;
41               
42                scheduler.init('scheduler_here',new Date(2009,5,1),"month");
43               
44                scheduler.load("events_shared.php?user=1");
45                scheduler.load("events_shared.php?user=2");
46               
47                //coloring for different users
48                scheduler.templates.event_bar_text=scheduler.templates.event_text=function(start,end,event){
49                        return "["+event.userId+"] "+event.text;
50                }
51                scheduler.templates.event_class=function(start,end,event){
52                   if (event.userId==2)
53                  return "user_2";
54                }
55
56
57        }
58</script>
59
60<body onload="init();">
61        <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
62                <div class="dhx_cal_navline">
63                        <div class="dhx_cal_prev_button">&nbsp;</div>
64                        <div class="dhx_cal_next_button">&nbsp;</div>
65                        <div class="dhx_cal_today_button"></div>
66                        <div class="dhx_cal_date"></div>
67                        <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
68                        <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
69                        <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
70                </div>
71                <div class="dhx_cal_header">
72                </div>
73                <div class="dhx_cal_data">
74                </div>         
75        </div>
76</body>
Note: See TracBrowser for help on using the repository browser.