Ajout navigation next et preview sur l'onglet catégorie
This commit is contained in:
parent
94cb055eab
commit
48b7cce93f
@ -677,9 +677,9 @@ class Categorie
|
|||||||
{
|
{
|
||||||
$cats = array ();
|
$cats = array ();
|
||||||
|
|
||||||
$sql = "SELECT c.fk_categorie, c.fk_product, p.rowid, p.label";
|
$sql = "SELECT c.fk_categorie, c.fk_product, p.rowid, p.ref";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."categorie_product as c, ".MAIN_DB_PREFIX."product as p";
|
$sql.= " FROM ".MAIN_DB_PREFIX."categorie_product as c, ".MAIN_DB_PREFIX."product as p";
|
||||||
$sql.= " WHERE p.label = '".$ref."' AND c.fk_product = p.rowid";
|
$sql.= " WHERE p.ref = '".$ref."' AND c.fk_product = p.rowid";
|
||||||
|
|
||||||
$res = $this->db->query ($sql);
|
$res = $this->db->query ($sql);
|
||||||
|
|
||||||
|
|||||||
@ -152,11 +152,12 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
|
|
||||||
if ($_GET["id"])
|
if ($_GET["id"])
|
||||||
{
|
{
|
||||||
$cats = $c->containing($_REQUEST['id']);
|
$cats = $c->containing($_REQUEST["id"]);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if ($_GET["ref"])
|
||||||
{
|
{
|
||||||
$cats = $c->containing_ref($_REQUEST['ref']);
|
$cats = $c->containing_ref($_REQUEST["ref"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizeof($cats) > 0)
|
if (sizeof($cats) > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user