[6779] | 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 | /* Important !!! */
|
---|
| 19 | .dhx_scale_hour{
|
---|
| 20 | line-height:normal;
|
---|
| 21 | }
|
---|
| 22 | </style>
|
---|
| 23 |
|
---|
| 24 | <script type="text/javascript" charset="utf-8">
|
---|
| 25 | function init() {
|
---|
| 26 |
|
---|
| 27 | var step = 15;
|
---|
| 28 | var format = scheduler.date.date_to_str("%H:%i");
|
---|
| 29 |
|
---|
| 30 | scheduler.config.hour_size_px=(60/step)*21;
|
---|
| 31 | scheduler.templates.hour_scale = function(date){
|
---|
| 32 | html="";
|
---|
| 33 | for (var i=0; i<60/step; i++){
|
---|
| 34 | html+="<div style='height:21px;line-height:21px;'>"+format(date)+"</div>";
|
---|
| 35 | date = scheduler.date.add(date,step,"minute");
|
---|
| 36 | }
|
---|
| 37 | return html;
|
---|
| 38 | }
|
---|
| 39 |
|
---|
| 40 | scheduler.config.xml_date="%Y-%m-%d %H:%i";
|
---|
| 41 | scheduler.init('scheduler_here',new Date(2010,0,10),"week");
|
---|
| 42 | scheduler.load("../common/events.xml");
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | }
|
---|
| 46 | </script>
|
---|
| 47 |
|
---|
| 48 | <body onload="init();">
|
---|
| 49 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
| 50 | <div class="dhx_cal_navline">
|
---|
| 51 | <div class="dhx_cal_prev_button"> </div>
|
---|
| 52 | <div class="dhx_cal_next_button"> </div>
|
---|
| 53 | <div class="dhx_cal_today_button"></div>
|
---|
| 54 | <div class="dhx_cal_date"></div>
|
---|
| 55 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
| 56 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
| 57 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
| 58 | </div>
|
---|
| 59 | <div class="dhx_cal_header">
|
---|
| 60 | </div>
|
---|
| 61 | <div class="dhx_cal_data">
|
---|
| 62 | </div>
|
---|
| 63 | </div>
|
---|
| 64 | </body> |
---|