[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 | <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.config.details_on_create=true;
|
---|
| 26 |
|
---|
| 27 | scheduler.attachEvent("onEventSave",function(id,data){
|
---|
| 28 | if (!data.text) {
|
---|
| 29 | alert("Text must not be empty");
|
---|
| 30 | return false;
|
---|
| 31 | }
|
---|
| 32 | if (data.text.length<20) {
|
---|
| 33 | alert("Text too small");
|
---|
| 34 | return false;
|
---|
| 35 | }
|
---|
| 36 | return true;
|
---|
| 37 | })
|
---|
| 38 |
|
---|
| 39 | scheduler.init('scheduler_here',new Date(2010,0,6),"week");
|
---|
| 40 | scheduler.addEvent({
|
---|
| 41 | start_date:new Date(2010,0,6,2,0),
|
---|
| 42 | end_date:new Date(2010,0,6,6,0),
|
---|
| 43 | text:"Try to set an empty text for this or newly created event"
|
---|
| 44 | });
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | }
|
---|
| 48 | </script>
|
---|
| 49 |
|
---|
| 50 | <body onload="init();">
|
---|
| 51 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
| 52 | <div class="dhx_cal_navline">
|
---|
| 53 | <div class="dhx_cal_prev_button"> </div>
|
---|
| 54 | <div class="dhx_cal_next_button"> </div>
|
---|
| 55 | <div class="dhx_cal_today_button"></div>
|
---|
| 56 | <div class="dhx_cal_date"></div>
|
---|
| 57 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
| 58 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
| 59 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
| 60 | </div>
|
---|
| 61 | <div class="dhx_cal_header">
|
---|
| 62 | </div>
|
---|
| 63 | <div class="dhx_cal_data">
|
---|
| 64 | </div>
|
---|
| 65 | </div>
|
---|
| 66 | </body> |
---|