2011-08-12 16:29:45 +04:00
|
|
|
<div id="sysbox"></div>
|
|
|
|
<div id="controls">
|
|
|
|
<div>
|
2011-08-11 13:22:07 +04:00
|
|
|
<form>
|
|
|
|
<div id="view">
|
2011-09-17 02:29:07 +04:00
|
|
|
<!-- <input type="button" value="1 <?php echo $l->t('Day');?>" id="onedayview_radio" onclick="Calendar.UI.setCurrentView('onedayview');"/> -->
|
2011-09-23 22:19:39 +04:00
|
|
|
<input type="button" value="<?php echo $l->t('Week');?>" id="oneweekview_radio" onclick="Calendar.UI.setCurrentView('oneweekview');"/>
|
2011-09-17 02:29:07 +04:00
|
|
|
<!-- <input type="button" value="4 <?php echo $l->t('Weeks');?>" id="fourweeksview_radio" onclick="Calendar.UI.setCurrentView('fourweeksview');"/> -->
|
2011-09-23 22:19:39 +04:00
|
|
|
<input type="button" value="<?php echo $l->t('Month');?>" id="onemonthview_radio" onclick="Calendar.UI.setCurrentView('onemonthview');"/>
|
|
|
|
<input type="button" value="<?php echo $l->t('List');?>" id="listview_radio" onclick="Calendar.UI.setCurrentView('listview');"/>
|
2011-08-11 13:22:07 +04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form>
|
|
|
|
<div id="choosecalendar">
|
2011-09-12 00:06:45 +04:00
|
|
|
<input type="button" id="today_input" value="<?php echo $l->t("Today");?>" onclick="Calendar.UI.switch2Today();"/>
|
|
|
|
<input type="button" id="choosecalendar_input" value="<?php echo $l->t("Calendars");?>" onclick="Calendar.UI.Calendar.overview();" />
|
2011-08-11 13:22:07 +04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form>
|
|
|
|
<div id="datecontrol">
|
2011-09-02 12:14:56 +04:00
|
|
|
<input type="button" value=" < " id="datecontrol_left" onclick="Calendar.UI.updateDate('backward');"/>
|
2011-08-12 16:29:45 +04:00
|
|
|
<input id="datecontrol_date" type="button" value=""/>
|
2011-09-02 12:14:56 +04:00
|
|
|
<input type="button" value=" > " id="datecontrol_right" onclick="Calendar.UI.updateDate('forward');"/>
|
2011-08-11 13:22:07 +04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-17 21:34:00 +04:00
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
var date = new Date();
|
|
|
|
var d = date.getDate();
|
|
|
|
var m = date.getMonth();
|
|
|
|
var y = date.getFullYear();
|
|
|
|
|
|
|
|
$('#calendar_holder').fullCalendar({
|
|
|
|
editable: true,
|
|
|
|
events: [
|
|
|
|
{
|
|
|
|
title: 'All Day Event',
|
|
|
|
start: new Date(y, m, 1)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Long Event',
|
|
|
|
start: new Date(y, m, d-5),
|
|
|
|
end: new Date(y, m, d-2)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 999,
|
|
|
|
title: 'Repeating Event',
|
|
|
|
start: new Date(y, m, d-3, 16, 0),
|
|
|
|
allDay: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 999,
|
|
|
|
title: 'Repeating Event',
|
|
|
|
start: new Date(y, m, d+4, 16, 0),
|
|
|
|
allDay: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Meeting',
|
|
|
|
start: new Date(y, m, d, 10, 30),
|
|
|
|
allDay: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Lunch',
|
|
|
|
start: new Date(y, m, d, 12, 0),
|
|
|
|
end: new Date(y, m, d, 14, 0),
|
|
|
|
allDay: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Birthday Party',
|
|
|
|
start: new Date(y, m, d+1, 19, 0),
|
|
|
|
end: new Date(y, m, d+1, 22, 30),
|
|
|
|
allDay: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Click for Google',
|
|
|
|
start: new Date(y, m, 28),
|
|
|
|
end: new Date(y, m, 29),
|
|
|
|
url: 'http://google.com/'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
2011-08-12 16:29:45 +04:00
|
|
|
<div id="calendar_holder">
|
2011-08-11 13:22:07 +04:00
|
|
|
</div>
|
|
|
|
<!-- Dialogs -->
|
2011-08-19 22:33:48 +04:00
|
|
|
<div id="dialog_holder"></div>
|
2011-08-11 13:22:07 +04:00
|
|
|
<div id="parsingfail_dialog" title="Parsing Fail">
|
2011-08-28 22:13:40 +04:00
|
|
|
<?php echo $l->t("There was a fail, while parsing the file."); ?>
|
2011-08-11 13:22:07 +04:00
|
|
|
</div>
|
|
|
|
<!-- End of Dialogs -->
|