index.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. * Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
  5. * Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. */
  20. /**
  21. * \file mmiprestasync/index.php
  22. * \ingroup mmiprestasync
  23. * \brief Home page of mmiprestasync top menu
  24. */
  25. // Load Dolibarr environment
  26. require_once 'env.inc.php';
  27. require_once 'main_load.inc.php';
  28. require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
  29. // Load translation files required by the page
  30. $langs->loadLangs(array("mmiprestasync@mmiprestasync"));
  31. $action = GETPOST('action', 'alpha');
  32. // Security check
  33. //if (! $user->rights->mmiprestasync->myobject->read) accessforbidden();
  34. $socid = GETPOST('socid', 'int');
  35. if (isset($user->socid) && $user->socid > 0)
  36. {
  37. $action = '';
  38. $socid = $user->socid;
  39. }
  40. /*
  41. * Actions
  42. */
  43. // None
  44. /*
  45. * View
  46. */
  47. $form = new Form($db);
  48. $formfile = new FormFile($db);
  49. llxHeader("", $langs->trans("mmiprestasyncArea"));
  50. print load_fiche_titre($langs->trans("mmiprestasyncArea"), '', 'mmiprestasync.png@mmiprestasync');
  51. print '<div class="fichecenter"><div class="fichethirdleft">';
  52. print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
  53. print '</div></div></div>';
  54. // End of page
  55. llxFooter();
  56. $db->close();