dolibarr 20.0.0
printing.lib.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
3 * Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 */
18
34{
35 global $langs, $conf;
36
37 $h = 0;
38 $head = array();
39
40 $head[$h][0] = DOL_URL_ROOT."/printing/admin/printing.php?mode=config";
41 $head[$h][1] = $langs->trans("ListDrivers");
42 $head[$h][2] = 'config';
43 $h++;
44
45 if ($mode == 'setup') {
46 $head[$h][0] = DOL_URL_ROOT."/printing/admin/printing.php?mode=setup&driver=".GETPOST('driver', 'alpha');
47 $head[$h][1] = $langs->trans("SetupDriver");
48 $head[$h][2] = 'setup';
49 $h++;
50 }
51
52 if ($mode == 'test') {
53 $head[$h][0] = DOL_URL_ROOT."/printing/admin/printing.php?mode=test&driver=".GETPOST('driver', 'alpha');
54 $head[$h][1] = $langs->trans("TargetedPrinter");
55 $head[$h][2] = 'test';
56 $h++;
57 }
58
66 //$object=new stdClass();
67
68 // Show more tabs from modules
69 // Entries must be declared in modules descriptor with line
70 // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
71 // $this->tabs = array('entity:-tabname); to remove a tab
72 //complete_head_from_modules($conf,$langs,$object,$head,$h,'printingadmin');
73
74 //complete_head_from_modules($conf,$langs,$object,$head,$h,'printing','remove');
75
76 return $head;
77}
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
printingAdminPrepareHead($mode)
Define head array for tabs of printing tools setup pages.