Hi Sir,
I did as you suggested, but it is not working.
Here is the code attached.
<!doctype html>
Outsource ACE
<script src="codebase/dhtmlxscheduler.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="codebase/dhtmlxscheduler.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="codebase/ext/dhtmlxscheduler_pdf.js" type="text/javascript" charset="utf-8"></script>
<script src="codebase/ext/dhtmlxscheduler_multisource.js"></script>
<script src="codebase/ext/dhtmlxscheduler_mvc.js"></script>
<script src="codebase/ext/dhtmlxscheduler_multisection.js"></script>
<style type="text/css" media="screen">
html, body{
margin:0;
padding:0;
height:100%;
overflow:hidden;
}
.dhx_cal_event.past_event div{
background-color:purple !important;
color:white !important;
}
/*multi-day event in month view*/
.dhx_cal_event_line.past_event{
background-color:purple !important;
color:white !important;
}
/*event with fixed time, in month view*/
.dhx_cal_event_clear.past_event{
color:purple !important;
}
</style>
<script type="text/javascript" charset="utf-8">
function init() {
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.locale.labels.timeline_tab = "Timeline";
scheduler.locale.labels.section_custom="Section";
scheduler.config.details_on_create=true;
scheduler.config.time_step = 30;
scheduler.config.multi_day = true;
scheduler.templates.event_class=function(start,end,event){
if (start < (new Date())) //if date in past
return “past_event”; //then set special css class for it
}
scheduler.templates.event_text=function(start,end,event){
return “Text: “+event.text+”
”+“Descr.”+event.details;
}
scheduler.templates.event_header=function(start,end,event){
return (event.important?"":"")+scheduler.templates.hour_scale(start);
}
scheduler.templates.event_bar_text=function(start,end,event){
var text = event.text.substr(0,20);
return “”+text+"";
}
scheduler.attachEvent(“onBeforeLightbox”, function (id){
window.location.href = ‘data_update.php?event=’ + id;
});
scheduler.init('scheduler_here',new Date(),"month");
scheduler.load("data/connector.php");
var dp = new dataProcessor("data/connector.php");
dp.init(scheduler);
}
scheduler.attachEvent("onBeforeLightbox", function (id){
window.location.href = 'data_update.php?event=' + id;
});
</script>
</div>
<div class="dhx_cal_header">
</div>
<div class="dhx_cal_data">
</div>
</div>
Please help me out.