[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" 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.xy.editor_width = 0; //disable editor's auto-size
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | scheduler.locale.labels.workweek_tab = "W-Week"
|
---|
| 28 | scheduler.locale.labels.decade_tab = "Decade"
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 |
|
---|
| 33 | scheduler.attachEvent("onTemplatesReady",function(){
|
---|
| 34 | //work week
|
---|
| 35 | scheduler.date.workweek_start = scheduler.date.week_start;
|
---|
| 36 | scheduler.templates.workweek_date = scheduler.templates.week_date;
|
---|
| 37 | scheduler.templates.workweek_scale_date = scheduler.templates.week_scale_date;
|
---|
| 38 | scheduler.date.add_workweek=function(date,inc){ return scheduler.date.add(date,inc*7,"day"); }
|
---|
| 39 | scheduler.date.get_workweek_end=function(date){ return scheduler.date.add(date,5,"day"); }
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 | //decade
|
---|
| 44 | scheduler.date.decade_start = function(date){
|
---|
| 45 | var ndate = new Date(date.valueOf());
|
---|
| 46 | ndate.setDate(Math.floor(date.getDate()/10)*10+1);
|
---|
| 47 | return this.date_part(ndate);
|
---|
| 48 | }
|
---|
| 49 | scheduler.templates.decade_date = scheduler.templates.week_date;
|
---|
| 50 | scheduler.templates.decade_scale_date = scheduler.templates.week_scale_date;
|
---|
| 51 | scheduler.date.add_decade=function(date,inc){ return scheduler.date.add(date,inc*10,"day"); }
|
---|
| 52 | });
|
---|
| 53 |
|
---|
| 54 | scheduler.init('scheduler_here',new Date(2010,0,10),"workweek");
|
---|
| 55 | scheduler.load("../common/events.xml");
|
---|
| 56 |
|
---|
| 57 |
|
---|
| 58 | }
|
---|
| 59 | </script>
|
---|
| 60 |
|
---|
| 61 | <body onload="init();">
|
---|
| 62 | <div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'>
|
---|
| 63 | <div class="dhx_cal_navline">
|
---|
| 64 | <div class="dhx_cal_prev_button"> </div>
|
---|
| 65 | <div class="dhx_cal_next_button"> </div>
|
---|
| 66 | <div class="dhx_cal_today_button"></div>
|
---|
| 67 | <div class="dhx_cal_date"></div>
|
---|
| 68 | <div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
|
---|
| 69 | <div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
|
---|
| 70 | <div class="dhx_cal_tab" name="workweek_tab" style="right:280px;"></div>
|
---|
| 71 | <div class="dhx_cal_tab" name="decade_tab" style="right:345px;"></div>
|
---|
| 72 | <div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
|
---|
| 73 | </div>
|
---|
| 74 | <div class="dhx_cal_header">
|
---|
| 75 | </div>
|
---|
| 76 | <div class="dhx_cal_data">
|
---|
| 77 | </div>
|
---|
| 78 | </div>
|
---|
| 79 | </body> |
---|