ryxeo-glpi-git / front / search.php @ b67d8923
Historique | Voir | Annoter | Télécharger (2,25 ko)
1 |
<?php
|
---|---|
2 |
|
3 |
|
4 |
/*
|
5 |
* @version $Id: search.php 7763 2009-01-06 18:44:50Z moyo $
|
6 |
-------------------------------------------------------------------------
|
7 |
GLPI - Gestionnaire Libre de Parc Informatique
|
8 |
Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
9 |
|
10 |
http://indepnet.net/ http://glpi-project.org
|
11 |
-------------------------------------------------------------------------
|
12 |
|
13 |
LICENSE
|
14 |
|
15 |
This file is part of GLPI.
|
16 |
|
17 |
GLPI is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License as published by
|
19 |
the Free Software Foundation; either version 2 of the License, or
|
20 |
(at your option) any later version.
|
21 |
|
22 |
GLPI is distributed in the hope that it will be useful,
|
23 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
GNU General Public License for more details.
|
26 |
|
27 |
You should have received a copy of the GNU General Public License
|
28 |
along with GLPI; if not, write to the Free Software
|
29 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
30 |
--------------------------------------------------------------------------
|
31 |
*/
|
32 |
|
33 |
// ----------------------------------------------------------------------
|
34 |
// Original Author of file:
|
35 |
// Purpose of file:
|
36 |
// ----------------------------------------------------------------------
|
37 |
|
38 |
$NEEDED_ITEMS=array("computer","search","software"); |
39 |
|
40 |
define('GLPI_ROOT', '..'); |
41 |
include (GLPI_ROOT . "/inc/includes.php"); |
42 |
|
43 |
checkCentralAccess(); |
44 |
commonHeader($LANG["search"][0],$_SERVER['PHP_SELF']); |
45 |
|
46 |
if (isset($_GET["globalsearch"])){ |
47 |
$_GET["reset_before"]=1; |
48 |
$_GET["display_type"]=GLOBAL_SEARCH; |
49 |
$types=array(COMPUTER_TYPE,MONITOR_TYPE,SOFTWARE_TYPE,NETWORKING_TYPE,PERIPHERAL_TYPE,PRINTER_TYPE,PHONE_TYPE); |
50 |
|
51 |
$ci=new CommonItem(); |
52 |
|
53 |
foreach($types as $type){ |
54 |
if (haveTypeRight($type,'r')){ |
55 |
$page=ereg_replace('front/','',ereg_replace('.form','',$INFOFORM_PAGES[$type])); |
56 |
|
57 |
manageGetValuesInSearch($type,false,false); |
58 |
$_GET["contains"][0]=$_GET["globalsearch"]; |
59 |
showList($type,$page,$_GET["field"],$_GET["contains"],$_GET["sort"],$_GET["order"],$_GET["start"],$_GET["deleted"],$_GET["link"],$_GET["distinct"],$_GET["link2"],$_GET["contains2"],$_GET["field2"],$_GET["type2"]); |
60 |
echo "<hr>"; |
61 |
} |
62 |
} |
63 |
|
64 |
} |
65 |
|
66 |
commonFooter(); |
67 |
?>
|