28 if (empty($object) || !is_object($object)) {
29 print
"Error: this template page cannot be called directly as an URL";
33 global $forcetoshowtitlelines;
41 print
"<!-- BEGIN PHP TEMPLATE productattributevalueline_create.tpl.php -->\n";
42 $nolinesbefore = (count($this->lines) == 0 || $forcetoshowtitlelines);
45 <tr
class=
"liste_titre<?php echo ($nolinesbefore ? '' : ' liste_titre_add_') ?> nodrag nodrop">
46 <?php
if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) { ?>
47 <td
class=
"linecolnum center"></td>
49 <td
class=
"linecolref">
50 <div
id=
"add"></div><span
class=
"hideonsmartphone"><?php echo $langs->trans(
'AddNewLine'); ?></span>
52 <td
class=
"linecolvalue"><span
id=
"title_vat"><?php echo $langs->trans(
'Value'); ?></span></td>
53 <td
class=
"linecoledit" colspan=
"<?php echo $colspan; ?>"> </td>
58 <tr
class=
"pair nodrag nodrop nohoverpair<?php echo $nolinesbefore ? '' : ' liste_titre_create'; ?>">
62 if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
64 echo
'<td class="nobottom linecolnum center"></td>';
68 <td
class=
"nobottom linecolref">
69 <?php $coldisplay++;
if ($nolinesbefore) { echo $langs->trans(
'Ref') .
': '; } ?>
70 <input
type=
"text" name=
"line_ref" id=
"line_ref" class=
"flat" value=
"<?php echo (GETPOSTISSET("line_ref
") ? GETPOST("line_ref
", 'alpha', 2) : ''); ?>" autofocus>
72 if (is_object($hookmanager)) {
73 $parameters = array();
74 $reshook = $hookmanager->executeHooks(
'formCreateValueOptions', $parameters, $object, $action);
75 if (!empty($hookmanager->resPrint)) {
76 print $hookmanager->resPrint;
82 <td
class=
"nobottom linecolvalue"><?php $coldisplay++; ?>
83 <input
type=
"text" name=
"line_value" id=
"line_value" class=
"flat" value=
"<?php echo (GETPOSTISSET("line_value
") ? GETPOST("line_value
", 'alpha', 2) : ''); ?>">
86 <td
class=
"nobottom linecoledit center valignmiddle" colspan=
"<?php echo $colspan; ?>"><?php $coldisplay += $colspan; ?>
87 <input
type=
"submit" class=
"button reposition small" value=
"<?php echo $langs->trans('Add'); ?>" name=
"addline" id=
"addline">
91 <!-- 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.