18 |
* |
* |
19 |
* $Id$ |
* $Id$ |
20 |
* $Source$ |
* $Source$ |
|
* |
|
21 |
*/ |
*/ |
22 |
|
|
23 |
/** |
/** |
132 |
} |
} |
133 |
print "</td></tr></table>"; |
print "</td></tr></table>"; |
134 |
|
|
135 |
|
|
136 |
|
|
137 |
|
print '<br>'; |
138 |
print_titre('Services/Produits'); |
print_titre('Services/Produits'); |
139 |
|
|
140 |
print '<table cellspacing="0" cellpadding="3" border="0" width="100%">'; |
print '<table class="noborder" width="100%">'; |
141 |
/* |
/* |
142 |
* Lignes de factures |
* Lignes de factures |
143 |
* |
* |
153 |
$num = $db->num_rows(); |
$num = $db->num_rows(); |
154 |
$i = 0; $total = 0; |
$i = 0; $total = 0; |
155 |
|
|
156 |
echo '<table border="0" width="100%">'; |
echo '<table class="notopnoleftnoright" width="100%">'; |
157 |
if ($num) |
if ($num) |
158 |
{ |
{ |
159 |
print "<tr class=\"liste_titre\">"; |
print "<tr class=\"liste_titre\">"; |
277 |
* Facture |
* Facture |
278 |
*/ |
*/ |
279 |
print '<table class="border" width="100%">'; |
print '<table class="border" width="100%">'; |
280 |
print "<tr><td>Client</td>"; |
print '<tr><td>'.$langs->trans("Customer").'</td>'; |
281 |
print "<td colspan=\"3\">"; |
print "<td colspan=\"3\">"; |
282 |
print '<b><a href="../fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></b></td>'; |
print '<b><a href="../fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></b></td>'; |
283 |
|
|
306 |
print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>'; |
print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>'; |
307 |
if ($fac->note) |
if ($fac->note) |
308 |
{ |
{ |
309 |
print '<tr><td colspan="5">Note : '.nl2br($fac->note)."</td></tr>"; |
print '<tr><td colspan="5">'.$langs->trans("Note").' : '.nl2br($fac->note)."</td></tr>"; |
310 |
} |
} |
311 |
|
|
312 |
print "</table><br>"; |
print "</table><br>"; |
330 |
{ |
{ |
331 |
$prod = New Product($db); |
$prod = New Product($db); |
332 |
$prod->fetch($fac->lignes[$i]->produit_id); |
$prod->fetch($fac->lignes[$i]->produit_id); |
333 |
print "<tr $bc[$var]><td>[".$prod->ref.']</td>'; |
print "<tr $bc[$var]><td>"; |
334 |
|
print '<a href="'.DOL_URL_ROOT.'/product/fiche.php?id='.$prod->id.'">'; |
335 |
|
print img_object($langs->trans("ShowProduct"),"product").' '.$prod->ref; |
336 |
|
print '</a>'; |
337 |
|
print '</td>'; |
338 |
print '<td>'.$fac->lignes[$i]->desc.'</td>'; |
print '<td>'.$fac->lignes[$i]->desc.'</td>'; |
339 |
} |
} |
340 |
else |
else |
425 |
if ($result) |
if ($result) |
426 |
{ |
{ |
427 |
$num = $db->num_rows(); |
$num = $db->num_rows(); |
428 |
print_barre_liste("Factures",$page,"fiche-rec.php","&socidp=$socidp",$sortfield,$sortorder,'',$num); |
print_barre_liste($langs->trans("Bills"),$page,"fiche-rec.php","&socidp=$socidp",$sortfield,$sortorder,'',$num); |
429 |
|
|
430 |
$i = 0; |
$i = 0; |
431 |
print "<table class=\"noborder\" width=\"100%\">"; |
print "<table class=\"noborder\" width=\"100%\">"; |
448 |
|
|
449 |
$class = "normal"; |
$class = "normal"; |
450 |
|
|
451 |
print '<td><a class="'.$class.'" href="fiche-rec.php?facid='.$objp->facid.'">' . $objp->titre; |
print '<td><a class="'.$class.'" href="fiche-rec.php?facid='.$objp->facid.'">'.img_object($langs->trans("ShowBill"),"bill").' '.$objp->titre; |
452 |
print "</a></td>\n"; |
print "</a></td>\n"; |
453 |
print '<td><a class="'.$class.'" href="../fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>'; |
print '<td><a class="'.$class.'" href="../fiche.php?socid='.$objp->idp.'">'.$objp->nom.'</a></td>'; |
454 |
|
|