2009-05-31 22:56:02 +02:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
|
|
|
|
<link rel='stylesheet' type='text/css' href='jgrowl/jgrowl.css' />
|
|
|
|
<style type='text/css'>
|
|
|
|
|
|
|
|
.full-calendar-month .rep td { background: green }
|
|
|
|
.full-calendar-month .cool td { color: yellow }
|
|
|
|
.full-calendar-month .long td { background: red }
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<script type='text/javascript' src='../jquery/jquery.js'></script>
|
|
|
|
<script type='text/javascript' src='../jquery/ui.core.js'></script>
|
|
|
|
<script type='text/javascript' src='../jquery/ui.draggable.js'></script>
|
|
|
|
<script type='text/javascript' src='../fullcalendar/fullcalendar.js'></script>
|
|
|
|
<script type='text/javascript' src='jgrowl/jgrowl.js'></script>
|
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
$('#calendar').fullCalendar({
|
|
|
|
|
|
|
|
year: 2009,
|
|
|
|
month: 3,
|
|
|
|
|
|
|
|
draggable: true,
|
|
|
|
|
2009-06-01 06:51:34 +02:00
|
|
|
fixedWeeks: true,
|
2009-05-31 22:56:02 +02:00
|
|
|
|
|
|
|
abbrevDayHeadings: false,
|
|
|
|
|
|
|
|
//title: false,
|
|
|
|
titleFormat: 'm/Y', //'n/Y', //'M y',
|
|
|
|
|
|
|
|
//buttons: false,
|
2009-06-01 06:51:34 +02:00
|
|
|
//buttons: { today:false },
|
|
|
|
//buttons: { today:false, prevMonth:"prev", nextMonth:"next" },
|
|
|
|
//buttons: { today:true, prevMonth:false, nextMonth:"next" },
|
|
|
|
//buttons: { prevYear:true, nextYear:true },
|
|
|
|
//buttons: { today:true, prevYear:"py", prevMonth:true, nextMonth:true, nextYear:"ny" },
|
2009-05-31 22:56:02 +02:00
|
|
|
|
|
|
|
showTime: true,
|
2009-06-01 06:51:34 +02:00
|
|
|
timeFormat: 'ha', //'H:i', //'GA', //'gX',
|
2009-05-31 22:56:02 +02:00
|
|
|
|
|
|
|
eventDragOpacity: .5,
|
|
|
|
eventRevertDuration: 2000,
|
|
|
|
|
|
|
|
// test for CalEvent.source
|
|
|
|
eventDrop: function(event) {
|
|
|
|
$.jGrowl(event.source);
|
|
|
|
},
|
|
|
|
|
|
|
|
events: [
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
title: "Long Event",
|
|
|
|
start: new Date(2009, 3, 6, 14, 0),
|
|
|
|
end: new Date(2009, 3, 11),
|
|
|
|
showTime: false, // showTime
|
|
|
|
className: 'long',
|
|
|
|
draggable: false // draggable
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
title: "Repeating Event",
|
|
|
|
start: new Date(2009, 3, 2),
|
|
|
|
className: 'rep cool'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
title: "Repeating Event",
|
|
|
|
start: new Date(2009, 3, 9),
|
|
|
|
className: ['rep', 'cool']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 3,
|
|
|
|
title: "Meeting",
|
|
|
|
date: new Date(2009, 3, 20, 9, 30) // date alias
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 4,
|
|
|
|
title: "Click for Facebook",
|
|
|
|
start: new Date(2009, 3, 27, 16),
|
|
|
|
end: new Date(2009, 3, 29),
|
|
|
|
url: "http://facebook.com/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body style='font-size:14px;font-family:Arial'>
|
|
|
|
<div id='calendar' style='width:75%'></div>
|
|
|
|
</body>
|
|
|
|
</html>
|