dolibarr 21.0.0-beta
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 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 3 of the License, or
18 * (at your option) any later version.
19 *
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program. If not, see <https://www.gnu.org/licenses/>.
27 *
28 * Need to have the following variables defined:
29 * $object (invoice, order, ...)
30 * $conf
31 * $langs
32 * $element (used to test $user->rights->$element->creer)
33 * $permtoedit (used to replace test $user->rights->$element->creer)
34 * $inputalsopricewithtax (0 by default, 1 to also show column with unit price including tax)
35 * $outputalsopricetotalwithtax
36 * $usemargins (0 to disable all margins columns, 1 to show according to margin setup)
37 *
38 * $type, $text, $description, $line
39 */
45// Protection to avoid direct call of template
46if (empty($object) || !is_object($object)) {
47 print "Error, template page can't be called as URL";
48 exit(1);
49}
50
51print "<!-- BEGIN PHP TEMPLATE hrm/core/tpl/objectline_title.tpl.php -->\n";
52
53// Title line
54print "<thead>\n";
55
56print '<tr class="liste_titre nodrag nodrop">';
57
58// Adds a line numbering column
59if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) {
60 print '<th class="linecolnum center">&nbsp;</th>';
61}
62
63// Skill type
64print '<th class="linecollabel">'.$langs->trans('SkillType').'</th>';
65
66// Label skill
67print '<th class="linecollabel">'.$langs->trans('Label').'</th>';
68
69// Comment
70print '<th class="linecolcomment"></th>';
71
72// Note
73print '<th class="linecolrank right" style="width: 80px">'.$form->textwithpicto($langs->trans("Level"), $langs->trans('EmployeeRank')).'</th>';
74
75
76print "</tr>\n";
77print "</thead>\n";
78
79print "<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:66
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.