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