595 |
$propal = New Propal($db); |
$propal = New Propal($db); |
596 |
$propal->fetch($_GET["propalid"]); |
$propal->fetch($_GET["propalid"]); |
597 |
$societe_id = $propal->soc_id; |
$societe_id = $propal->soc_id; |
598 |
|
$projet=$propal->projetidp; |
599 |
$soc->fetch($societe_id); |
$soc->fetch($societe_id); |
600 |
} |
} |
601 |
elseif ($_GET["commandeid"]) |
elseif ($_GET["commandeid"]) |
603 |
$commande = New Commande($db); |
$commande = New Commande($db); |
604 |
$commande->fetch($_GET["commandeid"]); |
$commande->fetch($_GET["commandeid"]); |
605 |
$societe_id = $commande->soc_id; |
$societe_id = $commande->soc_id; |
606 |
|
$projet=$commande-> projet_id; |
607 |
$soc->fetch($societe_id); |
$soc->fetch($societe_id); |
608 |
} |
} |
609 |
elseif ($_GET["contratid"]) |
elseif ($_GET["contratid"]) |
611 |
$contrat = New Contrat($db); |
$contrat = New Contrat($db); |
612 |
$contrat->fetch($_GET["contratid"]); |
$contrat->fetch($_GET["contratid"]); |
613 |
$societe_id = $contrat->societe->id; |
$societe_id = $contrat->societe->id; |
614 |
|
$projet=$contrat->fk_projet; |
615 |
$soc=$contrat->societe; |
$soc=$contrat->societe; |
616 |
} |
} |
617 |
else |
else |
674 |
{ |
{ |
675 |
$langs->load("projects"); |
$langs->load("projects"); |
676 |
print '<tr><td>'.$langs->trans("Project").'</td><td>'; |
print '<tr><td>'.$langs->trans("Project").'</td><td>'; |
677 |
$html->select_projects($societe_id); |
$html->select_projects($societe_id, $projet, "projetid"); |
678 |
print "</td></tr>"; |
print "</td></tr>"; |
679 |
} |
} |
680 |
else |
else |