Fix: add MAIN_INPUT_DESC_HEIGHT in update line

This commit is contained in:
Regis Houssin 2010-01-25 13:45:13 +00:00
parent 4223eacb7a
commit 5bffa5399a
5 changed files with 15 additions and 7 deletions

View File

@ -1613,7 +1613,9 @@ if ($id > 0 || ! empty($ref))
} }
else else
{ {
print '<textarea name="desc" cols="70" class="flat" rows="'.ROWS_2.'">'.dol_htmlentitiesbr_decode($objp->description).'</textarea>'; $nbrows=ROWS_2;
if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
print '<textarea name="desc" cols="70" class="flat" rows="'.$nbrows.'">'.dol_htmlentitiesbr_decode($objp->description).'</textarea>';
} }
} }
print '</td>'; print '</td>';

View File

@ -1805,8 +1805,9 @@ else
} }
else else
{ {
print '<textarea name="eldesc" class="flat" cols="70" rows="'.ROWS_2.'">'; $nbrows=ROWS_2;
//print $objp->description; if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
print '<textarea name="eldesc" class="flat" cols="70" rows="'.$nbrows.'">';
print dol_htmlentitiesbr_decode($objp->description); print dol_htmlentitiesbr_decode($objp->description);
print '</textarea>'; print '</textarea>';
} }

View File

@ -3016,8 +3016,9 @@ else
} }
else else
{ {
print '<textarea name="desc" class="flat" cols="70" rows="'.ROWS_2.'">'; $nbrows=ROWS_2;
//print $objp->description; if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
print '<textarea name="desc" class="flat" cols="70" rows="'.$nbrows.'">';
print dol_htmlentitiesbr_decode($objp->description); print dol_htmlentitiesbr_decode($objp->description);
print '</textarea>'; print '</textarea>';
} }

View File

@ -858,7 +858,9 @@ if ($id > 0 || ! empty($ref))
} }
else else
{ {
print '<textarea name="eldesc" class="flat" cols="70" rows="'.ROWS_2.'">'.dol_htmlentitiesbr_decode($commandline->description).'</textarea>'; $nbrows=ROWS_2;
if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
print '<textarea name="eldesc" class="flat" cols="70" rows="'.$nbrows.'">'.dol_htmlentitiesbr_decode($commandline->description).'</textarea>';
} }
print '</td>'; print '</td>';
print '<td>'; print '<td>';

View File

@ -942,7 +942,9 @@ else
} }
else else
{ {
print '<textarea name="label" class="flat" cols="70" rows="'.ROWS_2.'">'.dol_htmlentitiesbr_decode($fac->lignes[$i]->description).'</textarea>'; $nbrows=ROWS_2;
if (! empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) $nbrows=$conf->global->MAIN_INPUT_DESC_HEIGHT;
print '<textarea name="label" class="flat" cols="70" rows="'.$nbrows.'">'.dol_htmlentitiesbr_decode($fac->lignes[$i]->description).'</textarea>';
} }
print '</td>'; print '</td>';