39 print
"Error: this template page cannot be called directly as an URL";
43'@phan-var-force CommonObject $object
44 @phan-var-force CommonObject $this';
46global $forcetoshowtitlelines;
54print
"<!-- BEGIN PHP TEMPLATE productattributevalueline_create.tpl.php -->\n";
55$nolinesbefore = (count($this->lines) == 0 || $forcetoshowtitlelines);
57<tr
class=
"pair nodrag nodrop nohoverpair<?php echo $nolinesbefore ? '' : ' liste_titre_create'; ?>">
63 echo
'<td class="nobottom linecolnum center"></td>';
67 <td
class=
"nobottom linecolref">
68 <?php $coldisplay++;
if ($nolinesbefore) {
69 echo $langs->trans(
'Ref') .
': ';
71 <input
type=
"text" name=
"line_ref" id=
"line_ref" class=
"flat" value=
"<?php echo(GETPOSTISSET("line_ref
") ? GETPOST("line_ref
", 'alpha', 2) : ''); ?>" autofocus>
73 if (is_object($hookmanager)) {
74 $parameters = array();
75 $reshook = $hookmanager->executeHooks(
'formCreateValueOptions', $parameters,
$object, $action);
76 if (!empty($hookmanager->resPrint)) {
77 print $hookmanager->resPrint;
83 <td
class=
"nobottom linecolvalue"><?php $coldisplay++; ?>
84 <input
type=
"text" name=
"line_value" id=
"line_value" class=
"flat" value=
"<?php echo(GETPOSTISSET("line_value
") ? GETPOST("line_value
", 'alpha', 2) : ''); ?>">
87 <td
class=
"nobottom linecoledit center valignmiddle" colspan=
"<?php echo $colspan; ?>"><?php $coldisplay += $colspan; ?>
88 <input
type=
"submit" class=
"button reposition small" value=
"<?php echo $langs->trans('Add'); ?>" name=
"addline" id=
"addline">
92<!-- END PHP TEMPLATE productattributevalueline_create.tpl.php -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
$conf db name
Only used if Module[ID]Name translation string is not found.