info.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. * Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2013 Marcos García <marcosgdf@gmail.com>
  5. * Copyright (C) 2015 Alexandre Spangaro <aspangaro@open-dsi.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 htdocs/expensereport/payment/info.php
  22. * \ingroup Expense report
  23. * \brief Tab payment info
  24. */
  25. // Load Dolibarr environment
  26. require '../../main.inc.php';
  27. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  28. require_once DOL_DOCUMENT_ROOT.'/expensereport/class/paymentexpensereport.class.php';
  29. require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php';
  30. // Load translation files required by the page
  31. $langs->loadLangs(array('bills', 'trips'));
  32. $id = GETPOST('id');
  33. $ref = GETPOST('ref', 'alpha');
  34. $action = GETPOST('action', 'aZ09');
  35. $confirm = GETPOST('confirm', 'alpha');
  36. /*
  37. * Actions
  38. */
  39. // None
  40. /*
  41. * View
  42. */
  43. llxHeader('', $langs->trans("Payment"));
  44. $object = new PaymentExpenseReport($db);
  45. $object->fetch($id);
  46. $object->info($object->id);
  47. $head = payment_expensereport_prepare_head($object);
  48. print dol_get_fiche_head($head, 'info', $langs->trans("ExpenseReportPayment"), -1, 'payment');
  49. //$linkback = '<a href="' . DOL_URL_ROOT . '/expensereport/payment/list.php">' . $langs->trans("BackToList") . '</a>';
  50. dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', '');
  51. print '<div class="fichecenter">';
  52. print '<div class="underbanner clearboth"></div>';
  53. print '<br>';
  54. print '<table width="100%"><tr><td>';
  55. dol_print_object_info($object);
  56. print '</td></tr></table>';
  57. print '</div>';
  58. print dol_get_fiche_end();
  59. // End of page
  60. llxFooter();
  61. $db->close();