Glavna stranica | Popis datoteka | Članovi klasa u datoteci

search.php

Dokumenacija za ovu datoteku.
00001 <?
00002 /**************************************************************************************
00003  Studentski Informacijski servis, 2004
00004  **************************************************************************************
00005  search.php
00006  pretrazivanje obavjestenja, downloada i linkova...
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_search.php');
00038         include('template/template_servisi.php');
00039         include('template/template_search.php');
00040         $lang = getLang($id);
00041         include("lang/$lang/lang_search.php");
00042         $nr_set_obav = getObavPerPage($id);
00043         //
00044         // prikaz sumarnih rezultata pretrage
00045         //
00046         if (isset($_POST['searchfield'])){
00047                 printRokoviStart(_SEARCHRESULTS, 524);
00048                 doSearch($id, $_SESSION['odsjek'], $_POST['searchfield']);
00049         }
00050         //
00051         // prikaz rezultata pretrage obavjestenja vezanih za predmete
00052         //
00053         elseif (($_GET['tip'] == "pred") && (isset($_GET['keyword']))){
00054                 include("lang/$lang/lang_obav.php");
00055                 include('template/template_menu_ob.php');
00056 
00057                 if (!isset($_GET['stranica'])){
00058                         $stranica = 1;
00059                 }
00060                 else {
00061                         $stranica = $_GET['stranica'];
00062                 }
00063                 doSearchPred($id, $_SESSION['odsjek'], $_GET['keyword'], (($stranica-1)*$nr_set_obav), $stranica);
00064                 menu($odsjek, $_GET['tip'], $id);
00065         }
00066         //
00067         // prikaz rezultata pretrazivanja obavjestenja studentske sluzbe
00068         //
00069         elseif (($_GET['tip'] == "sss") && (isset($_GET['keyword']))){
00070                 include("lang/$lang/lang_obav.php");
00071                 include('template/template_menu_ob.php');
00072 
00073                 if (!isset($_GET['stranica'])){
00074                         $stranica = 1;
00075                 }
00076                 else {
00077                         $stranica = $_GET['stranica'];
00078                 }
00079                 doSearchSSS($id, $_GET['keyword'], (($stranica-1)*$nr_set_obav), $stranica);
00080                 menu($odsjek, $_GET['tip'], $id);
00081         }
00082         //
00083         // prikaz rezultata pretrazivanja generalnih linkova
00084         //
00085         elseif (($_GET['tip'] == "dg") && (isset($_GET['keyword']))){
00086                 include("lang/$lang/lang_downloadi.php");
00087                 include('template/template_downloadi.php');
00088                 doSearchdg($id,$_SESSION['odsjek'], $_GET['keyword']);
00089         }
00090         //
00091         // prikaz rezultata pretrazivanja personalnih downloada
00092         //
00093         elseif (($_GET['tip'] == "dp") && (isset($_GET['keyword']))){
00094                 include("lang/$lang/lang_downloadi.php");
00095                 include('template/template_downloadi.php');
00096                 doSearchdp($id, $_GET['keyword']);
00097         }
00098         //
00099         // prikaz rezultata pretrazivanja generalnih linkova
00100         //
00101         elseif (($_GET['tip'] == "lg") && (isset($_GET['keyword']))){
00102                 include("lang/$lang/lang_linkovi.php");
00103                 include('template/template_linkovi.php');
00104                 doSearchlg($_GET['keyword']);
00105         }
00106         //
00107         // prikaz rezultata pretrazivanja personalnih linkova
00108         //
00109         elseif (($_GET['tip'] == "lp") && (isset($_GET['keyword']))){
00110                 include("lang/$lang/lang_linkovi.php");
00111                 include('template/template_linkovi.php');
00112                 doSearchlp($id, $_GET['keyword']);
00113         }
00114         include('template/footer.php');
00115 
00116 ?>

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