etf-sarajevo / zamger

Zamger https://zamger.etf.unsa.ba
GNU Affero General Public License v3.0
10 stars 7 forks source link

Calendar CRD - Calendar / hybrid branch #51

Open aladinkapic opened 3 years ago

aladinkapic commented 3 years ago

index.php

nastavnik/kalendar.php

static/css/includes/calendar/calendar.css static/js/includes/calendar/calendar.js

aladinkapic commented 3 years ago

Calendar functions:

1. calendar_get_content

Input params :

Output params:

$data = db_query("SELECT naslov, kategorija FROM kalendar where datum = '$date' and predmet = '$subject'"); while($row = db_fetch_row($data)){ $events[] = $row; }

2. event_get_data

Input params :

Output params:

$query = db_query("SELECT * FROM kalendar where datum = '$date' AND predmet = '$subject' "); while ($row = db_fetch_row($query)){ $rezultat['data'][] = array('id' => $row[0],'title' => $row[1], 'start' => $row[4], 'end' => $row[5], 'description' => $row[7]); }

3. remove_event_data

:: input - [ event_id ] :: output - true / false

4. event_create

Input params :

Output : true / false