source: branches/2.2.0.1/calendar/js/dhtmlx/samples/04_export/05_serialize_recurring.html @ 4001

Revision 4001, 3.1 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        <script src="../../codebase/ext/dhtmlxscheduler_serialize.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        <script src="../../codebase/ext/dhtmlxscheduler_recurring.js" type="text/javascript" charset="utf-8"></script>
12        <link rel="stylesheet" href="../../codebase/ext/dhtmlxscheduler_recurring.css" type="text/css" media="screen" title="no title" charset="utf-8">
13       
14
15       
16<style type="text/css" media="screen">
17        html, body{
18                margin:0px;
19                padding:0px;
20                height:100%;
21                overflow:hidden;
22        }       
23        .dhx_cal_navline input{
24                width:80px;
25                position:absolute;
26                top:1px;
27                font-family:Tahoma;
28                font-weight:8pt;
29        }
30</style>
31
32
33<script type="text/javascript" charset="utf-8">
34   function init() {
35      scheduler.config.xml_date="%Y-%m-%d %H:%i";
36      scheduler.config.prevent_cache = true;
37     
38      scheduler.init('scheduler_here',new Date(2010,0,20),"month");
39      scheduler.data_attributes = function(){
40         var empty = function(a){ return a||""; }
41         return [["id"],
42               ["text"],
43               ["start_date",scheduler.templates.xml_format],
44               ["end_date",scheduler.templates.xml_format],
45               ["rec_type",empty],
46               ["event_length",empty],
47               ["event_pid",empty]];
48      }
49      scheduler.load("php/data_r.xml");
50   }
51   
52   function show(){
53      alert(scheduler.toXML());
54   }
55   function save(){
56      var form = document.getElementById("xml_form");
57      form.elements.data.value = scheduler.toXML();
58      form.submit();
59   }
60</script>
61
62<body onload="init();">
63        <form action="./php/xml_writer_r.php" id="xml_form" method="post" target="hidden_frame" accept-charset="utf-8">
64                <input type="hidden" name="data" value="" id="data">
65        </form>
66        <iframe src='about:blank' frameborder="0" style="width:0px; height:0px;" id="hidden_frame" name="hidden_frame"></iframe>
67        <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
68                <div class="dhx_cal_navline">
69                        <div class="dhx_cal_prev_button">&nbsp;</div>
70                        <div class="dhx_cal_next_button">&nbsp;</div>
71                        <div class="dhx_cal_today_button"></div>
72                        <div class="dhx_cal_date"></div>
73                        <input type="button" name="save" value="save" onclick="save()" style="right:300px;">
74                        <input type="button" name="save" value="show" onclick="show()" style="right:400px;">
75                        <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
76                        <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></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.