ryxeo-glpi-git / front / dictionnary.php @ b67d8923
Historique | Voir | Annoter | Télécharger (5,43 ko)
1 |
<?php
|
---|---|
2 |
/*
|
3 |
* @version $Id: dictionnary.php 7763 2009-01-06 18:44:50Z moyo $
|
4 |
-------------------------------------------------------------------------
|
5 |
GLPI - Gestionnaire Libre de Parc Informatique
|
6 |
Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
7 |
|
8 |
http://indepnet.net/ http://glpi-project.org
|
9 |
-------------------------------------------------------------------------
|
10 |
|
11 |
LICENSE
|
12 |
|
13 |
This file is part of GLPI.
|
14 |
|
15 |
GLPI is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
17 |
the Free Software Foundation; either version 2 of the License, or
|
18 |
(at your option) any later version.
|
19 |
|
20 |
GLPI is distributed in the hope that it will be useful,
|
21 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
GNU General Public License for more details.
|
24 |
|
25 |
You should have received a copy of the GNU General Public License
|
26 |
along with GLPI; if not, write to the Free Software
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
--------------------------------------------------------------------------
|
29 |
*/
|
30 |
|
31 |
// ----------------------------------------------------------------------
|
32 |
// Original Author of file: Walid Nouh
|
33 |
// Purpose of file:
|
34 |
// ----------------------------------------------------------------------
|
35 |
|
36 |
|
37 |
$NEEDED_ITEMS=array("rulesengine"); |
38 |
|
39 |
define('GLPI_ROOT', '..'); |
40 |
include (GLPI_ROOT . "/inc/includes.php"); |
41 |
|
42 |
checkSeveralRightsOr(array(
|
43 |
"rule_dictionnary_dropdown"=>"r", |
44 |
"rule_dictionnary_software"=>"r" |
45 |
)); |
46 |
|
47 |
commonHeader($LANG["common"][12],$_SERVER['PHP_SELF'],"admin","dictionnary",-1); |
48 |
|
49 |
echo "<div align='center'><table class='tab_cadre' cellpadding='5'>"; |
50 |
echo "<tr class='tab_bg_1'><th colspan='4'>" . $LANG["rulesengine"][77] . "</th></tr>"; |
51 |
|
52 |
echo "<tr class='tab_bg_1'><td valign='top'><table class='tab_cadre' cellpadding='5'>"; |
53 |
echo "<tr class='tab_bg_1'><th>".$LANG["rulesengine"][80]."</th></tr>"; |
54 |
|
55 |
if (haveRight("rule_dictionnary_software","r")){ |
56 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.software.php\"><strong>" . $LANG["rulesengine"][35] . "</strong></a></td></tr>"; |
57 |
} |
58 |
if (haveRight("rule_dictionnary_dropdown","r")){ |
59 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.manufacturer.php\"><strong>" . $LANG["rulesengine"][36] . "</strong></a></td></tr>"; |
60 |
} |
61 |
|
62 |
echo "</table></td>"; |
63 |
|
64 |
echo "<td valign='top'><table class='tab_cadre' cellpadding='5'>"; |
65 |
if (haveRight("rule_dictionnary_dropdown","r")){ |
66 |
echo "<tr class='tab_bg_1'><th>".$LANG["rulesengine"][56]."</th></tr>"; |
67 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.model.computer.php\"><strong>" . $LANG["rulesengine"][50] . "</strong></a></td></tr>"; |
68 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.model.monitor.php\"><strong>" . $LANG["rulesengine"][51] . "</strong></a></td></tr>"; |
69 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.model.printer.php\"><strong>" . $LANG["rulesengine"][54] . "</strong></a></td></tr>"; |
70 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.model.peripheral.php\"><strong>" . $LANG["rulesengine"][53] . "</strong></a></td></tr>"; |
71 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.model.networking.php\"><strong>" . $LANG["rulesengine"][55] . "</strong></a></td></tr>"; |
72 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.model.phone.php\"><strong>" . $LANG["rulesengine"][52] . "</strong></a></td></tr>"; |
73 |
} |
74 |
echo "</table></td>"; |
75 |
|
76 |
echo "<td valign='top'><table class='tab_cadre' cellpadding='5'>"; |
77 |
if (haveRight("rule_dictionnary_dropdown","r")){ |
78 |
echo "<tr class='tab_bg_1'><th>".$LANG["rulesengine"][66]."</th></tr>"; |
79 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.type.computer.php\"><strong>" . $LANG["rulesengine"][60] . "</strong></a></td></tr>"; |
80 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.type.monitor.php\"><strong>" . $LANG["rulesengine"][61] . "</strong></a></td></tr>"; |
81 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.type.printer.php\"><strong>" . $LANG["rulesengine"][64] . "</strong></a></td></tr>"; |
82 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.type.peripheral.php\"><strong>" . $LANG["rulesengine"][63] . "</strong></a></td></tr>"; |
83 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.type.networking.php\"><strong>" . $LANG["rulesengine"][65] . "</strong></a></td></tr>"; |
84 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.type.phone.php\"><strong>" . $LANG["rulesengine"][62] . "</strong></a></td></tr>"; |
85 |
} |
86 |
echo "</table></td>"; |
87 |
|
88 |
echo "<td valign='top'><table class='tab_cadre' cellpadding='5'>"; |
89 |
if (haveRight("rule_dictionnary_dropdown","r")){ |
90 |
echo "<tr class='tab_bg_1'><th>".$LANG["computers"][9]."</th></tr>"; |
91 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.os.php\"><strong>" . $LANG["rulesengine"][67] . "</strong></a></td></tr>"; |
92 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.os_sp.php\"><strong>" . $LANG["rulesengine"][68] . "</strong></a></td></tr>"; |
93 |
echo "<tr class='tab_bg_1'><td align='center'><a href=\"rule.dictionnary.os_version.php\"><strong>" . $LANG["rulesengine"][69] . "</strong></a></td></tr>"; |
94 |
} |
95 |
echo "</table></td></tr>"; |
96 |
|
97 |
echo "</table></div>"; |
98 |
commonFooter(); |
99 |
?>
|