Order plugin 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 GLPI; along with Order. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- @package order @author the order plugin team @copyright Copyright (c) 2010-2011 Order plugin team @license GPLv2+ http://www.gnu.org/licenses/gpl.txt @link https://forge.indepnet.net/projects/order @link http://www.glpi-project.org/ @since 2009 ---------------------------------------------------------------------- */ include "../../../inc/includes.php"; if (!isset($_GET["id"])) { $_GET["id"] = ""; } $PluginOrderPreference = new PluginOrderPreference(); if (isset($_POST["update"])) { $PluginOrderPreference->update($_POST); Html::redirect($_SERVER['HTTP_REFERER']); } else { Html::header(__("Orders management", "order"), '', "plugins", "order", "order"); $PluginOrderPreference->showForm("./preference.form.php", $_GET["id"]); Html::footer(); }