dolibarr  7.0.0-beta
info.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2017 Alexandre Spangaro <aspangaro@zendsi.com>
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.'/compta/bank/class/paymentvarious.class.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/lib/bank.lib.php';
27 require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
28 
29 $langs->loadLangs(array("compta", "banks", "bills", "users", "accountancy"));
30 
31 $id=GETPOST('id','int');
32 $action=GETPOST('action','aZ09');
33 
34 // Security check
35 $socid = GETPOST("socid","int");
36 if ($user->societe_id) $socid=$user->societe_id;
37 $result = restrictedArea($user, 'banque', '', '', '');
38 
39 /*
40  * View
41  */
42 
43 llxHeader("",$langs->trans("VariousPayment"));
44 
45 $object = new PaymentVarious($db);
46 $result = $object->fetch($id);
47 $object->info($id);
48 
49 $head = various_payment_prepare_head($object);
50 
51 dol_fiche_head($head, 'info', $langs->trans("VariousPayment"), 0, 'payment');
52 
53 
54 print '<table width="100%"><tr><td>';
55 dol_print_object_info($object);
56 print '</td></tr></table>';
57 
58 print '</div>';
59 
60 llxFooter();
61 
62 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:58
Class to manage various payments.
dol_fiche_head($links=array(), $active='0', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='')
Show tab header of a card.
dol_print_object_info($object, $usetable=0)
Show informations on an object TODO Move this into html.formother.
various_payment_prepare_head($object)
Prepare array with list of tabs.
Definition: bank.lib.php:164
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
restrictedArea($user, $features, $objectid=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $objcanvas=null)
Check permissions of a user to show a page and an object.