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'; ?>">
50 echo
'<td class="nobottom linecolnum center"></td>';
54 <td
class=
"nobottom linecolref">
55 <?php $coldisplay++;
if ($nolinesbefore) {
56 echo $langs->trans(
'Ref') .
': ';
58 <input
type=
"text" name=
"line_ref" id=
"line_ref" class=
"flat" value=
"<?php echo(GETPOSTISSET("line_ref
") ? GETPOST("line_ref
", 'alpha', 2) : ''); ?>" autofocus>
60 if (is_object($hookmanager)) {
61 $parameters = array();
62 $reshook = $hookmanager->executeHooks(
'formCreateValueOptions', $parameters, $object, $action);
63 if (!empty($hookmanager->resPrint)) {
64 print $hookmanager->resPrint;
70 <td
class=
"nobottom linecolvalue"><?php $coldisplay++; ?>
71 <input
type=
"text" name=
"line_value" id=
"line_value" class=
"flat" value=
"<?php echo(GETPOSTISSET("line_value
") ? GETPOST("line_value
", 'alpha', 2) : ''); ?>">
74 <td
class=
"nobottom linecoledit center valignmiddle" colspan=
"<?php echo $colspan; ?>"><?php $coldisplay += $colspan; ?>
75 <input
type=
"submit" class=
"button reposition small" value=
"<?php echo $langs->trans('Add'); ?>" name=
"addline" id=
"addline">
79<!-- END PHP TEMPLATE productattributevalueline_create.tpl.php -->
getDolGlobalString($key, $default='')
Return 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.