} else { $search .= '(`' . global_mapping::ManufactoryID . '` = ' . global_common::escape_mysql_string($manu) . ')'; } } if ($productInIDs) { if ($search) { $search .= ' and (`' . global_mapping::ProductID . '` IN (' . $productInIDs . '))'; } else { $search .= '(`' . global_mapping::ProductID . '` IN (' . $productInIDs . '))'; } } //echo 'search:'. $search; if ($search) { if ($_pgR["mode"]) { $type = $_pgR["type"]; $retailers = $objProduct->getLatestRetailer($page, $search, $type, $total); } else { $products = $objProduct->getAllProduct($page, '*', $search, null, $total); } } //echo $total; //print_r($topProperties); if ($_pgR["cid"]) { $catID = $_pgR["cid"]; $_SESSION[global_common::SES_C_CUR_PAGE] = "products.php?cid=" . $catID; } include_once 'include/_header.inc'; include_once 'include/_menu.inc'; ?>