-
Notifications
You must be signed in to change notification settings - Fork 0
/
cal_ test.php
47 lines (34 loc) · 1.1 KB
/
cal_ test.php
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
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
?>
<link rel='stylesheet' type='text/css' href='./fullcalendar/demos/redmond/theme.css' />
<link rel='stylesheet' type='text/css' href='fullcalendar.css' />
<script type='text/javascript' src='./fullcalendar/jquery/jquery-1.4.3.min.js'></script>
<script type='text/javascript' src='./fullcalendar/jquery/jquery-ui-1.8.5.custom.min.js'></script>
<script type='text/javascript' src='./fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
// put your options and callbacks here
theme: true
})
});
</script>
<div id='calendar'></div>
test
<?php
include('corero_conection.php');
$events = array();
//important ! $start = "2010-05-10T08:30"; iso8601 format !!
while ($row = mysql_fetch_assoc($res)) {
$eventArray['id'] = $row['id'];
$eventArray['title'] = $row['title'];
$eventArray['start'] = $row['startDate'];
$events[] = $eventArray;
}
echo json_encode($events);
?>