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