diff --git a/htdocs/boutique/livre/index.php b/htdocs/boutique/livre/index.php index 3aa497e36c2..38355cc7d16 100644 --- a/htdocs/boutique/livre/index.php +++ b/htdocs/boutique/livre/index.php @@ -38,9 +38,21 @@ if ($page == -1) { $page = 0 ; } $limit = $conf->liste_limit; $offset = $limit * $page ; -print_barre_liste("Liste des Livres", $page, $PHP_SELF, "", $sortfield, $sortorder); +$form = '
'; + + +print_barre_liste("Liste des Livres", $page, $PHP_SELF, "", $sortfield, $sortorder, $form); $sql = "SELECT l.rowid, l.title, l.oscid, l.ref, l.status FROM llx_livre as l"; + +if ($searchvalue) +{ + $sql .= " WHERE l.title like '%$searchvalue%'"; +} $sql .= " ORDER BY $sortfield $sortorder "; $sql .= $db->plimit( $limit ,$offset); @@ -73,14 +85,16 @@ if ( $db->query($sql) ) { print '