dolibarr 19.0.3
objectline_title.tpl.php
1<?php
2/* Copyright (C) 2010-2013 Regis Houssin <regis.houssin@inodbox.com>
3 * Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.net>
4 * Copyright (C) 2012-2013 Christophe Battarel <christophe.battarel@altairis.fr>
5 * Copyright (C) 2012 Cédric Salvador <csalvador@gpcsolutions.fr>
6 * Copyright (C) 2012-2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
7 * Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
8 * Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
9 * Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
10 * Copyright (C) 2021 Greg Rastklan <greg.rastklan@atm-consulting.fr>
11 * Copyright (C) 2021 Jean-Pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
12 * Copyright (C) 2021 Grégory BLEMAND <gregory.blemand@atm-consulting.fr>
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this program. If not, see <https://www.gnu.org/licenses/>.
26 *
27 * Need to have following variables defined:
28 * $object (invoice, order, ...)
29 * $conf
30 * $langs
31 * $element (used to test $user->rights->$element->creer)
32 * $permtoedit (used to replace test $user->rights->$element->creer)
33 * $inputalsopricewithtax (0 by default, 1 to also show column with unit price including tax)
34 * $outputalsopricetotalwithtax
35 * $usemargins (0 to disable all margins columns, 1 to show according to margin setup)
36 *
37 * $type, $text, $description, $line
38 */
39
40// Protection to avoid direct call of template
41if (empty($object) || !is_object($object)) {
42 print "Error, template page can't be called as URL";
43 exit;
44}
45
46print "<!-- BEGIN PHP TEMPLATE hrm/core/tpl/objectline_title.tpl.php -->\n";
47
48// Title line
49print "<thead>\n";
50
51print '<tr class="liste_titre nodrag nodrop">';
52
53// Adds a line numbering column
54if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) {
55 print '<th class="linecolnum center">&nbsp;</th>';
56}
57
58// Skill type
59print '<th class="linecollabel">'.$langs->trans('SkillType').'</th>';
60
61// Label skill
62print '<th class="linecollabel">'.$langs->trans('Label').'</th>';
63
64// Comment
65print '<th class="linecolcomment"></th>';
66
67// Note
68print '<th class="linecolrank right" style="width: 80px">'.$form->textwithpicto($langs->trans("Level"), $langs->trans('EmployeeRank')).'</th>';
69
70
71print "</tr>\n";
72print "</thead>\n";
73
74print "<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.