dolibarr  7.0.0-beta
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 $langs->load("banks");
30 $langs->load("categories");
31 $langs->load("companies");
32 
33 $id = GETPOST("rowid");
34 
35 
36 /*
37  * View
38  */
39 
40 llxHeader();
41 
42 $object = new AccountLine($db);
43 $object->fetch($id);
44 $object->info($id);
45 
46 
47 $h=0;
48 
49 $head[$h][0] = DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$id;
50 $head[$h][1] = $langs->trans("Card");
51 $h++;
52 
53 $head[$h][0] = DOL_URL_ROOT.'/compta/bank/info.php?rowid='.$id;
54 $head[$h][1] = $langs->trans("Info");
55 $hselected = $h;
56 $h++;
57 
58 
59 dol_fiche_head($head, $hselected, $langs->trans("LineRecord"), -1, 'account');
60 
61 $linkback = '<a href="'.DOL_URL_ROOT.'/compta/bank/bankentries_list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
62 
63 
64 dol_banner_tab($object, 'rowid', $linkback);
65 
66 print '<div class="underbanner clearboth"></div>';
67 print '<br>';
68 
69 print '<table width="100%"><tr><td>';
70 dol_print_object_info($object);
71 print '</td></tr></table>';
72 
73 print '</div>';
74 
75 llxFooter();
76 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:58
dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='')
Show tab header of a card.
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.
GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0)
Return value of a param into GET or POST supervariable.
llxHeader()
Empty header.
Definition: wrapper.php:46
print
Draft customers invoices.
Definition: index.php:91