<input type="hidden" name="modules[]" value="<?php echo \Pasteque\esc_attr($module); ?> " /> <?php } foreach ($freeModules as $module) { displayFreeModule($module, $activatedModules); } echo \Pasteque\row(\Pasteque\form_save()); echo \Pasteque\row(\Pasteque\infoDiv(\i18n("Once modules are selected, they will be activated in a short moment.", PLUGIN_NAME))); ?> </form> <?php echo \Pasteque\row(\Pasteque\secondaryTitle(\i18n("Buy modules", PLUGIN_NAME))); ?> <div class="edit"> <table cellpadding="0" cellspacing="0"> <tbody id="list"> <?php $pp_id = null; if ($cfg['pp_sandbox']) { $pp_id = $cfg['pp_sandbox_id']; } else { $pp_id = $cfg['pp_user_id']; } foreach ($modules as $module) { echo "\t\t\t<tr>\n"; displayModule($module, $activatedModules, $pp_id, $cfg['pp_sandbox']); echo "\t\t\t</tr>\n";
$content[0][0] = ""; $content[0][1] = \i18n("Product.reference"); $content[0][2] = \i18n("Product.label"); $i = 1; if (isset($archivesCat[$category->id])) { foreach ($archivesCat[$category->id] as $product) { if (!$product->visible) { if ($product->hasImage) { $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=product&id=" . $product->id; } else { $imgSrc = \Pasteque\PT::URL_ACTION_PARAM . "=img&w=product"; } $content[$i][0] = "<img class=\"img img-thumbnail thumbnail\" src=\"?" . $imgSrc . "\">"; $content[$i][1] = $product->reference; $content[$i][2] = $product->label; $btn_group = \Pasteque\editButton(\i18n('Edit', PLUGIN_NAME), \Pasteque\get_module_url_action(PLUGIN_NAME, 'product_edit', array("id" => $product->id))); $content[$i][2] .= \Pasteque\buttonGroup($btn_group, "pull-right"); $i++; } } } if (sizeof($content) > 1) { echo \Pasteque\row(\Pasteque\secondaryTitle(\Pasteque\esc_html($category->label) . " - " . \i18n("Archived", PLUGIN_NAME))); echo \Pasteque\row(\Pasteque\standardTable($content)); } unset($content); } } if (count($products) == 0) { echo \Pasteque\errorDiv(\i18n("No product found", PLUGIN_NAME)); }