* @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ define('PS_ADMIN_DIR', getcwd()); include_once('../config/config.inc.php'); include_once('tabs/AdminCatalog.php'); include_once('tabs/AdminProducts.php'); include_once('init.php'); if (Tools::getValue('token') != Tools::getAdminTokenLite('AdminCatalog')) die(1); $catalog = new AdminCatalog(); $adminProducts = new AdminProducts(); global $cookie; echo ' '.$adminProducts->getL('Catalog:').'
'; $done = array(); $index = array(); $categoryBox = Tools::getValue('categoryBox'); if ($categoryBox != '') { $categoryBox = @unserialize($categoryBox); foreach ($categoryBox AS $k => $row) $index[] = $row; } elseif ((int)Tools::getValue('id_product')) $index = Product::getProductCategories((int)Tools::getValue('id_product')); $adminProducts->recurseCategoryForInclude((int)(Tools::getValue('id_product')), $index, $categories, $categories[0][1], 1, (int)(Tools::getValue('id_category_default'))); echo '
'.$adminProducts->getL('ID').' '.$adminProducts->getL('Name').'

'.$adminProducts->getL('Mark all checkbox(es) of categories in which product is to appear').' *

';