Nettoyage code

This commit is contained in:
Rodolphe Quiedeville 2003-09-15 16:00:16 +00:00
parent 0e7ef166ee
commit 5ac4796c7c

View File

@ -231,7 +231,7 @@ else
print '</td></tr>'; print '</td></tr>';
print "<td>Libellé</td><td>$product->libelle</td>"; print "<td>Libellé</td><td>$product->libelle</td>";
print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>'; print '<td><a href="stats/fiche.php?id='.$id.'">Statistiques</a></td></tr>';
print '<tr><td>Prix de vente</td><TD>'.price($product->price).'</td>'; print '<tr><td>Prix de vente</td><td>'.price($product->price).'</td>';
print '<td valign="top" rowspan="4">'; print '<td valign="top" rowspan="4">';
print "Propositions commerciales : ".$product->count_propale(); print "Propositions commerciales : ".$product->count_propale();
print "<br>Proposé à <b>".$product->count_propale_client()."</b> clients"; print "<br>Proposé à <b>".$product->count_propale_client()."</b> clients";
@ -272,15 +272,11 @@ else
if ($action == 'edit_price' && $user->rights->produit->creer) if ($action == 'edit_price' && $user->rights->produit->creer)
{ {
print '<hr><div class="titre">Nouveau prix</div><br>'; print '<hr><div class="titre">Nouveau prix</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n"; print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="update_price">'; print '<input type="hidden" name="action" value="update_price">';
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">'; print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
print '<tr><td width="20%">Prix de vente</td><td><input name="price" size="10" value="'.price($product->price).'"></td></tr>';
print "<tr>".'<td width="20%">Prix de vente</td><td><input name="price" size="10" value="'.price($product->price).'"></td></tr>'; print '<tr><td colspan="3" align="center"><input type="submit" value="Enregistrer">&nbsp;';
print "<tr>".'<td colspan="3" align="center"><input type="submit" value="Enregistrer">&nbsp;';
print '<input type="submit" name="cancel" value="Annuler"></td></tr>'; print '<input type="submit" name="cancel" value="Annuler"></td></tr>';
print '</table>'; print '</table>';
print '</form>'; print '</form>';