Le menu des prospects accessible depuis l'espace "commercial" est persistent.

La page peut gérer les contacts clients et propsects.
This commit is contained in:
Laurent Destailleur 2004-02-21 02:21:58 +00:00
parent 303cb2dafb
commit 946d09f3d1

View File

@ -55,13 +55,16 @@ $offset = $limit * $page ;
if ($type == "c") { if ($type == "c") {
$label = " clients"; $label = " clients";
$urlfiche="fiche.php";
} }
if ($type == "p") { if ($type == "p") {
$label = " prospects"; $label = " prospects";
$urlfiche="prospect/fiche.php";
} }
if ($type == "f") { if ($type == "f") {
$label = " fournisseurs"; $label = " fournisseurs";
$urlfiche="fiche.php";
} }
@ -137,7 +140,7 @@ if ($result)
$sortorder="DESC"; $sortorder="DESC";
} }
print '<p><table class="noborder" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td>'; print '<tr class="liste_titre"><td>';
print_liste_field_titre("Nom",$PHP_SELF,"lower(p.name)", $begin); print_liste_field_titre("Nom",$PHP_SELF,"lower(p.name)", $begin);
print "</td><td>"; print "</td><td>";
@ -161,7 +164,7 @@ if ($result)
print "<TD>$obj->firstname</TD>"; print "<TD>$obj->firstname</TD>";
print '<TD><a href="contact.php?type='.$type.'&socid='.$obj->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0" alt="filtrer"></a>&nbsp;'; print '<TD><a href="contact.php?type='.$type.'&socid='.$obj->idp.'"><img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/filter.png" border="0" alt="filtrer"></a>&nbsp;';
print "<a href=\"fiche.php?socid=$obj->idp\">$obj->nom</A></td>\n"; print "<a href=\"".$urlfiche."?socid=$obj->idp\">$obj->nom</A></td>\n";
print '<td><a href="action/fiche.php?action=create&actionid=4&contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->email.'</a>&nbsp;</td>'; print '<td><a href="action/fiche.php?action=create&actionid=4&contactid='.$obj->cidp.'&socid='.$obj->idp.'">'.$obj->email.'</a>&nbsp;</td>';