dolibarr
18.0.6
Main Page
Related Pages
Topics
Classes
Files
File List
File Members
dolibarr_18.0
htdocs
variants
tpl
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->rights->$element->creer)
22
* $permtoedit (used to replace test $user->rights->$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
31
if
(empty($object) || !is_object($object)) {
32
print
"Error, template page can't be called as URL"
;
33
exit;
34
}
35
36
print
"<!-- BEGIN PHP TEMPLATE productattributevalueline_title.tpl.php -->\n"
;
37
38
// Title line
39
print
"<thead>\n"
;
40
41
print
'<tr class="liste_titre nodrag nodrop">'
;
42
43
// Adds a line numbering column
44
if
(!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
45
print
'<td class="linecolnum center"> </td>'
;
46
}
47
48
// Ref
49
print
'<td class="linecolref">'
.$langs->trans(
'Ref'
).
'</td>'
;
50
51
// Value
52
print
'<td class="linecolvalue">'
.$langs->trans(
'Value'
).
'</td>'
;
53
54
print
'<td class="linecoledit"></td>'
;
// No width to allow autodim
55
56
print
'<td class="linecoldelete" style="width: 10px"></td>'
;
57
58
print
'<td class="linecolmove" style="width: 10px"></td>'
;
59
60
if
($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
67
print
"</tr>\n"
;
68
print
"</thead>\n"
;
69
70
print
"<!-- END PHP TEMPLATE productattributevalueline_title.tpl.php -->\n"
;
Generated on Sat Nov 2 2024 01:00:31 for
dolibarr
by Doxygen 1.11.0