diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index 2c1f85a12a7..feaabdc7e32 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -22,7 +22,7 @@
require("./pre.inc.php");
-llxHeader();
+llxHeader("", 'Commandes','ch-commande.html');
print_titre("Commandes");
@@ -71,13 +71,9 @@ if ( $db->query($sql) )
print "
";
}
}
-/*
- *
- */
-print '
';
/*
- * Dernières commandes
+ * Commandes à traiter
*/
$sql = "SELECT c.rowid, c.ref, s.nom, s.idp FROM llx_commande as c, llx_societe as s";
$sql .= " WHERE c.fk_soc = s.idp AND c.fk_statut = 1";
@@ -108,8 +104,14 @@ if ( $db->query($sql) )
print " ";
}
}
+
/*
- * Dernières commandes
+ *
+ */
+print ' | ';
+
+/*
+ *
*/
$sql = "SELECT c.rowid, c.ref, s.nom, s.idp FROM llx_commande as c, llx_societe as s";
$sql .= " WHERE c.fk_soc = s.idp AND c.fk_statut = 2 ";
@@ -118,7 +120,6 @@ if ($socidp)
$sql .= " AND c.fk_soc = $socidp";
}
$sql .= " ORDER BY c.rowid DESC";
-$sql .= $db->plimit(5, 0);
if ( $db->query($sql) )
{
$num = $db->num_rows();
@@ -127,7 +128,7 @@ if ( $db->query($sql) )
$i = 0;
print '';
print '';
- print '| 5 dernières commandes | ';
+ print 'Commandes en traitement | ';
while ($i < $num)
{
|