From c1f7367bd644d9bc0e561425b8ee3a4abfcbf39f Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 10 Apr 2006 13:09:19 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20bouton=20"cr=E9er"=20dans=20les=20ongle?= =?UTF-8?q?ts=20d'un=20projet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/addpropal.php | 8 +++++++- htdocs/projet/propal.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/addpropal.php b/htdocs/comm/addpropal.php index c75f9d2d90b..795549285d8 100644 --- a/htdocs/comm/addpropal.php +++ b/htdocs/comm/addpropal.php @@ -55,6 +55,12 @@ print_titre($langs->trans("NewProp")); $html=new Form($db); +//récupération de l'id de projet +$projetid = 0 +if ($_GET["projetid"]) +{ + $projetid = $_GET["projetid"] +} /* * @@ -224,7 +230,7 @@ if ($_GET["action"] == 'create') print ''; print ''.$langs->trans("Project").''; - $numprojet=$html->select_projects($soc->id,0,'projetidp'); + $numprojet=$html->select_projects($soc->id,$projetid,'projetidp'); if ($numprojet==0) { print '   id.'&action=create>'.$langs->trans("AddProject").''; diff --git a/htdocs/projet/propal.php b/htdocs/projet/propal.php index 2e6690abf72..eb602e023b2 100644 --- a/htdocs/projet/propal.php +++ b/htdocs/projet/propal.php @@ -128,7 +128,7 @@ print ''; if ($conf->propal->enabled && $user->rights->propale->creer) { $langs->load("propal"); - print ''.$langs->trans("AddProp").''; + print ''.$langs->trans("AddProp").''; } print '';