info.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /* Copyright (C) 2005-2010 Laurent Destailleur <eldy@users.sourceforge.net>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * \file htdocs/compta/bank/info.php
  19. * \ingroup banque
  20. * \brief Onglet info d'une ecriture bancaire
  21. */
  22. require '../../main.inc.php';
  23. require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  24. require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
  25. require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
  26. // Load translation files required by the page
  27. $langs->loadLangs(array('banks', 'categories', 'companies'));
  28. $id = GETPOST("rowid");
  29. /*
  30. * View
  31. */
  32. llxHeader();
  33. $object = new AccountLine($db);
  34. $object->fetch($id);
  35. $object->info($id);
  36. $h=0;
  37. $head[$h][0] = DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$id;
  38. $head[$h][1] = $langs->trans("Card");
  39. $h++;
  40. $head[$h][0] = DOL_URL_ROOT.'/compta/bank/info.php?rowid='.$id;
  41. $head[$h][1] = $langs->trans("Info");
  42. $hselected = $h;
  43. $h++;
  44. dol_fiche_head($head, $hselected, $langs->trans("LineRecord"), -1, 'account');
  45. $linkback = '<a href="'.DOL_URL_ROOT.'/compta/bank/bankentries_list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
  46. dol_banner_tab($object, 'rowid', $linkback);
  47. print '<div class="underbanner clearboth"></div>';
  48. print '<br>';
  49. print '<table width="100%"><tr><td>';
  50. dol_print_object_info($object);
  51. print '</td></tr></table>';
  52. print '</div>';
  53. llxFooter();
  54. $db->close();