Look: Modif esthétiques mineures

This commit is contained in:
Laurent Destailleur 2005-08-11 19:18:58 +00:00
parent 2cf07a0e46
commit 95220058bc
2 changed files with 133 additions and 132 deletions

View File

@ -19,7 +19,6 @@
* *
* $Id$ * $Id$
* $Source$ * $Source$
*
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -54,7 +53,7 @@ if ($id)
} }
else else
{ {
print $db->error(); dolibarr_print_error($db);
} }
// print $wc ; // print $wc ;
@ -107,7 +106,7 @@ if ($id)
} }
else else
{ {
print $db->error(); dolibarr_print_error($db);
} }
} }
else else
@ -151,12 +150,12 @@ else
} }
else else
{ {
print $db->error(); dolibarr_print_error($db);
} }
} }
$db->close(); $db->close();
llxFooter("<em>Derni&egrave;re modification $Date$ r&eacute;vision $Revision$</em>"); llxFooter('$Date$ - $Revision$');
/* /*
@ -169,15 +168,15 @@ function printc($id, $db, $level)
$cat = new Categorie($db); $cat = new Categorie($db);
$cat->fetch($id); $cat->fetch($id);
print "<TR $bc[$var]><td>"; print "<tr $bc[$var]><td>";
for ($i = 0 ; $i < $level ; $i++) for ($i = 0 ; $i < $level ; $i++)
{ {
print "&nbsp;&nbsp;|--"; print "&nbsp;&nbsp;|--";
} }
print '<a href="index.php?id='.$cat->id.'">'.$cat->name."</a></TD>\n"; print '<a href="index.php?id='.$cat->id.'">'.$cat->name."</a></td>\n";
print "</TR>\n"; print "</tr>\n";
$childs = array(); $childs = array();
$childs = $cat->liste_childs_array(); $childs = $cat->liste_childs_array();

View File

@ -41,11 +41,11 @@ if (!$user->rights->produit->lire)
llxHeader("","",$langs->trans("ProductsAndServices")); llxHeader("","",$langs->trans("ProductsAndServices"));
print_titre($langs->trans("ProductsAndServicesArea")); print_fiche_titre($langs->trans("ProductsAndServicesArea"));
print '<table border="0" width="100%">'; print '<table border="0" width="100%" class="notopnoleftnoright">';
print '<tr><td valign="top" width="30%">'; print '<tr><td valign="top" width="30%" class="notopnoleft">';
/* /*
* Zone recherche produit/service * Zone recherche produit/service
@ -65,6 +65,8 @@ print "</table></form><br>";
* Nombre de produits et/ou services * Nombre de produits et/ou services
*/ */
$prodser = array(); $prodser = array();
$prodser[0][0]=$prodser[0][1]=$prodser[1][0]=$prodser[1][1]=0;
$sql = "SELECT count(*), fk_product_type, envente FROM ".MAIN_DB_PREFIX."product as p GROUP BY fk_product_type, envente"; $sql = "SELECT count(*), fk_product_type, envente FROM ".MAIN_DB_PREFIX."product as p GROUP BY fk_product_type, envente";
if ($db->query($sql)) if ($db->query($sql))
{ {
@ -101,7 +103,7 @@ if ($conf->service->enabled)
} }
print '</table>'; print '</table>';
print '</td><td valign="top" width="70%">'; print '</td><td valign="top" width="70%" class="notopnoleftnoright">';
/* /*