29 print
"Error: this template page cannot be called directly as an URL";
33'@phan-var-force CommonObject $this
34 @phan-var-force CommonObject $this';
36global $forcetoshowtitlelines;
44print
"<!-- BEGIN PHP TEMPLATE productattributevalueline_create.tpl.php -->\n";
45$nolinesbefore = (count($this->lines) == 0 || $forcetoshowtitlelines);
47<tr
class=
"pair nodrag nodrop nohoverpair<?php echo $nolinesbefore ? '' : ' liste_titre_create'; ?>">
53 echo
'<td class="nobottom linecolnum center"></td>';
57 <td
class=
"nobottom linecolref">
58 <?php $coldisplay++;
if ($nolinesbefore) {
59 echo $langs->trans(
'Ref') .
': ';
61 <input
type=
"text" name=
"line_ref" id=
"line_ref" class=
"flat" value=
"<?php echo(GETPOSTISSET("line_ref
") ? GETPOST("line_ref
", 'alpha', 2) : ''); ?>" autofocus>
63 if (is_object($hookmanager)) {
64 $parameters = array();
65 $reshook = $hookmanager->executeHooks(
'formCreateValueOptions', $parameters,
$object, $action);
66 if (!empty($hookmanager->resPrint)) {
67 print $hookmanager->resPrint;
73 <td
class=
"nobottom linecolvalue"><?php $coldisplay++; ?>
74 <input
type=
"text" name=
"line_value" id=
"line_value" class=
"flat" value=
"<?php echo(GETPOSTISSET("line_value
") ? GETPOST("line_value
", 'alpha', 2) : ''); ?>">
77 <td
class=
"nobottom linecoledit center valignmiddle" colspan=
"<?php echo $colspan; ?>"><?php $coldisplay += $colspan; ?>
78 <input
type=
"submit" class=
"button reposition small" value=
"<?php echo $langs->trans('Add'); ?>" name=
"addline" id=
"addline">
82<!-- 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.