export.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /* Copyright (C) 2003-2008 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
  5. * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
  6. * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
  7. * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
  8. * Copyright (C) 2011-2012 Juanjo Menent <jmenent@2byte.es>
  9. * Copyright (C) 2011-2018 Philippe Grand <philippe.grand@atoo-net.com>
  10. *
  11. * This program 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 3 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. */
  24. /**
  25. * \file htdocs/admin/expedition.php
  26. * \ingroup expedition
  27. * \brief Page d'administration/configuration du module Expedition
  28. */
  29. require '../main.inc.php';
  30. require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
  31. // Load translation files required by the page
  32. $langs->loadLangs(array('admin', 'exports', 'other'));
  33. if (! $user->admin)
  34. accessforbidden();
  35. $action=GETPOST('action','alpha');
  36. $value=GETPOST('value','alpha');
  37. /*
  38. * Actions
  39. */
  40. include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
  41. /*
  42. * View
  43. */
  44. $page_name = "ExportSetup";
  45. llxHeader('', $langs->trans($page_name));
  46. // Subheader
  47. $linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">'
  48. . $langs->trans("BackToModuleList") . '</a>';
  49. print_fiche_titre($langs->trans($page_name), $linkback);
  50. // Configuration header
  51. dol_fiche_head(
  52. $head,
  53. 'settings',
  54. $langs->trans("ExportsArea"),
  55. 0,
  56. "exports"
  57. );
  58. // Setup page goes here
  59. $form=new Form($db);
  60. print '<table class="noborder" width="100%">';
  61. print '<tr class="liste_titre">';
  62. print '<td>'.$langs->trans("ExportModel").'</td>'."\n";
  63. print '<td align="center" width="20">&nbsp;</td>';
  64. print '<td align="center" width="100"></td>'."\n";
  65. // Example with a yes / no select
  66. print '<tr class="oddeven">';
  67. print '<td>'.$langs->trans("set_EXPORTS_SHARE_MODELS").'</td>';
  68. print '<td align="center" width="20">&nbsp;</td>';
  69. print '<td align="center" width="100">';
  70. print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">';
  71. print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
  72. print '<input type="hidden" name="action" value="set_EXPORTS_SHARE_MODELS">';
  73. echo ajax_constantonoff('EXPORTS_SHARE_MODELS');
  74. print '</form>';
  75. print '</td></tr>';
  76. print '</table>';
  77. // End of page
  78. llxFooter();
  79. $db->close();