Glavna stranica | Popis datoteka | Članovi klasa u datoteci

main.php

Dokumenacija za ovu datoteku.
00001 <?
00002 /**************************************************************************************
00003  Studentski Informacijski servis, 2004
00004  **************************************************************************************
00005  main.php
00006  pregledanje i pretrazivanje obavjestenja
00007 
00008 
00009  Srdjan Segvic - srle
00010  **************************************************************************************
00011  **************************************************************************************
00012  This program is free software; you can redistribute it and/or modify
00013  it under the terms of the GNU General Public License as published by
00014  the Free Software Foundation; either version 2 of the License, or
00015  (at your option) any later version.
00016 
00017  This program is distributed in the hope that it will be useful,
00018  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
00020  See the GNU Library General Public License for more details.
00021 
00022  You should have received a copy of the GNU General Public License
00023  along with this program; if not, write to the Free Software
00024  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00025  **************************************************************************************/
00026 session_start();
00027         //
00028         // provjera sessije i inkludanje osnovnih funkcija i potrebnih template i language fileova
00029         //
00030         $id = $_SESSION['id'];
00031         include('functions/func_check_session.php');
00032         checkSession($id);
00033         $odsjek = $_SESSION['odsjek'];
00034         include('connect.php');
00035         include('functions/func_preference.php');
00036         include('template/header.php');
00037         include('functions/func_obav.php');
00038         include('template/template_menu_ob.php');
00039         //
00040         // broj obavjestenja po stranici
00041         //
00042         $nr_set_obav = getObavPerPage($id);
00043         $lang = getLang($id);
00044         include("lang/$lang/lang_obav.php");
00045         //
00046         // pregled obavjestenja vezanih za predmete
00047         //
00048         if ($_GET['tip'] == "predmeti"){
00049 
00050                 if (!isset($_GET['stranica'])){
00051                         $stranica = 1;
00052                 }
00053                 else {
00054                         $stranica = $_GET['stranica'];
00055                 }
00056                 brojObavjestenjePredmeti($odsjek, $stranica, $id);
00057                 obavjestenjePredmeti($odsjek, (($stranica-1)*$nr_set_obav), $id);
00058                 brojObavjestenjePredmeti($odsjek, $stranica, $id);
00059         }
00060         //
00061         // pregled obavjestenja studentske sluzbe
00062         //
00063         elseif ($_GET['tip'] == "sluzba"){
00064                 if (!isset($_GET['stranica'])){
00065                         $stranica = 1;
00066                 }
00067                 else {
00068                         $stranica = $_GET['stranica'];
00069                 }
00070                 brojObavjestenjeSluzba($stranica);
00071                 obavjestenjeSluzba((($stranica-1)*$nr_set_obav), $id);
00072                 brojObavjestenjeSluzba($stranica);
00073         }
00074         //
00075         // pregled obavjestenja vezanih za jedan predmet
00076         //
00077         elseif ($_GET['tip'] == "predmet"){
00078                 if (!isset($_GET['stranica'])){
00079                         $stranica = 1;
00080                 }
00081                 else {
00082                         $stranica = $_GET['stranica'];
00083                 }
00084                 brojObavjestenjeOnePredmet($odsjek, $stranica, $_GET['pred_id']);
00085                 obavjestenjeOnePredmet((($stranica-1)*$nr_set_obav), $_GET['pred_id'], $id);
00086                 brojObavjestenjeOnePredmet($odsjek, $stranica, $_GET['pred_id']);
00087         }
00088         //
00089         // pregled posljednjih obavjestenja
00090         //
00091         else {
00092                 posljednjaObavjestenja($odsjek, $id);
00093         }
00094         menu($odsjek, $_GET['tip'], $id);
00095         include('template/footer.php');
00096 ?>

Generirano Thu Sep 16 17:16:01 2004 projekt: SiS.Student generator: doxygen 1.3.2