Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

ryxeo-glpi-git / plugins / pdf / front / plugin_pdf.export.php @ 7b214c36

Historique | Voir | Annoter | Télécharger (2,36 ko)

1 7b214c36 Eric Seigne
<?php
2
/*
3
 ----------------------------------------------------------------------
4
 GLPI - Gestionnaire Libre de Parc Informatique
5
 Copyright (C) 2003-2008 by the INDEPNET Development Team.
6
 
7
 http://indepnet.net/   http://glpi-project.org/
8
 ----------------------------------------------------------------------
9

10
 LICENSE
11

12
        This file is part of GLPI.
13

14
    GLPI is free software; you can redistribute it and/or modify
15
    it under the terms of the GNU General Public License as published by
16
    the Free Software Foundation; either version 2 of the License, or
17
    (at your option) any later version.
18

19
    GLPI is distributed in the hope that it will be useful,
20
    but WITHOUT ANY WARRANTY; without even the implied warranty of
21
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
    GNU General Public License for more details.
23

24
    You should have received a copy of the GNU General Public License
25
    along with GLPI; if not, write to the Free Software
26
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
 ------------------------------------------------------------------------
28
*/
29
30
// Original Author of file: BALPE Dévi
31
// Purpose of file:
32
// ----------------------------------------------------------------------
33
34
35
$NEEDED_ITEMS=array("computer","device","networking","monitor","printer","tracking","software","peripheral","reservation","infocom","contract","document","user","link","phone","registry");
36
define('GLPI_ROOT', '../../..');
37
include (GLPI_ROOT."/inc/includes.php");
38
include_once (GLPI_ROOT."/lib/ezpdf/class.ezpdf.php");
39
40
if($_POST["plugin_pdf_inventory_type"]==COMPUTER_TYPE && isset($_SESSION["plugin_pdf"][COMPUTER_TYPE]))
41
                unset($_SESSION["plugin_pdf"][COMPUTER_TYPE]);
42
                        
43
else if($_POST["plugin_pdf_inventory_type"]==SOFTWARE_TYPE && isset($_SESSION["plugin_pdf"][SOFTWARE_TYPE]))
44
                unset($_SESSION["plugin_pdf"][SOFTWARE_TYPE]);
45
        
46
for($i=0,$j=1;$i<$_POST["indice"];$i++)
47
        if(isset($_POST["check".$i])){
48
                if($_POST["plugin_pdf_inventory_type"]==COMPUTER_TYPE)
49
                        $_SESSION["plugin_pdf"][COMPUTER_TYPE][]=$i;
50
                        
51
                else if($_POST["plugin_pdf_inventory_type"]==SOFTWARE_TYPE)
52
                        $_SESSION["plugin_pdf"][SOFTWARE_TYPE][]=$i;
53
                        
54
                $tab[$j] = $_POST["check".$i];
55
                $j++;
56
        }
57
        
58
$tab[0]=-1;
59
$tab_id[0]=$_POST["itemID"];
60
61
plugin_pdf_general($_POST["plugin_pdf_inventory_type"],$tab_id,$tab);
62
?>
Redmine Appliance - Powered by TurnKey Linux