28if (empty($object) || !is_object($object)) {
29 print
"Error: this template page cannot be called directly as an URL";
33global $forcetoshowtitlelines;
41print
"<!-- BEGIN PHP TEMPLATE productattributevalueline_create.tpl.php -->\n";
42$nolinesbefore = (count($this->lines) == 0 || $forcetoshowtitlelines);
44<tr
class=
"pair nodrag nodrop nohoverpair<?php echo $nolinesbefore ? '' : ' liste_titre_create'; ?>">
48 if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
50 echo
'<td class="nobottom linecolnum center"></td>';
54 <td
class=
"nobottom linecolref">
55 <?php $coldisplay++;
if ($nolinesbefore) { echo $langs->trans(
'Ref') .
': '; } ?>
56 <input
type=
"text" name=
"line_ref" id=
"line_ref" class=
"flat" value=
"<?php echo (GETPOSTISSET("line_ref
") ? GETPOST("line_ref
", 'alpha', 2) : ''); ?>" autofocus>
58 if (is_object($hookmanager)) {
59 $parameters = array();
60 $reshook = $hookmanager->executeHooks(
'formCreateValueOptions', $parameters, $object, $action);
61 if (!empty($hookmanager->resPrint)) {
62 print $hookmanager->resPrint;
68 <td
class=
"nobottom linecolvalue"><?php $coldisplay++; ?>
69 <input
type=
"text" name=
"line_value" id=
"line_value" class=
"flat" value=
"<?php echo (GETPOSTISSET("line_value
") ? GETPOST("line_value
", 'alpha', 2) : ''); ?>">
72 <td
class=
"nobottom linecoledit center valignmiddle" colspan=
"<?php echo $colspan; ?>"><?php $coldisplay += $colspan; ?>
73 <input
type=
"submit" class=
"button reposition small" value=
"<?php echo $langs->trans('Add'); ?>" name=
"addline" id=
"addline">
77<!-- END PHP TEMPLATE productattributevalueline_create.tpl.php -->
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.