Project

General

Profile

Revision 077e4de7

ID077e4de7489b5ceb6478a9386f61293bac14c26e
Parent 0ec9e450
Child ad6689da

Added by Francois POIROTTE about 7 years ago

Prise en compte conventions de codage

Change-Id: I74d6ea904e099519e7d2b08f0586696470514280
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2367
Tested-by: Build system <>
Reviewed-by: Francois POIROTTE <>

View differences:

src/inc/computer.class.php
1 1
<?php
2 2

  
3
if (!defined('GLPI_ROOT')) {
4
    die("Sorry. You can't access directly to this file");
5
}
6

  
7
class PluginVigiloComputer extends Computer {
8
    static function showComputerInfo($item) {
3
class PluginVigiloComputer extends Computer
4
{
5
    public static function showComputerInfo($item)
6
    {
9 7
        global $CFG_GLPI;
10 8
        $templates = PluginVigiloVigiloTemplate::getAllTemplates();
11 9
        $value = $item->getField('vigilo_template');
12 10
        if ($value === 'NULL') {
13
           $value = '-----';
11
            $value = '-----';
14 12
        }
15 13
        echo '<table class="tab_cadre_fixe tab_glpi" width="100%">';
16 14
        echo '<tr class="tab_bg_1"><th colspan="4">Vigilo Template</th></tr>';
17 15
        echo '<tr class="tab_bg_1">';
18 16
        echo '<td>Vigilo Template</td>';
19 17
        echo '<td>';
20
        Dropdown::show('PluginVigiloComputer', array("name" => "vigilo_template",
21
                                                     "emptylabel" => $value,
22
                                                     "url" => $CFG_GLPI["root_doc"] . "/plugins/vigilo/ajax/getVTValue.php"));
18
        Dropdown::show(
19
            'PluginVigiloComputer',
20
            array(
21
                "name" => "vigilo_template",
22
                "emptylabel" => $value,
23
                "url" => $CFG_GLPI["root_doc"] . "/plugins/vigilo/ajax/getVTValue.php"
24
            )
25
        );
23 26
        $ret = array();
24 27
        $tmp = PluginVigiloVigiloTemplate::getAllTemplates();
25 28
        echo '</td></tr>';
26 29
        echo '</table>';
27
        return TRUE;
30
        return true;
28 31
    }
29 32

  
30
    function getSearchOptions() {
33
    public function getSearchOptions()
34
    {
31 35
        global $CFG_GLPI;
32 36

  
33 37
        $computer = new Computer();

Also available in: Unified diff