Suppression du formulaire ajout lien sur les projets
This commit is contained in:
parent
b664725f79
commit
5722c9eceb
@ -46,7 +46,7 @@ Function PLines(&$inc, $parent, $lines, &$level, &$var)
|
|||||||
if ($lines[$i][1] == $parent)
|
if ($lines[$i][1] == $parent)
|
||||||
{
|
{
|
||||||
print "<tr $bc[$var]>\n<td>";
|
print "<tr $bc[$var]>\n<td>";
|
||||||
print $lines[$i][4].'</td><td>';
|
print '<a href="fiche.php?id='.$lines[$i][5].'">'.$lines[$i][4]."</a></td><td>\n";
|
||||||
|
|
||||||
for ($k = 0 ; $k < $level ; $k++)
|
for ($k = 0 ; $k < $level ; $k++)
|
||||||
{
|
{
|
||||||
@ -60,8 +60,6 @@ Function PLines(&$inc, $parent, $lines, &$level, &$var)
|
|||||||
$minutes = substr("00"."$minutes", -2);
|
$minutes = substr("00"."$minutes", -2);
|
||||||
|
|
||||||
print '<td align="right">'.$heure." h ".$minutes."</td>\n";
|
print '<td align="right">'.$heure." h ".$minutes."</td>\n";
|
||||||
print '<td><input size="4" type="text" class="flat" name="task'.$lines[$i][2].'" value="">';
|
|
||||||
print ' <input type="submit" class="flat" value="'.$langs->trans("Save").'"></td>';
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$inc++;
|
$inc++;
|
||||||
$level++;
|
$level++;
|
||||||
@ -84,14 +82,15 @@ llxHeader("",$langs->trans("Mytasks"),"Projet");
|
|||||||
|
|
||||||
$h=0;
|
$h=0;
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
$head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id;
|
||||||
$head[$h][1] = $langs->trans("Myprojects");
|
$head[$h][1] = $langs->trans("Mytasks");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("Mytasks"));
|
dolibarr_fiche_head($head, $hselected, $langs->trans("Mytasks"));
|
||||||
|
|
||||||
/* Liste des tâches */
|
/* Liste des tâches */
|
||||||
|
|
||||||
$sql = "SELECT t.rowid, t.title, t.fk_task_parent, t.duration_effective, p.title as ptitle";
|
$sql = "SELECT t.rowid, t.title, t.fk_task_parent, t.duration_effective";
|
||||||
|
$sql .= " , p.rowid as prowid, p.title as ptitle";
|
||||||
$sql .= " FROM ".MAIN_DB_PREFIX."projet_task as t";
|
$sql .= " FROM ".MAIN_DB_PREFIX."projet_task as t";
|
||||||
$sql .= " , ".MAIN_DB_PREFIX."projet_task_actors as a";
|
$sql .= " , ".MAIN_DB_PREFIX."projet_task_actors as a";
|
||||||
$sql .= " , ".MAIN_DB_PREFIX."projet as p";
|
$sql .= " , ".MAIN_DB_PREFIX."projet as p";
|
||||||
@ -114,6 +113,7 @@ if ($resql)
|
|||||||
$tasks[$i][2] = $obj->rowid;
|
$tasks[$i][2] = $obj->rowid;
|
||||||
$tasks[$i][3] = $obj->duration_effective;
|
$tasks[$i][3] = $obj->duration_effective;
|
||||||
$tasks[$i][4] = $obj->ptitle;
|
$tasks[$i][4] = $obj->ptitle;
|
||||||
|
$tasks[$i][5] = $obj->prowid;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
@ -123,8 +123,6 @@ else
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<form method="POST" action="fiche.php?id='.$projet->id.'">';
|
|
||||||
print '<input type="hidden" name="action" value="addtime">';
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Project").'</td>';
|
print '<td>'.$langs->trans("Project").'</td>';
|
||||||
@ -135,7 +133,6 @@ print "</tr>\n";
|
|||||||
$var=true;
|
$var=true;
|
||||||
|
|
||||||
PLines($j, 0, $tasks, $level, $var);
|
PLines($j, 0, $tasks, $level, $var);
|
||||||
print '</form>';
|
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user