~ubuntu-branches/ubuntu/quantal/openerp6.1/quantal

« back to all changes in this revision

Viewing changes to openerp/addons/web_calendar/static/lib/dhtmlxScheduler/samples/06_timeline/07_pdf.html

  • Committer: Package Import Robot
  • Author(s): Yolanda Robla
  • Date: 2012-09-20 15:29:00 UTC
  • Revision ID: package-import@ubuntu.com-20120920152900-woyy3yww8z6acmsk
Tags: upstream-6.1-1+dfsg
ImportĀ upstreamĀ versionĀ 6.1-1+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>For demo purpose only :: &1</title>
 
6
</head>
 
7
        <script src='../../codebase/dhtmlxscheduler.js' type="text/javascript" charset="utf-8"></script>
 
8
        <script src='../../codebase/ext/dhtmlxscheduler_pdf.js' type="text/javascript" charset="utf-8"></script>
 
9
        <script src='../../codebase/ext/dhtmlxscheduler_timeline.js' type="text/javascript" charset="utf-8"></script>
 
10
        
 
11
        <link rel='stylesheet' type='text/css' href='../../codebase/dhtmlxscheduler.css'>
 
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
        .one_line{
 
21
                white-space:nowrap;
 
22
                overflow:hidden;
 
23
                padding-top:5px; padding-left:5px;
 
24
                text-align:left !important;
 
25
        }
 
26
</style>
 
27
 
 
28
<script type="text/javascript" charset="utf-8">
 
29
        function init() {
 
30
 
 
31
                scheduler.locale.labels.timeline_tab = "Timeline"
 
32
                scheduler.locale.labels.section_custom="Section";
 
33
                scheduler.config.details_on_create=true;
 
34
                scheduler.config.details_on_dblclick=true;
 
35
                scheduler.config.xml_date="%Y-%m-%d %H:%i";
 
36
                
 
37
                //===============
 
38
                //Configuration
 
39
                //===============
 
40
                var sections=[
 
41
                        {key:1, label:"James Smith"},
 
42
                        {key:2, label:"John Williams"},
 
43
                        {key:3, label:"David Miller"},
 
44
                        {key:4, label:"Linda Brown"}
 
45
                ];
 
46
                
 
47
                scheduler.createTimelineView({
 
48
                        name:   "timeline",
 
49
                        x_unit: "minute",
 
50
                        x_date: "%H:%i",
 
51
                        x_step: 30,
 
52
                        x_size: 24,
 
53
                        x_start: 16,
 
54
                        x_length:       48,
 
55
                        y_unit: sections,
 
56
                        y_property:     "section_id",
 
57
                        render:"bar"
 
58
                });
 
59
                
 
60
 
 
61
                
 
62
                
 
63
                //===============
 
64
                //Data loading
 
65
                //===============
 
66
                scheduler.config.lightbox.sections=[    
 
67
                        {name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
 
68
                        {name:"custom", height:23, type:"select", options:sections, map_to:"section_id" },
 
69
                        {name:"time", height:72, type:"time", map_to:"auto"}
 
70
                ]
 
71
                
 
72
                scheduler.init('scheduler_here',new Date(2009,5,30),"timeline");
 
73
                scheduler.parse([
 
74
                        { start_date: "2009-06-30 09:00", end_date: "2009-06-30 12:00", text:"Task A-12458", section_id:1},
 
75
                        { start_date: "2009-06-30 10:00", end_date: "2009-06-30 16:00", text:"Task A-89411", section_id:1},
 
76
                        { start_date: "2009-06-30 10:00", end_date: "2009-06-30 14:00", text:"Task A-64168", section_id:1},
 
77
                        { start_date: "2009-06-30 16:00", end_date: "2009-06-30 17:00", text:"Task A-46598", section_id:1},
 
78
                        
 
79
                        { start_date: "2009-06-30 12:00", end_date: "2009-06-30 20:00", text:"Task B-48865", section_id:2},
 
80
                        { start_date: "2009-06-30 14:00", end_date: "2009-06-30 16:00", text:"Task B-44864", section_id:2},
 
81
                        { start_date: "2009-06-30 16:30", end_date: "2009-06-30 18:00", text:"Task B-46558", section_id:2},
 
82
                        { start_date: "2009-06-30 18:30", end_date: "2009-06-30 20:00", text:"Task B-45564", section_id:2},
 
83
                        
 
84
                        { start_date: "2009-06-30 08:00", end_date: "2009-06-30 12:00", text:"Task C-32421", section_id:3},
 
85
                        { start_date: "2009-06-30 14:30", end_date: "2009-06-30 16:45", text:"Task C-14244", section_id:3},
 
86
                        
 
87
                        { start_date: "2009-06-30 09:20", end_date: "2009-06-30 12:20", text:"Task D-52688", section_id:4},
 
88
                        { start_date: "2009-06-30 11:40", end_date: "2009-06-30 16:30", text:"Task D-46588", section_id:4},
 
89
                        { start_date: "2009-06-30 12:00", end_date: "2009-06-30 18:00", text:"Task D-12458", section_id:4}
 
90
                ],"json");
 
91
        }
 
92
</script>
 
93
 
 
94
<body onload="init();">
 
95
        <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
 
96
                <div class="dhx_cal_navline">
 
97
                        <div class="dhx_cal_prev_button">&nbsp;</div>
 
98
                        <div class="dhx_cal_next_button">&nbsp;</div>
 
99
                        <div class="dhx_cal_today_button"></div>
 
100
                        <div class="dhx_cal_date"></div>
 
101
                        
 
102
                        <input type="button" name="print" value="print" onclick="scheduler.toPDF('http://dhtmlxscheduler.appspot.com/export/pdf')" style='position:absolute; right:472px; top:0px;'>
 
103
 
 
104
 
 
105
                        <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
 
106
                        <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
 
107
                        <div class="dhx_cal_tab" name="timeline_tab" style="right:280px;"></div>
 
108
                        <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
 
109
                </div>
 
110
                <div class="dhx_cal_header">
 
111
                </div>
 
112
                <div class="dhx_cal_data">
 
113
                </div>          
 
114
        </div>
 
115
</body>
 
 
b'\\ No newline at end of file'