dolibarr 20.0.0
productattributevalueline_title.tpl.php
1<?php
2/* Copyright (C) 2022 Open-Dsi <support@open-dsi.fr>
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 <https://www.gnu.org/licenses/>.
16 *
17 * Need to have following variables defined:
18 * $object (invoice, order, ...)
19 * $conf
20 * $langs
21 * $element (used to test $user->hasRight('element', 'creer'))
22 * $permtoedit (used to replace test $user->hasright('element', 'creer'))
23 * $inputalsopricewithtax (0 by default, 1 to also show column with unit price including tax)
24 * $outputalsopricetotalwithtax
25 * $usemargins (0 to disable all margins columns, 1 to show according to margin setup)
26 *
27 * $type, $text, $description, $line
28 */
29
30// Protection to avoid direct call of template
31if (empty($object) || !is_object($object)) {
32 print "Error, template page can't be called as URL";
33 exit(1);
34}
35
36print "<!-- BEGIN PHP TEMPLATE productattributevalueline_title.tpl.php -->\n";
37
38// Title line
39print "<thead>\n";
40
41print '<tr class="liste_titre nodrag nodrop">';
42
43// Adds a line numbering column
44if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) {
45 print '<td class="linecolnum center">&nbsp;</td>';
46}
47
48// Ref
49print '<td class="linecolref">'.$langs->trans('Ref').'</td>';
50
51// Value
52print '<td class="linecolvalue">'.$langs->trans('Value').'</td>';
53
54print '<td class="linecoledit"></td>'; // No width to allow autodim
55
56print '<td class="linecoldelete" style="width: 10px"></td>';
57
58print '<td class="linecolmove" style="width: 10px"></td>';
59
60if ($action == 'selectlines') {
61 print '<td class="linecolcheckall center">';
62 print '<input type="checkbox" class="linecheckboxtoggle" />';
63 print '<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
64 print '</td>';
65}
66
67print "</tr>\n";
68print "</thead>\n";
69
70print "<!-- END PHP TEMPLATE productattributevalueline_title.tpl.php -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:58
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.