Fix: Debug of canvas feature

This commit is contained in:
Laurent Destailleur 2011-02-21 08:58:45 +00:00
parent 8fd2f8a577
commit c15d662d82
6 changed files with 71 additions and 43 deletions

View File

@ -80,7 +80,7 @@ if (GETPOST("button_removefilter_x"))
$search_idprof4=''; $search_idprof4='';
} }
$sql = "SELECT s.rowid, s.nom, s.client, s.ville, st.libelle as stcomm, s.prefix_comm, s.code_client,"; $sql = "SELECT s.rowid, s.nom as name, s.client, s.ville, st.libelle as stcomm, s.prefix_comm, s.code_client,";
$sql.= " s.datec, s.datea, s.canvas"; $sql.= " s.datec, s.datea, s.canvas";
// We'll need these fields in order to filter by sale (including the case where the user can only see his prospects) // We'll need these fields in order to filter by sale (including the case where the user can only see his prospects)
if ($search_sale) $sql .= ", sc.fk_soc, sc.fk_user"; if ($search_sale) $sql .= ", sc.fk_soc, sc.fk_user";
@ -200,7 +200,7 @@ if ($result)
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
print '<td>'; print '<td>';
$thirdpartystatic->id=$obj->rowid; $thirdpartystatic->id=$obj->rowid;
$thirdpartystatic->nom=$obj->nom; $thirdpartystatic->name=$obj->name;
$thirdpartystatic->client=$obj->client; $thirdpartystatic->client=$obj->client;
$thirdpartystatic->canvas=$obj->canvas; $thirdpartystatic->canvas=$obj->canvas;
print $thirdpartystatic->getNomUrl(1); print $thirdpartystatic->getNomUrl(1);

View File

@ -21,7 +21,7 @@
/** /**
* \file htdocs/comm/index.php * \file htdocs/comm/index.php
* \ingroup commercial * \ingroup commercial
* \brief Page accueil de la zone commerciale cliente * \brief Home page of commercial area
* \version $Id$ * \version $Id$
*/ */
@ -140,7 +140,7 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
*/ */
if ($conf->propal->enabled && $user->rights->propale->lire) if ($conf->propal->enabled && $user->rights->propale->lire)
{ {
$sql = "SELECT p.rowid, p.ref, p.total_ht, s.rowid as socid, s.nom, s.client"; $sql = "SELECT p.rowid, p.ref, p.total_ht, s.rowid as socid, s.nom as name, s.client, s.canvas";
$sql.= " FROM ".MAIN_DB_PREFIX."propal as p"; $sql.= " FROM ".MAIN_DB_PREFIX."propal as p";
$sql.= ", ".MAIN_DB_PREFIX."societe as s"; $sql.= ", ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@ -174,8 +174,9 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
print '</td>'; print '</td>';
print '<td nowrap="nowrap">'; print '<td nowrap="nowrap">';
$companystatic->id=$obj->socid; $companystatic->id=$obj->socid;
$companystatic->nom=$obj->nom; $companystatic->name=$obj->name;
$companystatic->client=$obj->client; $companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'customer',16); print $companystatic->getNomUrl(1,'customer',16);
print '</td>'; print '</td>';
print '<td align="right" nowrap="nowrap">'.price($obj->total_ht).'</td></tr>'; print '<td align="right" nowrap="nowrap">'.price($obj->total_ht).'</td></tr>';
@ -205,7 +206,7 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
{ {
$langs->load("orders"); $langs->load("orders");
$sql = "SELECT c.rowid, c.ref, c.total_ttc, s.rowid as socid, s.nom, s.client"; $sql = "SELECT c.rowid, c.ref, c.total_ttc, s.rowid as socid, s.nom as name, s.client, s.canvas";
$sql.= " FROM ".MAIN_DB_PREFIX."commande as c"; $sql.= " FROM ".MAIN_DB_PREFIX."commande as c";
$sql.= ", ".MAIN_DB_PREFIX."societe as s"; $sql.= ", ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@ -235,8 +236,9 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
print '<tr '.$bc[$var].'><td nowrap="nowrap"><a href="../commande/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref.'</a></td>'; print '<tr '.$bc[$var].'><td nowrap="nowrap"><a href="../commande/fiche.php?id='.$obj->rowid.'">'.img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref.'</a></td>';
print '<td nowrap="nowrap">'; print '<td nowrap="nowrap">';
$companystatic->id=$obj->socid; $companystatic->id=$obj->socid;
$companystatic->nom=$obj->nom; $companystatic->name=$obj->name;
$companystatic->client=$obj->client; $companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'customer',16); print $companystatic->getNomUrl(1,'customer',16);
print '</td>'; print '</td>';
print '<td align="right" nowrap="nowrap">'.price($obj->total_ttc).'</td></tr>'; print '<td align="right" nowrap="nowrap">'.price($obj->total_ttc).'</td></tr>';
@ -277,7 +279,7 @@ $max=3;
if ($conf->propal->enabled && $user->rights->propale->lire) if ($conf->propal->enabled && $user->rights->propale->lire)
{ {
$sql = "SELECT s.nom, s.rowid, p.rowid as propalid, p.total_ht, p.ref, p.fk_statut, p.datep as dp"; $sql = "SELECT s.nom as name, s.rowid, s.canvas, p.rowid as propalid, p.total_ht, p.ref, p.fk_statut, p.datep as dp";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
$sql.= ", ".MAIN_DB_PREFIX."propal as p"; $sql.= ", ".MAIN_DB_PREFIX."propal as p";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@ -326,7 +328,13 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
print '</td>'; print '</td>';
print '<td align="left"><a href="fiche.php?socid='.$objp->rowid.'">'.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($objp->nom,44).'</a></td>'; print '<td align="left">';
$companystatic->id=$obj->socid;
$companystatic->name=$obj->name;
$companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'customer',44);
print '</td>';
print "<td align=\"right\">"; print "<td align=\"right\">";
print dol_print_date($db->jdate($objp->dp),'day')."</td>\n"; print dol_print_date($db->jdate($objp->dp),'day')."</td>\n";
print "<td align=\"right\">".price($objp->total_ht)."</td>\n"; print "<td align=\"right\">".price($objp->total_ht)."</td>\n";
@ -352,7 +360,7 @@ if ($conf->societe->enabled && $user->rights->societe->lire)
{ {
$langs->load("boxes"); $langs->load("boxes");
$sql = "SELECT s.rowid,s.nom,s.client,s.datec,s.tms"; $sql = "SELECT s.rowid, s.nom as name, s.client, s.datec,s.tms";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
$sql.= " WHERE s.client IN (1, 2, 3)"; $sql.= " WHERE s.client IN (1, 2, 3)";
@ -376,15 +384,15 @@ if ($conf->societe->enabled && $user->rights->societe->lire)
print '</tr>'; print '</tr>';
if ($num) if ($num)
{ {
$company=new Societe($db);
while ($i < $num) while ($i < $num)
{ {
$objp = $db->fetch_object($resql); $objp = $db->fetch_object($resql);
$company->id=$objp->rowid; $companystatic->id=$objp->rowid;
$company->nom=$objp->nom; $companystatic->name=$objp->name;
$company->client=$objp->client; $companystatic->client=$objp->client;
$companystatic->canvas=$objp->canvas;
print '<tr '.$bc[$var].'>'; print '<tr '.$bc[$var].'>';
print '<td nowrap="nowrap">'.$company->getNomUrl(1,'customer',48).'</td>'; print '<td nowrap="nowrap">'.$companystatic->getNomUrl(1,'customer',48).'</td>';
print '<td align="right" nowrap>'; print '<td align="right" nowrap>';
if ($objp->client == 2 || $objp->client == 3) print $langs->trans("Prospect"); if ($objp->client == 2 || $objp->client == 3) print $langs->trans("Prospect");
if ($objp->client == 3) print ' / '; if ($objp->client == 3) print ' / ';
@ -412,7 +420,7 @@ if ($conf->fournisseur->enabled && $user->rights->societe->lire)
{ {
$langs->load("boxes"); $langs->load("boxes");
$sql = "SELECT s.nom, s.rowid, s.datec as dc, s.tms as dm"; $sql = "SELECT s.nom as name, s.rowid, s.datec as dc, s.canvas, s.tms as dm";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
$sql.= " WHERE s.fournisseur = 1"; $sql.= " WHERE s.fournisseur = 1";
@ -435,14 +443,14 @@ if ($conf->fournisseur->enabled && $user->rights->societe->lire)
print '</tr>'; print '</tr>';
if ($num) if ($num)
{ {
$company=new Societe($db);
while ($i < $num && $i < $max) while ($i < $num && $i < $max)
{ {
$objp = $db->fetch_object($result); $objp = $db->fetch_object($result);
$company->id=$objp->rowid; $companystatic->id=$objp->rowid;
$company->nom=$objp->nom; $companystatic->name=$objp->name;
print '<tr '.$bc[$var].'>'; $companystatic->canvas=$objp->canvas;
print '<td nowrap="nowrap">'.$company->getNomUrl(1,'supplier',48).'</td>'; print '<tr '.$bc[$var].'>';
print '<td nowrap="nowrap">'.$companystatic->getNomUrl(1,'supplier',44).'</td>';
print '<td align="right">'.dol_print_date($db->jdate($objp->dm),'day').'</td>'; print '<td align="right">'.dol_print_date($db->jdate($objp->dm),'day').'</td>';
print '</tr>'; print '</tr>';
$var=!$var; $var=!$var;
@ -485,7 +493,8 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire && 0) // TODO A REFA
{ {
$langs->load("contracts"); $langs->load("contracts");
$sql = "SELECT s.nom, s.rowid, c.statut, c.rowid as contratid, p.ref, c.mise_en_service as datemes, c.fin_validite as datefin, c.date_cloture as dateclo"; $sql = "SELECT s.nom as name, s.rowid, s.canvas, ";
$sql.= " c.statut, c.rowid as contratid, p.ref, c.mise_en_service as datemes, c.fin_validite as datefin, c.date_cloture as dateclo";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
$sql.= ", ".MAIN_DB_PREFIX."contrat as c"; $sql.= ", ".MAIN_DB_PREFIX."contrat as c";
$sql.= ", ".MAIN_DB_PREFIX."product as p"; $sql.= ", ".MAIN_DB_PREFIX."product as p";
@ -517,7 +526,12 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire && 0) // TODO A REFA
{ {
$obj = $db->fetch_object($resql); $obj = $db->fetch_object($resql);
print "<tr ".$bc[$var]."><td><a href=\"../contrat/fiche.php?id=".$obj->contratid."\">".img_object($langs->trans("ShowContract","contract"))." ".$obj->ref."</a></td>"; print "<tr ".$bc[$var]."><td><a href=\"../contrat/fiche.php?id=".$obj->contratid."\">".img_object($langs->trans("ShowContract","contract"))." ".$obj->ref."</a></td>";
print "<td><a href=\"fiche.php?socid=".$obj->rowid."\">".img_object($langs->trans("ShowCompany","company"))." ".$obj->nom."</a></td>\n"; print '<td>';
$companystatic->id=$objp->rowid;
$companystatic->name=$objp->name;
$companystatic->canvas=$objp->canvas;
print $companystatic->getNomUrl(1,'customer',44);
print '</td>'."\n";
print "<td align=\"right\">".$staticcontrat->LibStatut($obj->statut,3)."</td></tr>\n"; print "<td align=\"right\">".$staticcontrat->LibStatut($obj->statut,3)."</td></tr>\n";
$var=!$var; $var=!$var;
$i++; $i++;

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -21,7 +21,7 @@
/** /**
* \file htdocs/comm/prospect/index.php * \file htdocs/comm/prospect/index.php
* \ingroup commercial * \ingroup commercial
* \brief Page accueil de la zone prospection * \brief Home page of propest area
* \version $Id$ * \version $Id$
*/ */
@ -42,6 +42,8 @@ if ($user->societe_id > 0)
* View * View
*/ */
$companystatic=new Societe($db);
llxHeader(); llxHeader();
print_fiche_titre($langs->trans("ProspectionArea")); print_fiche_titre($langs->trans("ProspectionArea"));
@ -112,7 +114,7 @@ if ($resql)
*/ */
if ($conf->propal->enabled && $user->rights->propale->lire) if ($conf->propal->enabled && $user->rights->propale->lire)
{ {
$sql = "SELECT p.rowid, p.ref, p.price, s.nom"; $sql = "SELECT p.rowid, p.ref, p.price, s.nom as sname";
$sql.= " FROM ".MAIN_DB_PREFIX."propal as p"; $sql.= " FROM ".MAIN_DB_PREFIX."propal as p";
$sql.= ", ".MAIN_DB_PREFIX."societe as s"; $sql.= ", ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
@ -171,7 +173,8 @@ if ($conf->agenda->enabled) show_array_actions_to_do(10);
*/ */
if ($conf->propal->enabled && $user->rights->propale->lire) if ($conf->propal->enabled && $user->rights->propale->lire)
{ {
$sql = "SELECT s.nom, s.rowid as socid, p.rowid as propalid, p.total as total_ttc, p.ref, p.datep as dp, c.label as statut, c.id as statutid"; $sql = "SELECT s.nom as name, s.rowid as socid, s.client, s.canvas,";
$sql.= " p.rowid as propalid, p.total as total_ttc, p.ref, p.datep as dp, c.label as statut, c.id as statutid";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
$sql.= ", ".MAIN_DB_PREFIX."propal as p"; $sql.= ", ".MAIN_DB_PREFIX."propal as p";
$sql.= ", ".MAIN_DB_PREFIX."c_propalst as c"; $sql.= ", ".MAIN_DB_PREFIX."c_propalst as c";
@ -205,7 +208,13 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
print "<tr $bc[$var]><td><a href=\"../propal.php?id=".$obj->propalid."\">"; print "<tr $bc[$var]><td><a href=\"../propal.php?id=".$obj->propalid."\">";
print img_object($langs->trans("ShowPropal"),"propal").' '.$obj->ref.'</a></td>'; print img_object($langs->trans("ShowPropal"),"propal").' '.$obj->ref.'</a></td>';
print "<td><a href=\"fiche.php?id=".$obj->socid."\">".img_object($langs->trans("ShowCompany"),"company").' '.$obj->nom."</a></td>\n"; print "<td>";
$companystatic->id=$obj->socid;
$companystatic->name=$obj->name;
$companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'',44);
print "</td>\n";
print "<td align=\"right\">"; print "<td align=\"right\">";
print dol_print_date($db->jdate($obj->dp),'day')."</td>\n"; print dol_print_date($db->jdate($obj->dp),'day')."</td>\n";
print "<td align=\"right\">".price($obj->total_ttc)."</td></tr>\n"; print "<td align=\"right\">".price($obj->total_ttc)."</td></tr>\n";
@ -228,7 +237,7 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
* Societes a contacter * Societes a contacter
* *
*/ */
$sql = "SELECT s.nom, s.rowid"; $sql = "SELECT s.nom as name, s.rowid as socid, s.client, s.canvas";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
$sql.= " WHERE s.fk_stcomm = 1"; $sql.= " WHERE s.fk_stcomm = 1";
@ -253,9 +262,13 @@ if ($resql)
{ {
$obj = $db->fetch_object($resql); $obj = $db->fetch_object($resql);
$var=!$var; $var=!$var;
print "<tr $bc[$var]><td width=\"12%\"><a href=\"".DOL_URL_ROOT."/comm/prospect/fiche.php?socid=".$obj->rowid."\">"; print "<tr $bc[$var]><td width=\"12%\">";
print img_object($langs->trans("ShowCompany"),"company"); $companystatic->id=$obj->socid;
print ' '.$obj->nom.'</a></td></tr>'; $companystatic->name=$obj->name;
$companystatic->client=$obj->client;
$companystatic->canvas=$obj->canvas;
print $companystatic->getNomUrl(1,'prospect',44);
print '</td></tr>';
$i++; $i++;
} }
print "</table><br>"; print "</table><br>";

View File

@ -173,7 +173,7 @@ function show_array_actions_to_do($max=5)
print '<td>'.dol_trunc($obj->label,22).'</td>'; print '<td>'.dol_trunc($obj->label,22).'</td>';
$customerstatic->id=$obj->rowid; $customerstatic->id=$obj->rowid;
$customerstatic->nom=$obj->sname; $customerstatic->name=$obj->sname;
$customerstatic->client=$obj->client; $customerstatic->client=$obj->client;
print '<td>'.$customerstatic->getNomUrl(1,'',16).'</td>'; print '<td>'.$customerstatic->getNomUrl(1,'',16).'</td>';
@ -262,7 +262,7 @@ function show_array_last_actions_done($max=5)
print '<td>'.dol_trunc($obj->label,24).'</td>'; print '<td>'.dol_trunc($obj->label,24).'</td>';
$customerstatic->id=$obj->rowid; $customerstatic->id=$obj->rowid;
$customerstatic->nom=$obj->sname; $customerstatic->name=$obj->sname;
$customerstatic->client=$obj->client; $customerstatic->client=$obj->client;
print '<td>'.$customerstatic->getNomUrl(1,'',24).'</td>'; print '<td>'.$customerstatic->getNomUrl(1,'',24).'</td>';

View File

@ -1384,11 +1384,12 @@ class Societe extends CommonObject
$lien.=(!empty($this->canvas)?'&amp;canvas='.$this->canvas:'').'">'; $lien.=(!empty($this->canvas)?'&amp;canvas='.$this->canvas:'').'">';
$lienfin='</a>'; $lienfin='</a>';
if (empty($this->name)) $this->name=$this->nom; $name=$this->name;
if (empty($name)) $name=$this->nom;
if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$this->name,'company').$lienfin);
if ($withpicto) $result.=($lien.img_object($langs->trans("ShowCompany").': '.$name,'company').$lienfin);
if ($withpicto && $withpicto != 2) $result.=' '; if ($withpicto && $withpicto != 2) $result.=' ';
$result.=$lien.($maxlen?dol_trunc($this->name,$maxlen):$this->name).$lienfin; $result.=$lien.($maxlen?dol_trunc($name,$maxlen):$name).$lienfin;
return $result; return $result;
} }
@ -2190,11 +2191,11 @@ class Societe extends CommonObject
$this->country_id=$member->pays_id; $this->country_id=$member->pays_id;
$this->tel=$member->phone; // Prof phone $this->tel=$member->phone; // Prof phone
$this->email=$member->email; $this->email=$member->email;
$this->client = 1; // A member is a customer by default $this->client = 1; // A member is a customer by default
$this->code_client = -1; $this->code_client = -1;
$this->code_fournisseur = -1; $this->code_fournisseur = -1;
$this->db->begin(); $this->db->begin();
// Cree et positionne $this->id // Cree et positionne $this->id

View File

@ -131,8 +131,7 @@ print '</td><td valign="top" width="70%" class="notopnoleftnoright">';
* Last third parties modified * Last third parties modified
*/ */
$max=15; $max=15;
$sql = "SELECT s.rowid, s.nom, s.client, s.fournisseur,"; $sql = "SELECT s.rowid, s.nom as name, s.client, s.fournisseur, s.canvas, s.tms as datem";
$sql.= " s.tms as datem";
$sql.= " FROM ".MAIN_DB_PREFIX."societe as s"; $sql.= " FROM ".MAIN_DB_PREFIX."societe as s";
if (! $user->rights->societe->client->voir) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; if (! $user->rights->societe->client->voir) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
$sql.= " WHERE s.entity = ".$conf->entity; $sql.= " WHERE s.entity = ".$conf->entity;
@ -171,10 +170,11 @@ if ($result)
// Name // Name
print '<td nowrap="nowrap">'; print '<td nowrap="nowrap">';
$thirdparty_static->id=$objp->rowid; $thirdparty_static->id=$objp->rowid;
$thirdparty_static->nom=$objp->nom; $thirdparty_static->name=$objp->name;
$thirdparty_static->client=$objp->client; $thirdparty_static->client=$objp->client;
$thirdparty_static->fournisseur=$objp->fournisseur; $thirdparty_static->fournisseur=$objp->fournisseur;
$thirdparty_static->datem=$db->jdate($objp->datem); $thirdparty_static->datem=$db->jdate($objp->datem);
$thirdparty_static->canvas=$objp->canvas;
print $thirdparty_static->getNomUrl(1,'',16); print $thirdparty_static->getNomUrl(1,'',16);
print "</td>\n"; print "</td>\n";
// Type // Type