dolibarr  7.0.0-beta
fiscalyear_info.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2014-2016 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, seehttp://www.gnu.org/licenses/>.
16  */
17 
24 require '../../main.inc.php';
25 require_once DOL_DOCUMENT_ROOT . '/core/lib/fiscalyear.lib.php';
26 require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
27 require_once DOL_DOCUMENT_ROOT . '/core/class/fiscalyear.class.php';
28 
29 $langs->load("admin");
30 $langs->load("compta");
31 
32 // Security check
33 if ($user->societe_id > 0)
35 if (! $user->rights->accounting->fiscalyear)
37 
38 $id = GETPOST('id', 'int');
39 
40 // View
41 $title = $langs->trans("Fiscalyear") . " - " . $langs->trans("Info");
42 $helpurl = "";
43 llxHeader("",$title,$helpurl);
44 
45 if ($id) {
46  $object = new Fiscalyear($db);
47  $object->fetch($id);
48  $object->info($id);
49 
50  $head = fiscalyear_prepare_head($object);
51 
52  dol_fiche_head($head, 'info', $langs->trans("Fiscalyear"), 0, 'cron');
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 
61 llxFooter();
62 $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_print_object_info($object, $usetable=0)
Show informations on an object TODO Move this into html.formother.
fiscalyear_prepare_head(Fiscalyear $object)
Prepare array with list of tabs.
GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
if($_POST["cancel"]==$langs->trans("Cancel")&&!$id) if($action== 'setdatev'&&$user->rights->tax->charges->creer) if($action== 'add'&&$_POST["cancel"]<> $langs->trans("Cancel")) if($action== 'delete') $title
Actions.
Definition: card.php:183
Class to manage fiscal year.
llxHeader()
Empty header.
Definition: wrapper.php:46
print
Draft customers invoices.
Definition: index.php:91