Ajout bouton "crer" dans les onglets d'un projet

This commit is contained in:
Regis Houssin
2006-04-10 13:18:40 +00:00
parent ff5f770786
commit f42bbfb422
5 changed files with 22 additions and 9 deletions

View File

@@ -56,6 +56,12 @@ if ($user->societe_id > 0)
$socidp = $user->societe_id;
}
// R<>cup<75>ration de l'id de projet
$projetid = 0;
if ($_GET["projetid"])
{
$projetid = $_GET["projetid"];
}
/*
* Actions
@@ -373,7 +379,7 @@ if ($_GET['action'] == 'create' && $user->rights->commande->creer)
if ($conf->projet->enabled)
{
print '<tr><td>'.$langs->trans('Project').'</td><td>';
$html->select_projects($soc->id,'','projetid');
$html->select_projects($soc->id,$projetid,'projetid');
print '</td></tr>';
}