diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index ddcb88ac62f..75c754f031c 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2001-2005 Rodolphe Quiedeville * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -21,10 +21,11 @@ * */ -/** \file htdocs/projet/fiche.php - \ingroup projet - \brief Fiche projet - \version $Revision$ +/*! + \file htdocs/projet/fiche.php + \ingroup projet + \brief Fiche projet + \version $Revision$ */ require("./pre.inc.php"); @@ -32,16 +33,7 @@ require("../propal.class.php"); require("../facture.class.php"); require("../commande/commande.class.php"); -$langs->load("projects"); -$langs->load("companies"); -$langs->load("bills"); -$langs->load("orders"); - - -$user->getrights('projet'); - -if (!$user->rights->projet->lire) - accessforbidden(); +if (!$user->rights->projet->lire) accessforbidden(); if ($_POST["action"] == 'add' && $user->rights->projet->creer) @@ -125,26 +117,29 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) $hselected=$h; $h++; - if ($conf->propal->enabled) { + 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) { + } + + 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) { + 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); @@ -163,7 +158,8 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) print ''; print ''; - print ''; + print ''; + print ''; print ''; print ''; @@ -174,7 +170,9 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) else { print '
'.$langs->trans("Company").''.$projet->societe->nom.'
'.$langs->trans("Company").''.$projet->societe->nom_url.'
'.$langs->trans("Ref").'
'.$langs->trans("Label").'
 
'; - print ''; + + print ''; + print ''; print ''; print '
'.$langs->trans("Company").''.$projet->societe->nom.'
'.$langs->trans("Company").''.$projet->societe->nom_url.'
'.$langs->trans("Ref").''.$projet->ref.'
'.$langs->trans("Label").''.$projet->title.'
'; @@ -183,7 +181,6 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) print ''; - /* * Boutons actions */ @@ -193,8 +190,8 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) if ($_GET["action"] != "edit") { - print ''.$langs->trans("Edit").''; - print ''.$langs->trans("Delete").''; + print ''.$langs->trans("Edit").''; + print ''.$langs->trans("Delete").''; } print "";