ryxeo-glpi-git / plugins / pdf / front / plugin_pdf.export.massive.php @ 7b214c36
Historique | Voir | Annoter | Télécharger (2,11 ko)
1 |
<?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 |
global $DB; |
41 |
|
42 |
$type = $_SESSION["plugin_pdf"]["type"]; |
43 |
|
44 |
unset($_SESSION["plugin_pdf"]["type"]); |
45 |
|
46 |
$tab_id = unserialize($_SESSION["plugin_pdf"]["tab_id"]); |
47 |
|
48 |
unset($_SESSION["plugin_pdf"]["tab_id"]); |
49 |
|
50 |
$tab[0]=-1; |
51 |
|
52 |
$user_id = $_SESSION['glpiID']; |
53 |
$query = "select table_num from glpi_plugin_pdf_preference WHERE user_id =".$user_id." and cat=".$type; |
54 |
$result = $DB->query($query); |
55 |
|
56 |
$i=1; |
57 |
|
58 |
while($data = $DB->fetch_array($result)) |
59 |
{ |
60 |
$tab[$i]=$data["table_num"]; |
61 |
$i++;
|
62 |
} |
63 |
|
64 |
plugin_pdf_general($type,$tab_id,$tab); |
65 |
|
66 |
?>
|