Ajout bouton "créer" dans les onglets d'un projet

This commit is contained in:
Regis Houssin 2006-04-10 13:09:19 +00:00
parent c928c3ca64
commit c1f7367bd6
2 changed files with 8 additions and 2 deletions

View File

@ -55,6 +55,12 @@ print_titre($langs->trans("NewProp"));
$html=new Form($db); $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 '<tr>'; print '<tr>';
print '<td valign="top">'.$langs->trans("Project").'</td><td colspan="2">'; print '<td valign="top">'.$langs->trans("Project").'</td><td colspan="2">';
$numprojet=$html->select_projects($soc->id,0,'projetidp'); $numprojet=$html->select_projects($soc->id,$projetid,'projetidp');
if ($numprojet==0) if ($numprojet==0)
{ {
print ' &nbsp; <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>'; print ' &nbsp; <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>';

View File

@ -128,7 +128,7 @@ print '</table>';
if ($conf->propal->enabled && $user->rights->propale->creer) if ($conf->propal->enabled && $user->rights->propale->creer)
{ {
$langs->load("propal"); $langs->load("propal");
print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/addpropal.php?socidp='.$projet->societe->id.'&amp;action=create">'.$langs->trans("AddProp").'</a>'; print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/addpropal.php?socidp='.$projet->societe->id.'&amp;action=create&amp;projetid='.$projet->id.'">'.$langs->trans("AddProp").'</a>';
} }
print '</div>'; print '</div>';