1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
| <html>
<head>
...
<style type="text/css">
html, body{
margin:0px;
padding:0px;
height:100%;
overflow:hidden;
}
</style>
</head>
<body>
...
<script src="/test/js/dhtmlxscheduler.js" type="text/javascript"></script>
<script src="/test/js/connector.js" type="text/javascript"></script>
<link rel="stylesheet" href="/test/style/dhtmlxscheduler.css" type="text/css">
<div id="scheduler_here" class="dhx_cal_container" style="width:100%; height:100%;">
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button"> </div>
<div class="dhx_cal_next_button"> </div>
<div class="dhx_cal_today_button"></div>
<div class="dhx_cal_date"></div>
<div class="dhx_cal_tab" name="day_tab" style="right:204px;"></div>
<div class="dhx_cal_tab" name="week_tab" style="right:140px;"></div>
<div class="dhx_cal_tab" name="month_tab" style="right:76px;"></div>
</div>
<div class="dhx_cal_header">
</div>
<div class="dhx_cal_data">
</div>
<script type="text/javascript">window.onload=function(){
//Config
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.first_hour=8;
scheduler.config.last_hour=20;
scheduler.config.start_on_monday=true;
//Création des paramètres pour l'enregistrement des données
scheduler.locale.labels.section_site = "Site";
scheduler.locale.labels.section_technicien= "Technicien";
scheduler.config.lightbox.sections=[
{name:"site", height:21, type:"select", map_to:"rec_type", options:[
{key:"", label:"Site 1"},
{key:"day", label:"Site 2"},
{key:"week", label:"Site 3"},
{key:"month", label:"Site 4"}
]},
{name:"time", height:72, type:"time", map_to:"auto"},
{name:"technicien", height:21, type:"select", map_to:"rec_type", options:[
{key:"", label:"Technicien 1"},
{key:"day", label:"Technicien 2"},
{key:"week", label:"Technicien 3"},
{key:"month", label:"Technicien 4"}
]} ]
//Affichage du nom de l'intervention sur le calendrier
scheduler.locale.labels.section_location="Location";
scheduler.config.details_on_create=true;
scheduler.config.details_on_dblclick=false;
//Initialisation du calendrier
scheduler.init('scheduler_here',new Date(),"week");
scheduler.setLoadMode("month");
//Affichage
var dp = new dataProcessor();
dp.init(scheduler);
}</script>
</div>
</body>
</html> |
Partager