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 |
|
---|
12 | <style type="text/css" media="screen">
|
---|
13 | html, body{
|
---|
14 | margin:0px;
|
---|
15 | padding:0px;
|
---|
16 | height:100%;
|
---|
17 | overflow:hidden;
|
---|
18 | }
|
---|
19 | .dhx_cal_navline input{
|
---|
20 | width:80px;
|
---|
21 | position:absolute;
|
---|
22 | top:1px;
|
---|
23 | font-family:Tahoma;
|
---|
24 | font-weight:8pt;
|
---|
25 | }
|
---|
26 | </style>
|
---|
27 |
|
---|
28 |
|
---|
29 | <script type="text/javascript" charset="utf-8">
|
---|
30 | function init() {
|
---|
31 | scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
---|
32 | scheduler.config.prevent_cache = true;
|
---|
33 |
|
---|
34 | scheduler.init('scheduler_here',new Date(2010,1,29),"month");
|
---|
35 | //scheduler.load("php/data.xml?uid="+scheduler.uid());
|
---|
36 | scheduler.load("php/data.ical","ical");
|
---|
37 | }
|
---|
38 |
|
---|
39 | function show(){
|
---|
40 | alert(scheduler.toICal());
|
---|
41 | }
|
---|
42 | function save(){
|
---|
43 | var form = document.forms[0];
|
---|
44 | form.elements.data.value = scheduler.toICal();
|
---|
45 | form.submit();
|
---|
46 | }
|
---|
47 | function get(){
|
---|
48 | var form = document.forms[1];
|
---|
49 | form.elements.data.value = scheduler.toICal();
|
---|
50 | form.submit();
|
---|
51 | }
|
---|
52 | </script>
|
---|
53 |
|
---|
54 | <body onload="init();">
|
---|
55 |
|
---|
56 | <form action="./php/ical_writer.php" method="post" target="hidden_frame" accept-charset="utf-8">
|
---|
57 | <input type="hidden" name="data" value="" id="data">
|
---|
58 | </form>
|
---|
59 | <iframe src='about:blank' frameborder="0" style="width:0px; height:0px;" id="hidden_frame" name="hidden_frame"></iframe>
|
---|
60 |
|
---|
61 | <form action="./php/ical_mirror.php" method="post" target="_blank" accept-charset="utf-8">
|
---|
62 | <input type="hidden" name="data" value="" id="data">
|
---|
63 | </form>
|
---|
64 |
|
---|
65 |
|
---|
66 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
67 | <div class="dhx_cal_navline">
|
---|
68 | <div class="dhx_cal_prev_button"> </div>
|
---|
69 | <div class="dhx_cal_next_button"> </div>
|
---|
70 | <div class="dhx_cal_today_button"></div>
|
---|
71 | <div class="dhx_cal_date"></div>
|
---|
72 | <input type="button" name="save" value="save" onclick="save()" style="right:300px;">
|
---|
73 | <input type="button" name="save" value="show" onclick="show()" style="right:400px;">
|
---|
74 | <input type="button" name="save" value="get" onclick="get()" style="right:500px;">
|
---|
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>
|
---|