info.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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@zendsi.com>
  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 <http://www.gnu.org/licenses/>.
  19. */
  20. /**
  21. * \file htdocs/expensereport/payment/info.php
  22. * \ingroup Expense report
  23. * \brief Tab payment info
  24. */
  25. require '../../main.inc.php';
  26. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  27. require_once DOL_DOCUMENT_ROOT.'/expensereport/class/paymentexpensereport.class.php';
  28. require_once DOL_DOCUMENT_ROOT.'/core/lib/expensereport.lib.php';
  29. $langs->load("bills");
  30. $langs->load("trips");
  31. $id=GETPOST('id');
  32. $ref=GETPOST('ref', 'alpha');
  33. $action=GETPOST('action','alpha');
  34. $confirm=GETPOST('confirm','alpha');
  35. /*
  36. * Actions
  37. */
  38. // None
  39. /*
  40. * View
  41. */
  42. llxHeader('', $langs->trans("Payment"));
  43. $object = new PaymentExpenseReport($db);
  44. $object->fetch($id, $ref);
  45. $object->info($object->id);
  46. $head = payment_expensereport_prepare_head($object);
  47. dol_fiche_head($head, 'info', $langs->trans("ExpenseReportPayment"), -1, 'payment');
  48. //$linkback = '<a href="' . DOL_URL_ROOT . '/expensereport/payment/list.php">' . $langs->trans("BackToList") . '</a>';
  49. dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', '');
  50. print '<div class="fichecenter">';
  51. print '<div class="underbanner clearboth"></div>';
  52. print '<br>';
  53. print '<table width="100%"><tr><td>';
  54. dol_print_object_info($object);
  55. print '</td></tr></table>';
  56. print '</div>';
  57. dol_fiche_end();
  58. llxFooter();
  59. $db->close();