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)
- Host: GitHub
- URL: https://github.com/plirof2/osteam-static-fullcalendar-test
- Owner: plirof2
- Created: 2017-06-21T19:59:10.000Z (almost 8 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-09-24T09:59:38.000Z (over 7 years ago)
- Last Synced: 2025-04-13T04:54:13.828Z (about 2 months ago)
- Topics: calendar, javascript, osteam
- Language: JavaScript
- Homepage: http://plirof2.github.io/osteam-static-fullcalendar-test
- Size: 1.23 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 :
```phpecho '[
{
"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**