Ejemplo n.º 1
0
 function _getUrlToSubmit()
 {
     return _getUrlToDelete();
 }
Ejemplo n.º 2
0
        if (isset($_GET["sort"])) {
            $callBackParam["sort"] = $_GET["sort"];
            if (isset($_GET["sort_dir"])) {
                $callBackParam["direction"] = $_GET["sort_dir"];
            }
        }
        if (!isset($_GET["search"])) {
            $callBackParam["categoryID"] = $categoryID;
        }
        $callBackParam["searchInSubcategories"] = false;
        $count = 0;
        $navigatorHtml = GetNavigatorHtml(_getUrlToNavigate(), 20, 'prdSearchProductByTemplateAdmin', $callBackParam, $products, $offset, $count);
        for ($i = 0; $i < count($products); $i++) {
            $products[$i]["picture_count"] = GetPictureCount($products[$i]["productID"]);
            $products[$i]["thumbnail_count"] = GetThumbnailCount($products[$i]["productID"]);
            $products[$i]["enlarged_count"] = GetEnlargedPictureCount($products[$i]["productID"]);
        }
        $smarty->assign("navigatorHtml", $navigatorHtml);
        $smarty->hassign("urlToSort", _getUrlToSort());
        $smarty->hassign("urlToSubmit", _getUrlToSubmit());
        $smarty->hassign("urlToDelete", _getUrlToDelete());
        $smarty->hassign("urlToCategoryTreeExpand", _getUrlToCategoryTreeExpand());
        $smarty->assign("searched_count", str_replace("{N}", count($products), ADMIN_N_RECORD_IS_SEARCHED));
        //products list
        $smarty->assign("products", $products);
        //set main template
        $smarty->assign("admin_sub_dpt", "catalog_products_categories.tpl");
        $cats = catGetCategoryCListMin();
        $smarty->assign("cats", $cats);
    }
}