Debug v16
This commit is contained in:
parent
7d3938c796
commit
c1904f0e5e
@ -700,11 +700,14 @@ class FormOther
|
|||||||
print ' selected';
|
print ' selected';
|
||||||
}
|
}
|
||||||
|
|
||||||
$labeltoshow = $langs->trans("Project").' '.$lines[$i]->projectref;
|
$labeltoshow = $lines[$i]->projectref;
|
||||||
|
//$labeltoshow .= ' '.$lines[$i]->projectlabel;
|
||||||
if (empty($lines[$i]->public)) {
|
if (empty($lines[$i]->public)) {
|
||||||
$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("PrivateProject").')</span>';
|
//$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("PrivateProject").')</span>';
|
||||||
|
$labeltoshow = img_picto($lines[$i]->projectlabel, 'project', 'class="pictofixedwidth"').$labeltoshow;
|
||||||
} else {
|
} else {
|
||||||
$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("SharedProject").')</span>';
|
//$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("SharedProject").')</span>';
|
||||||
|
$labeltoshow = img_picto($lines[$i]->projectlabel, 'projectpub', 'class="pictofixedwidth"').$labeltoshow;
|
||||||
}
|
}
|
||||||
|
|
||||||
print ' data-html="'.dol_escape_htmltag($labeltoshow).'"';
|
print ' data-html="'.dol_escape_htmltag($labeltoshow).'"';
|
||||||
@ -738,12 +741,14 @@ class FormOther
|
|||||||
print ' disabled';
|
print ' disabled';
|
||||||
}
|
}
|
||||||
|
|
||||||
$labeltoshow = $langs->trans("Project").' '.$lines[$i]->projectref;
|
$labeltoshow = $lines[$i]->projectref;
|
||||||
$labeltoshow .= ' '.$lines[$i]->projectlabel;
|
//$labeltoshow .= ' '.$lines[$i]->projectlabel;
|
||||||
if (empty($lines[$i]->public)) {
|
if (empty($lines[$i]->public)) {
|
||||||
$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("PrivateProject").')</span>';
|
//$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("PrivateProject").')</span>';
|
||||||
|
$labeltoshow = img_picto($lines[$i]->projectlabel, 'project', 'class="pictofixedwidth"').$labeltoshow;
|
||||||
} else {
|
} else {
|
||||||
$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("SharedProject").')</span>';
|
//$labeltoshow .= ' <span class="opacitymedium">('.$langs->trans("Visibility").': '.$langs->trans("SharedProject").')</span>';
|
||||||
|
$labeltoshow = img_picto($lines[$i]->projectlabel, 'projectpub', 'class="pictofixedwidth"').$labeltoshow;
|
||||||
}
|
}
|
||||||
if ($lines[$i]->id) {
|
if ($lines[$i]->id) {
|
||||||
$labeltoshow .= ' > ';
|
$labeltoshow .= ' > ';
|
||||||
|
|||||||
@ -650,7 +650,7 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
|||||||
|
|
||||||
if ($showproject) {
|
if ($showproject) {
|
||||||
// Project ref
|
// Project ref
|
||||||
print "<td>";
|
print '<td class="nowraponall">';
|
||||||
//if ($showlineingray) print '<i>';
|
//if ($showlineingray) print '<i>';
|
||||||
if ($lines[$i]->public || in_array($lines[$i]->fk_project, $projectsArrayId) || !empty($user->rights->projet->all->lire)) {
|
if ($lines[$i]->public || in_array($lines[$i]->fk_project, $projectsArrayId) || !empty($user->rights->projet->all->lire)) {
|
||||||
print $projectstatic->getNomUrl(1);
|
print $projectstatic->getNomUrl(1);
|
||||||
@ -701,21 +701,21 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (count($arrayfields) > 0 && !empty($arrayfields['t.description']['checked'])) {
|
if (count($arrayfields) > 0 && !empty($arrayfields['t.description']['checked'])) {
|
||||||
print "<td>";
|
print '<td class="tdoverflowmax200" title="'.dol_escape_htmltag($lines[$i]->description).'">';
|
||||||
print $lines[$i]->description;
|
print $lines[$i]->description;
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Date start
|
// Date start
|
||||||
if (count($arrayfields) > 0 && !empty($arrayfields['t.dateo']['checked'])) {
|
if (count($arrayfields) > 0 && !empty($arrayfields['t.dateo']['checked'])) {
|
||||||
print '<td class="center">';
|
print '<td class="center nowraponall">';
|
||||||
print dol_print_date($lines[$i]->date_start, 'dayhour');
|
print dol_print_date($lines[$i]->date_start, 'dayhour');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Date end
|
// Date end
|
||||||
if (count($arrayfields) > 0 && !empty($arrayfields['t.datee']['checked'])) {
|
if (count($arrayfields) > 0 && !empty($arrayfields['t.datee']['checked'])) {
|
||||||
print '<td class="center">';
|
print '<td class="center nowraponall">';
|
||||||
print dol_print_date($lines[$i]->date_end, 'dayhour');
|
print dol_print_date($lines[$i]->date_end, 'dayhour');
|
||||||
if ($taskstatic->hasDelay()) {
|
if ($taskstatic->hasDelay()) {
|
||||||
print img_warning($langs->trans("Late"));
|
print img_warning($langs->trans("Late"));
|
||||||
|
|||||||
@ -729,16 +729,21 @@ if ($action == 'create' && $user->rights->projet->creer && (empty($object->third
|
|||||||
// Project
|
// Project
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("ChildOfProjectTask").'</td><td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("ChildOfProjectTask").'</td><td>';
|
||||||
print img_picto('', 'project');
|
print img_picto('', 'project');
|
||||||
$formother->selectProjectTasks(GETPOST('task_parent'), !empty($projectid) ? $projectid : $object->id, 'task_parent', 0, 0, 1, 1, 0, '0,1', 'maxwidth500');
|
$formother->selectProjectTasks(GETPOST('task_parent'), empty($projectid) ? $object->id : $projectid, 'task_parent', 0, 0, 1, 1, 0, '0,1', 'maxwidth500 widthcentpercentminusxx');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
$contactsofproject = (empty($object->id) ? '' : $object->getListContactId('internal'));
|
||||||
|
|
||||||
// Assigned to
|
// Assigned to
|
||||||
print '<tr><td>'.$langs->trans("AffectedTo").'</td><td>';
|
print '<tr><td>'.$langs->trans("AffectedTo").'</td><td>';
|
||||||
$contactsofproject = (!empty($object->id) ? $object->getListContactId('internal') : '');
|
|
||||||
if (is_array($contactsofproject) && count($contactsofproject)) {
|
if (is_array($contactsofproject) && count($contactsofproject)) {
|
||||||
print $form->select_dolusers($user->id, 'userid', 0, '', 0, '', $contactsofproject, 0, 0, 0, '', 0, '', 'maxwidth300');
|
print $form->select_dolusers($user->id, 'userid', 0, '', 0, '', $contactsofproject, 0, 0, 0, '', 0, '', 'maxwidth300');
|
||||||
} else {
|
} else {
|
||||||
print '<span class="opacitymedium">'.$langs->trans("NoUserAssignedToTheProject").'</span>';
|
if ($projectid > 0 || $object->id > 0) {
|
||||||
|
print '<span class="opacitymedium">'.$langs->trans("NoUserAssignedToTheProject").'</span>';
|
||||||
|
} else {
|
||||||
|
print $form->select_dolusers($user->id, 'userid', 0, '', 0, '', '', 0, 0, 0, '', 0, '', 'maxwidth300');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user