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 | <link rel="stylesheet" href="../../codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
|
---|
9 |
|
---|
10 |
|
---|
11 | <style type="text/css" media="screen">
|
---|
12 | html, body{
|
---|
13 | margin:0px;
|
---|
14 | padding:0px;
|
---|
15 | height:100%;
|
---|
16 | overflow:hidden;
|
---|
17 | }
|
---|
18 | </style>
|
---|
19 |
|
---|
20 | <script type="text/javascript" charset="utf-8">
|
---|
21 | function init() {
|
---|
22 |
|
---|
23 | scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
---|
24 | scheduler.config.details_on_dblclick=true;
|
---|
25 | scheduler.init('scheduler_here',null,"week");
|
---|
26 | scheduler.load("../common/events.xml");
|
---|
27 |
|
---|
28 | scheduler.form_blocks["my_editor"]={
|
---|
29 | render:function(sns){
|
---|
30 | return "<div class='dhx_cal_ltext' style='height:60px;'>Text <input type='text'><br/>Details <input type='text'></div>";
|
---|
31 | },
|
---|
32 | set_value:function(node,value,ev){
|
---|
33 | node.childNodes[1].value=value||"";
|
---|
34 | node.childNodes[4].value=ev.details||"";
|
---|
35 | },
|
---|
36 | get_value:function(node,ev){
|
---|
37 | ev.location = node.childNodes[4].value;
|
---|
38 | return node.childNodes[1].value;
|
---|
39 | },
|
---|
40 | focus:function(node){
|
---|
41 | var a=node.childNodes[1]; a.select(); a.focus();
|
---|
42 | }
|
---|
43 | }
|
---|
44 | scheduler.config.lightbox.sections=[
|
---|
45 | { name:"description", height:200, map_to:"text", type:"my_editor" , focus:true},
|
---|
46 | { name:"time", height:72, type:"time", map_to:"auto"}
|
---|
47 | ]
|
---|
48 |
|
---|
49 | }
|
---|
50 | </script>
|
---|
51 |
|
---|
52 | <body onload="init();">
|
---|
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 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
60 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
61 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
62 | </div>
|
---|
63 | <div class="dhx_cal_header">
|
---|
64 | </div>
|
---|
65 | <div class="dhx_cal_data">
|
---|
66 | </div>
|
---|
67 | </div>
|
---|
68 | </body> |
---|