Fixing style errors.
This commit is contained in:
parent
22249d15c3
commit
bb2f57a962
@ -764,18 +764,18 @@ if ($action == 'create' && $user->rights->projet->creer && (empty($object->third
|
||||
print '<tr><td class="tdtop">'.$langs->trans("Description").'</td>';
|
||||
print '<td>';
|
||||
|
||||
if (empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) {
|
||||
print '<textarea name="description" class="quatrevingtpercent" rows="'.ROWS_4.'">'.$description.'</textarea>';
|
||||
} else {
|
||||
// WYSIWYG editor
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||
$cked_enabled = (!empty($conf->global->FCKEDITOR_ENABLE_DETAILS) ? $conf->global->FCKEDITOR_ENABLE_DETAILS : 0);
|
||||
if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
|
||||
$nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
|
||||
}
|
||||
$doleditor = new DolEditor('description', $object->description, '', 80, 'dolibarr_details', '', false, true, $cked_enabled, $nbrows);
|
||||
print $doleditor->Create();
|
||||
}
|
||||
if (empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) {
|
||||
print '<textarea name="description" class="quatrevingtpercent" rows="'.ROWS_4.'">'.$description.'</textarea>';
|
||||
} else {
|
||||
// WYSIWYG editor
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||
$cked_enabled = (!empty($conf->global->FCKEDITOR_ENABLE_DETAILS) ? $conf->global->FCKEDITOR_ENABLE_DETAILS : 0);
|
||||
if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
|
||||
$nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
|
||||
}
|
||||
$doleditor = new DolEditor('description', $object->description, '', 80, 'dolibarr_details', '', false, true, $cked_enabled, $nbrows);
|
||||
print $doleditor->Create();
|
||||
}
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
@ -100,8 +100,8 @@ if ($action == 'update' && !GETPOST("cancel") && $user->rights->projet->creer) {
|
||||
|
||||
$object->ref = $taskref ? $taskref : GETPOST("ref", 'alpha', 2);
|
||||
$object->label = GETPOST("label", "alphanohtml");
|
||||
if (empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $object->description = GETPOST('description', "alphanohtml");
|
||||
else $object->description = GETPOST('description', "restricthtml");
|
||||
if (empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $object->description = GETPOST('description', "alphanohtml");
|
||||
else $object->description = GETPOST('description', "restricthtml");
|
||||
$object->fk_task_parent = $task_parent;
|
||||
$object->planned_workload = $planned_workload;
|
||||
$object->date_start = dol_mktime(GETPOST('dateohour', 'int'), GETPOST('dateomin', 'int'), 0, GETPOST('dateomonth', 'int'), GETPOST('dateoday', 'int'), GETPOST('dateoyear', 'int'));
|
||||
@ -442,19 +442,19 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<tr><td class="tdtop">'.$langs->trans("Description").'</td>';
|
||||
print '<td>';
|
||||
|
||||
if (empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) {
|
||||
print '<textarea name="description" class="quatrevingtpercent" rows="'.ROWS_4.'">'.$object->description.'</textarea>';
|
||||
} else {
|
||||
// WYSIWYG editor
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||
$cked_enabled = (!empty($conf->global->FCKEDITOR_ENABLE_DETAILS) ? $conf->global->FCKEDITOR_ENABLE_DETAILS : 0);
|
||||
if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
|
||||
$nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
|
||||
}
|
||||
$description = !empty($description) ? $description : $object->description;
|
||||
$doleditor = new DolEditor('description', $description, '', 80, 'dolibarr_details', '', false, true, $cked_enabled, $nbrows);
|
||||
print $doleditor->Create();
|
||||
}
|
||||
if (empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) {
|
||||
print '<textarea name="description" class="quatrevingtpercent" rows="'.ROWS_4.'">'.$object->description.'</textarea>';
|
||||
} else {
|
||||
// WYSIWYG editor
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||
$cked_enabled = (!empty($conf->global->FCKEDITOR_ENABLE_DETAILS) ? $conf->global->FCKEDITOR_ENABLE_DETAILS : 0);
|
||||
if (!empty($conf->global->MAIN_INPUT_DESC_HEIGHT)) {
|
||||
$nbrows = $conf->global->MAIN_INPUT_DESC_HEIGHT;
|
||||
}
|
||||
$description = !empty($description) ? $description : $object->description;
|
||||
$doleditor = new DolEditor('description', $description, '', 80, 'dolibarr_details', '', false, true, $cked_enabled, $nbrows);
|
||||
print $doleditor->Create();
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td>'.$langs->trans("Budget").'</td>';
|
||||
@ -551,11 +551,11 @@ if ($id > 0 || !empty($ref)) {
|
||||
|
||||
// Description
|
||||
print '<td class="tdtop">'.$langs->trans("Description").'</td><td colspan="3">';
|
||||
if (!empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) {
|
||||
print $object->description;
|
||||
} else {
|
||||
print nl2br($object->description);
|
||||
}
|
||||
if (!empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) {
|
||||
print $object->description;
|
||||
} else {
|
||||
print nl2br($object->description);
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
print '</table>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user