dolibarr  9.0.0
info.php
Go to the documentation of this file.
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 
24 require '../../main.inc.php';
25 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
26 require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
27 require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
28 
29 // Load translation files required by the page
30 $langs->loadLangs(array('banks', 'categories', 'companies'));
31 
32 $id = GETPOST("rowid");
33 
34 
35 /*
36  * View
37  */
38 
39 llxHeader();
40 
41 $object = new AccountLine($db);
42 $object->fetch($id);
43 $object->info($id);
44 
45 
46 $h=0;
47 
48 $head[$h][0] = DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$id;
49 $head[$h][1] = $langs->trans("Card");
50 $h++;
51 
52 $head[$h][0] = DOL_URL_ROOT.'/compta/bank/info.php?rowid='.$id;
53 $head[$h][1] = $langs->trans("Info");
54 $hselected = $h;
55 $h++;
56 
57 
58 dol_fiche_head($head, $hselected, $langs->trans("LineRecord"), -1, 'account');
59 
60 $linkback = '<a href="'.DOL_URL_ROOT.'/compta/bank/bankentries_list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
61 
62 
63 dol_banner_tab($object, 'rowid', $linkback);
64 
65 print '<div class="underbanner clearboth"></div>';
66 print '<br>';
67 
68 print '<table width="100%"><tr><td>';
69 dol_print_object_info($object);
70 print '</td></tr></table>';
71 
72 print '</div>';
73 
74 // End of page
75 llxFooter();
76 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:56
GETPOST($paramname, $check='none', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
print
Draft customers invoices.
Definition: index.php:91
dol_banner_tab($object, $paramid, $morehtml='', $shownav=1, $fieldid='rowid', $fieldref='ref', $morehtmlref='', $moreparam='', $nodbprefix=0, $morehtmlleft='', $morehtmlstatus='', $onlybanner=0, $morehtmlright='')
Show tab footer of a card.
dol_print_object_info($object, $usetable=0)
Show informations on an object TODO Move this into html.formother.
Class to manage bank transaction lines.
llxHeader()
Empty header.
Definition: wrapper.php:44
dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='')
Show tab header of a card.