An open API service indexing awesome lists of open source software.

https://github.com/plirof2/osteam-static-fullcalendar-test

osteam-static-fullcalendar-test fullcalendar -RRULE inserform (cal.minedu.cu.cc)
https://github.com/plirof2/osteam-static-fullcalendar-test

calendar javascript osteam

Last synced: about 2 months ago
JSON representation

osteam-static-fullcalendar-test fullcalendar -RRULE inserform (cal.minedu.cu.cc)

Awesome Lists containing this project

README

        

# osteam-static-fullcalendar-test
osteam-static-fullcalendar-test

Δοκιμαστική εφαρμογή με χρήση fullcalendar + φορμα RRULE γι εισαγωγή event/διδασκαλιών

## Σχετικές πληροφορίες για JSON FEEDS στο fullcalendar
https://fullcalendar.io/docs/event_data/events_json_feed/

https://fullcalendar.io/docs/resource_data/resources_json_feed/

## DEMO 1 :
http://cal.minedu.cu.cc (with php script on action)

## Κώδικας (τελευταία έκδοση):
https://github.com/plirof2/osteam-static-fullcalendar-test

## ΜΟΡΦΗ ΕΞΩΤΕΡΙΚΟΥ ERVTHMATOS :
Here is a URL that FullCalendar might visit:

mysite.com/myjsonfeed.php?start=2013-12-01&end=2014-01-12&_=1386054751381

## Add an external JSON event file :
eventSources: [

// your event source
{
url: 'myjsonfeed.php', // use the `url` property
type: 'GET',
color: 'yellow', // an option!
textColor: 'black' // an option!
}

// any other sources...

],

## myjsonfeed.php :
```php

echo '[

{

"title": "Τμήμα JSON1 -Πληροφορική - Ρεστάκης",
"id": "821",
"end": "2017-06-16T18:00:00",
"start": "2017-06-16T18:00:00",
"color": "RED",
"textColor": "white",
"description": "Αιθουσα 9"

},

{

"title": "Τμήμα JSON2 -Κ.Ε.Α. - Σαφίδης",
"id": "821",
"end": "2017-06-12T18:00:00",
"start": "2017-06-12T18:00:00",
"color": "RED",
"textColor": "white",
"description": "Αιθουσα 9"
}
]';

```

## Ανοιγμά νέου παραθύρου με κλικ σε κενή ώρα :

```javascript
dayClick: function(date, jsEvent) {
//alert( 'Κενή Ώρα - Παρακαλώ εισάγετε διδασκαλία' + date.format());
//open an ADD NEW EVENT FORM for this date
window.open("add_new_event.php?start="+date.format());
} // end of dayClick: function(date, jsEvent) {

```

## Dynamic feed parameters:
Ορίζουμε το event sources έτσι:
eventSources: [

// your event source
{
url: 'myjsonfeed.php', // use the `url` property
type: 'GET',
color: 'yellow', // an option!
textColor: 'black', // an option!
data: function() { // a function that returns an object
return {
professor_id: Math.random(),
lesson_id: Math.random()
};
} // END of data: function() {

}

// any other sources...

], // END of eventSources: [

αυτό θα ζητήσει το feed από την server έτσι: **http://cal.minedu.cu.cc/myjsonfeed.php?professor_id=0.2&lesson_id=0.4&start=2017-06-12&end=2017-06-19&_=1498454233377**