dolibarr 20.0.0
skilldet.fiche.tpl.php
1<?php
2
3// Protection to avoid direct call of template
4if (empty($object) || !is_object($object)) {
5 print "Error, template page can't be called as URL";
6 exit(1);
7}
8
9if (!empty($object->table_element_line)) {
10 // Show object lines
11 $result = $object->getLinesArray();
12}
13
14
15
16print '<!-- BEGIN PHP TEMPLATE hrm/core/tpl/skilldet.fiche.tpl.php -->'."\n";
17
18print '<div class="tagtable border table-border tableforfield centpercent">'."\n";
19 print '<div class="tagtr table-border-row">'."\n";
20 $editmode = (GETPOST('action', 'aZ09') == 'edit'.$note_public);
21 print '<div class="tagtd tagtdnote tdtop'.($editmode ? '' : ' sensiblehtmlcontent').' table-key-border-col'.(empty($cssclass) ? '' : ' '.$cssclass).'"'.($colwidth ? ' style="width: '.$colwidth.'%"' : '').'>'."\n";
22 print $form->editfieldkey("NotePublic", $note_public, $value_public, $object, $permission, $typeofdata, $moreparam, '', 0);
23 print '</div>'."\n";
24 print '<div class="tagtd wordbreak table-val-border-col'.($editmode ? '' : ' sensiblehtmlcontent').'">'."\n";
25 print $form->editfieldval("NotePublic", $note_public, $value_public, $object, $permission, $typeofdata, '', null, null, $moreparam, 1)."\n";
26 print '</div>'."\n";
27 print '</div>'."\n";
28if (empty($user->socid)) {
29 // Private notes (always hidden to external users)
30 print '<div class="tagtr table-border-row">'."\n";
31 $editmode = (GETPOST('action', 'aZ09') == 'edit'.$note_private);
32 print '<div class="tagtd tagtdnote tdtop'.($editmode ? '' : ' sensiblehtmlcontent').' table-key-border-col'.(empty($cssclass) ? '' : ' '.$cssclass).'"'.($colwidth ? ' style="width: '.$colwidth.'%"' : '').'>'."\n";
33 print $form->editfieldkey("NotePrivate", $note_private, $value_private, $object, $permission, $typeofdata, $moreparam, '', 0);
34 print '</div>'."\n";
35 print '<div class="tagtd wordbreak table-val-border-col'.($editmode ? '' : ' sensiblehtmlcontent').'">'."\n";
36 print $form->editfieldval("NotePrivate", $note_private, $value_private, $object, $permission, $typeofdata, '', null, null, $moreparam, 1);
37 print '</div>'."\n";
38 print '</div>'."\n";
39}
40print '</div>'."\n";
41?>
42<!-- END PHP TEMPLATE NOTES-->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:58
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.