/ajax/dropdownMassiveActionAddActor.php

https://github.com/ardowz/Thesis-SideB · PHP · 51 lines · 13 code · 6 blank · 32 comment · 1 complexity · 89e2a6ae51c23a4349a460c22e8efa53 MD5 · raw file

  1. <?php
  2. /*
  3. * @version $Id: dropdownMassiveActionAddActor.php 14815 2011-06-29 07:27:02Z remi $
  4. -------------------------------------------------------------------------
  5. GLPI - Gestionnaire Libre de Parc Informatique
  6. Copyright (C) 2003-2011 by the INDEPNET Development Team.
  7. http://indepnet.net/ http://glpi-project.org
  8. -------------------------------------------------------------------------
  9. LICENSE
  10. This file is part of GLPI.
  11. GLPI is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15. GLPI is distributed in the hope that it will be useful,
  16. but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. GNU General Public License for more details.
  19. You should have received a copy of the GNU General Public License
  20. along with GLPI; if not, write to the Free Software Foundation, Inc.,
  21. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  22. --------------------------------------------------------------------------
  23. */
  24. // ----------------------------------------------------------------------
  25. // Original Author of file: Julien Dombre
  26. // Purpose of file:
  27. // ----------------------------------------------------------------------
  28. $AJAX_INCLUDE = 1;
  29. define('GLPI_ROOT','..');
  30. include (GLPI_ROOT."/inc/includes.php");
  31. header("Content-Type: text/html; charset=UTF-8");
  32. header_nocache();
  33. checkRight('update_ticket', 1);
  34. if ($_POST["actortype"] > 0) {
  35. $rand = mt_rand();
  36. Ticket::showActorAddForm($_POST["actortype"], $rand, $_SESSION['glpiactive_entity'], false);
  37. echo "&nbsp;<input type='submit' name='add_actor' class='submit' value=\"".$LANG['buttons'][2]."\">";
  38. }
  39. ?>