dolibarr 21.0.0-beta
productattributevalueline_title.tpl.php
1<?php
2/* Copyright (C) 2022 Open-Dsi <support@open-dsi.fr>
3 * Copyright (C) 2024 Frédéric France <frederic.france@free.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 * Need to have the following variables defined:
19 * $object (invoice, order, ...)
20 * $conf
21 * $langs
22 * $element (used to 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}
41print "<!-- BEGIN PHP TEMPLATE productattributevalueline_title.tpl.php -->\n";
42
43// Title line
44print "<thead>\n";
45
46print '<tr class="liste_titre nodrag nodrop">';
47
48// Adds a line numbering column
49if (getDolGlobalString('MAIN_VIEW_LINE_NUMBER')) {
50 print '<td class="linecolnum center">&nbsp;</td>';
51}
52
53// Ref
54print '<td class="linecolref">'.$langs->trans('Ref').'</td>';
55
56// Value
57print '<td class="linecolvalue">'.$langs->trans('Value').'</td>';
58
59print '<td class="linecoledit"></td>'; // No width to allow autodim
60
61print '<td class="linecoldelete" style="width: 10px"></td>';
62
63print '<td class="linecolmove" style="width: 10px"></td>';
64
65if ($action == 'selectlines') {
66 print '<td class="linecolcheckall center">';
67 print '<input type="checkbox" class="linecheckboxtoggle" />';
68 print '<script>$(document).ready(function() {$(".linecheckboxtoggle").click(function() {var checkBoxes = $(".linecheckbox");checkBoxes.prop("checked", this.checked);})});</script>';
69 print '</td>';
70}
71
72print "</tr>\n";
73print "</thead>\n";
74
75print "<!-- END PHP TEMPLATE productattributevalueline_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.