';
- print '| '.$transRecordedType.' |
';
+ print '| '.$transRecordedType.' |
';
- $var=True;
+ $var=True;
- while ($i < $num)
- {
- $objp = $db->fetch_object($result);
+ while ($i < $num)
+ {
+ $objp = $db->fetch_object($result);
- $var=!$var;
- print "";
- // Name
- print '| ';
- $thirdparty_static->id=$objp->rowid;
- $thirdparty_static->nom=$objp->nom;
- $thirdparty_static->client=$objp->client;
- $thirdparty_static->fournisseur=$objp->fournisseur;
- $thirdparty_static->datem=$db->jdate($objp->datem);
- print $thirdparty_static->getNomUrl(1,'',16);
- print " | \n";
- // Type
- print '';
- if ($thirdparty_static->client==1 || $thirdparty_static->client==3)
- {
- print "id."\">".$langs->trans("Customer")."\n";
- }
- if ($thirdparty_static->client == 3) print " / ";
- if ($thirdparty_static->client==2 || $thirdparty_static->client==3)
- {
- print "id."\">".$langs->trans("Prospect")."\n";
- }
- if ($thirdparty_static->fournisseur)
- {
- if ($thirdparty_static->client) print " / ";
- print ''.$langs->trans("Supplier").'';
- }
- print ' | ';
- // Last modified date
- print '';
- print dol_print_date($thirdparty_static->datem,'day');
- print " | ";
-// print '';
-// print $product_static->LibStatut($objp->tobuy,5,1);
-// print " | ";
- print "
\n";
- $i++;
- }
+ $var=!$var;
+ print "";
+ // Name
+ print '| ';
+ $thirdparty_static->id=$objp->rowid;
+ $thirdparty_static->nom=$objp->nom;
+ $thirdparty_static->client=$objp->client;
+ $thirdparty_static->fournisseur=$objp->fournisseur;
+ $thirdparty_static->datem=$db->jdate($objp->datem);
+ print $thirdparty_static->getNomUrl(1,'',16);
+ print " | \n";
+ // Type
+ print '';
+ if ($thirdparty_static->client==1 || $thirdparty_static->client==3)
+ {
+ print "id."\">".$langs->trans("Customer")."\n";
+ }
+ if ($thirdparty_static->client == 3 && empty($conf->global->SOCIETE_DISABLE_PROSPECTS)) print " / ";
+ if (($thirdparty_static->client==2 || $thirdparty_static->client==3) && empty($conf->global->SOCIETE_DISABLE_PROSPECTS))
+ {
+ print "id."\">".$langs->trans("Prospect")."\n";
+ }
+ if ($conf->fournisseur->enabled && $thirdparty_static->fournisseur)
+ {
+ if ($thirdparty_static->client) print " / ";
+ print ''.$langs->trans("Supplier").'';
+ }
+ print ' | ';
+ // Last modified date
+ print '';
+ print dol_print_date($thirdparty_static->datem,'day');
+ print " | ";
+ // print '';
+ // print $product_static->LibStatut($objp->tobuy,5,1);
+ // print " | ";
+ print "
\n";
+ $i++;
+ }
- $db->free();
+ $db->free();
- print "
";
- }
+ print "