56 |
{ |
{ |
57 |
$sql .= " AND c.fk_soc = $socidp"; |
$sql .= " AND c.fk_soc = $socidp"; |
58 |
} |
} |
|
|
|
59 |
$resql=$db->query($sql); |
$resql=$db->query($sql); |
60 |
if ($resql) |
if ($resql) |
61 |
{ |
{ |
107 |
$obj = $db->fetch_object(); |
$obj = $db->fetch_object(); |
108 |
print "<tr $bc[$var]><td width=\"33%\">"; |
print "<tr $bc[$var]><td width=\"33%\">"; |
109 |
print "<a href=\"commande.php?id=$obj->rowid\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref.'</a></td>'; |
print "<a href=\"commande.php?id=$obj->rowid\">".img_object($langs->trans("ShowOrder"),"order").' '.$obj->ref.'</a></td>'; |
110 |
print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>'; |
print '<td><a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$obj->idp.'">'.dolibarr_trunc($obj->nom,20).'</a></td></tr>'; |
111 |
$i++; |
$i++; |
112 |
} |
} |
113 |
print "</table><br>"; |
print "</table><br>"; |