Ajout bouton "créer" dans les onglets d'un projet
This commit is contained in:
parent
c928c3ca64
commit
c1f7367bd6
@ -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 ' <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>';
|
print ' <a href=../projet/fiche.php?socidp='.$soc->id.'&action=create>'.$langs->trans("AddProject").'</a>';
|
||||||
|
|||||||
@ -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.'&action=create">'.$langs->trans("AddProp").'</a>';
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/addpropal.php?socidp='.$projet->societe->id.'&action=create&projetid='.$projet->id.'">'.$langs->trans("AddProp").'</a>';
|
||||||
}
|
}
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user