* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: task.php,v 1.1 2005/08/21 12:39:11 rodolphe Exp $ * $Source: /srv/cvs/sources/dolibarr/dolibarr/htdocs/projet/tasks/task.php,v $ * */ /** \file htdocs/projet/tasks/fiche.php \ingroup projet \brief Fiche tāches d'un projet \version $Revision: 1.1 $ */ require("./pre.inc.php"); if (!$user->rights->projet->lire) accessforbidden(); llxHeader("",$langs->trans("Task")); if ($_GET["id"] > 0) { /* * Fiche projet en mode visu * */ $task = new Task($db); if ($task->fetch($_GET["id"]) == 0 ) { $projet = new Project($db); $projet->fetch($task->projet_id); $projet->societe->fetch($projet->societe->id); $h=0; $head[$h][0] = DOL_URL_ROOT.'/projet/fiche.php?id='.$projet->id; $head[$h][1] = $langs->trans("Project"); $h++; $head[$h][0] = DOL_URL_ROOT.'/projet/tasks/fiche.php?id='.$projet->id; $head[$h][1] = $langs->trans("Tasks"); $hselected=$h; $h++; if ($conf->propal->enabled) { $langs->load("propal"); $head[$h][0] = DOL_URL_ROOT.'/projet/propal.php?id='.$projet->id; $head[$h][1] = $langs->trans("Proposals"); $h++; } if ($conf->commande->enabled) { $langs->load("orders"); $head[$h][0] = DOL_URL_ROOT.'/projet/commandes.php?id='.$projet->id; $head[$h][1] = $langs->trans("Orders"); $h++; } if ($conf->facture->enabled) { $langs->load("bills"); $head[$h][0] = DOL_URL_ROOT.'/projet/facture.php?id='.$projet->id; $head[$h][1] = $langs->trans("Bills"); $h++; } dolibarr_fiche_head($head, $hselected, $langs->trans("Project").": ".$projet->ref); print '
'.$langs->trans("Task").' | '; print ''.$langs->trans("DurationEffective").' | '; print ''.$langs->trans("AddDuration").' | '; print "|
'.$task_time[0].' | '; print ''.$task_time[1].' | '; print ''.$task_time[3].' | '; print "