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,0,20),"month");
|
---|
35 | scheduler.load("php/data.xml");
|
---|
36 | }
|
---|
37 |
|
---|
38 | function show(){
|
---|
39 | alert(scheduler.toXML());
|
---|
40 | }
|
---|
41 | function save(){
|
---|
42 | var form = document.forms[0];
|
---|
43 | form.elements.data.value = scheduler.toXML();
|
---|
44 | form.submit();
|
---|
45 | }
|
---|
46 | </script>
|
---|
47 |
|
---|
48 | <body onload="init();">
|
---|
49 | <form action="./php/xml_writer.php" method="post" target="hidden_frame" accept-charset="utf-8">
|
---|
50 | <input type="hidden" name="data" value="" id="data">
|
---|
51 | </form>
|
---|
52 | <iframe src='about:blank' frameborder="0" style="width:0px; height:0px;" id="hidden_frame" name="hidden_frame"></iframe>
|
---|
53 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
54 | <div class="dhx_cal_navline">
|
---|
55 | <div class="dhx_cal_prev_button"> </div>
|
---|
56 | <div class="dhx_cal_next_button"> </div>
|
---|
57 | <div class="dhx_cal_today_button"></div>
|
---|
58 | <div class="dhx_cal_date"></div>
|
---|
59 | <input type="button" name="save" value="save" onclick="save()" style="right:300px;">
|
---|
60 | <input type="button" name="save" value="show" onclick="show()" style="right:400px;">
|
---|
61 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
62 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
63 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
64 | </div>
|
---|
65 | <div class="dhx_cal_header">
|
---|
66 | </div>
|
---|
67 | <div class="dhx_cal_data">
|
---|
68 | </div>
|
---|
69 | </div>
|
---|
70 | </body>
|
---|