* @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 ' <tr> <td class="col-left"><label for="id_category_default" class="t">' . $adminProducts->getL('Default category:') . '</label></td> <td> <select id="id_category_default" name="id_category_default" onchange="checkDefaultCategory(this.value);">'; $categories = Category::getCategories((int) $cookie->id_lang, false); Category::recurseCategory($categories, $categories[0][1], 1, (int) Tools::getValue('id_category_default')); echo ' </select> </td> </tr> <tr> <td class="col-left">' . $adminProducts->getL('Catalog:') . '</td> <td> <div style="overflow: auto; min-height: 300px; padding-top: 0.6em;" id="categoryList"> <script type="text/javascript"> $(document).ready(function() { $(\'div#categoryList input.categoryBox\').click(function (){ if ($(this).is(\':not(:checked)\') && $(\'div#categoryList input.id_category_default\').val() == $(this).val())