Skip to content

Commit

Permalink
Add 9.3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmr committed Dec 11, 2018
1 parent 0a62437 commit f720877
Show file tree
Hide file tree
Showing 80 changed files with 3,524 additions and 2,978 deletions.
7 changes: 7 additions & 0 deletions README.md
@@ -1,6 +1,13 @@
# manageentities
Plugin manageentities pour GLPI

Ce plugin est sur Transifex - Aidez-nous à le traduire :
https://www.transifex.com/tsmr/GLPI_manageentities/

This plugin is on Transifex - Help us to translate :
https://www.transifex.com/tsmr/GLPI_manageentities/


Ce plugin vous permet de gérer vos entités. Lier des documents, contacts, contrats. De plus vous pouvez créer des rapports d'interventions, et faire le suivi contrat de vos entités.
* Pour une entité donnée, vous définissez

Expand Down
23 changes: 9 additions & 14 deletions ajax/addelements.listener.php
@@ -1,32 +1,28 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
https://github.com/InfotelGLPI/manageentities
Copyright (C) 2013 by the manageentities Development Team.
-------------------------------------------------------------------------
LICENSE
This file is part of Manageentities.
This file is part of manageentities.
Manageentities is free software; you can redistribute it and/or modify
manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

along with manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include('../../../inc/includes.php');

Html::header_nocache();
Expand Down Expand Up @@ -347,7 +343,8 @@
if (isset($_POST['selected_template']) && $_POST['selected_template'] > 0) {
$idTemplate = $_POST['selected_template'];
$template = new Contract();
$template->getFromDBByQuery("WHERE id=" . $idTemplate . " AND is_template=1");
$template->getFromDBByCrit(['users_id' => $idTemplate,
'is_template' => 1]);

$oldContract = $pModel->getContract();
$oldContract->fields = $template->fields;
Expand Down Expand Up @@ -514,5 +511,3 @@
default :
break;
}

?>
20 changes: 7 additions & 13 deletions ajax/cri.php
@@ -1,32 +1,28 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
https://github.com/InfotelGLPI/manageentities
Copyright (C) 2013 by the manageentities Development Team.
-------------------------------------------------------------------------
LICENSE
This file is part of Manageentities.
This file is part of manageentities.
Manageentities is free software; you can redistribute it and/or modify
manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

along with manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include('../../../inc/includes.php');

Html::header_nocache();
Expand Down Expand Up @@ -153,5 +149,3 @@
}
break;
}

?>
20 changes: 7 additions & 13 deletions ajax/criprice.php
@@ -1,32 +1,28 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
https://github.com/InfotelGLPI/manageentities
Copyright (C) 2013 by the manageentities Development Team.
-------------------------------------------------------------------------
LICENSE
This file is part of Manageentities.
This file is part of manageentities.
Manageentities is free software; you can redistribute it and/or modify
manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

along with manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
include('../../../inc/includes.php');

Html::header_nocache();
Expand All @@ -38,5 +34,3 @@
$criprice->showSelectPriceDropdown($_POST['critypes_id'], $_POST['entities_id']);
break;
}

?>
41 changes: 20 additions & 21 deletions ajax/dropdownContract.php
@@ -1,30 +1,30 @@
<?php

/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2006-2012 by the Manageentities Development Team.
https://github.com/InfotelGLPI/manageentities
-------------------------------------------------------------------------
https://forge.indepnet.net/projects/manageentities
-------------------------------------------------------------------------
LICENSE
LICENSE
This file is part of Manageentities.
This file is part of Manageentities.
Manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

include('../../../inc/includes.php');
Expand Down Expand Up @@ -65,5 +65,4 @@
'value' => $contractdays_id,
'condition' => $restrict,
'width' => $_POST['width']));
}
?>
}
29 changes: 19 additions & 10 deletions ajax/getDropdownNumber.php
@@ -1,32 +1,42 @@
<?php
/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
* @version $Id$
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2015 Teclib'.
https://github.com/InfotelGLPI/manageentities
http://glpi-project.org
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
This file is part of Manageentities.
This file is part of GLPI.
Manageentities is free software; you can redistribute it and/or modify
GLPI is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
GLPI is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

/** @file
* @brief
* @since version 0.85
*/

// Direct access to file
include('../../../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
Expand Down Expand Up @@ -121,5 +131,4 @@
$ret['results'] = $datas;
$ret['count'] = $count;
echo json_encode($ret);
}
?>
}
42 changes: 22 additions & 20 deletions ajax/interventionskateholderactions.php
@@ -1,32 +1,33 @@
<?php

/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2003-2012 by the Manageentities Development Team.
https://github.com/InfotelGLPI/manageentities
-------------------------------------------------------------------------
https://forge.indepnet.net/projects/manageentities
-------------------------------------------------------------------------
LICENSE
LICENSE
This file is part of Manageentities.
This file is part of Manageentities.
Manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/


include('../../../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
Expand All @@ -44,7 +45,8 @@
$idContractdays = $_POST['contractdays_id'];
$nbDays = $_POST['nb_days'];

$interventionSkateholder->getFromDBByQuery("WHERE `users_id`=" . $idUser . " AND `plugin_manageentities_contractdays_id`=" . $idContractdays);
$interventionSkateholder->getFromDBByCrit(['users_id' => $idUser,
'plugin_manageentities_contractdays_id' => $idContractdays]);

if (isset($interventionSkateholder->fields['id']) && $interventionSkateholder->fields['id'] > 0) {
$interventionSkateholder->fields['number_affected_days'] += $_POST['nb_days'];
Expand Down
38 changes: 19 additions & 19 deletions ajax/linkactions.php
@@ -1,30 +1,30 @@
<?php

/*
* @version $Id: HEADER 15930 2011-10-30 15:47:55Z tsmr $
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2014-2017 by the Manageentities Development Team.
-------------------------------------------------------------------------
Manageentities plugin for GLPI
Copyright (C) 2003-2012 by the Manageentities Development Team.
https://github.com/InfotelGLPI/manageentities
-------------------------------------------------------------------------
https://forge.indepnet.net/projects/manageentities
-------------------------------------------------------------------------
LICENSE
LICENSE
This file is part of Manageentities.
This file is part of Manageentities.
Manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Manageentities is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
You should have received a copy of the GNU General Public License
along with Manageentities. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

include("../../../inc/includes.php");
Expand Down

0 comments on commit f720877

Please sign in to comment.