Ciao Massimiliano e grazie per il link…ma il problem fondamentale è che non riesco a visualizzare il widget dentro la pop up eppure il codice è semplicissimo:
<div class="form" id="jobDialogForm">
<?php $form=$this->beginWidget(‘CActiveForm’, array(
'id'=>'job-form'
));
?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<div id="calendar"></div>
</div>
<?php $this->endWidget(); ?>
<script type=‘text/javascript’ language=‘JavaScript’ >
<!--
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
var calendar = $('#calendar').fullCalendar({header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
selectable: true,
selectHelper: true,
select: function(start, end, allDay) {
var title = prompt('Blocking For - Customer Details');
if (title) {
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true // make the event "stick"
);
}
calendar.fullCalendar('unselect');
start = mySqlDateConvertion(start); //JS CALL
},
//editable: true,
events: [
{
id: 999,
title: 'Repeating Event',
start: new Date(y, m, d-3, 16, 0),
allDay: false
}
]
});
});
//-->
</script>