当前位置: 首页>>代码示例>>PHP>>正文


PHP Products::GetProductsOnModeration方法代码示例

本文整理汇总了PHP中Products::GetProductsOnModeration方法的典型用法代码示例。如果您正苦于以下问题:PHP Products::GetProductsOnModeration方法的具体用法?PHP Products::GetProductsOnModeration怎么用?PHP Products::GetProductsOnModeration使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Products的用法示例。


在下文中一共展示了Products::GetProductsOnModeration方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Unit

$Unit = new Unit();
$supplier = $Supplier->SetFieldsById($_SESSION['member']['id_user']);
$check_sum = $Supplier->GetCheckSumSupplierProducts($Supplier->fields['id_user']);
$tpl->Assign("check_sum", $check_sum);
$tpl->Assign("supplier", $Supplier->fields);
//*********************************Заполнение рабочих дней
if (isset($GLOBALS['Rewrite'])) {
    $cabinet_page = $GLOBALS['Rewrite'];
    $tpl->Assign('cabinet_page', $cabinet_page);
} else {
    header('Location: ' . _base_url . '/cabinet/assortment/');
}
if (isset($cabinet_page) && $cabinet_page == "productsonmoderation") {
    $header = "Товары на модерации";
    $GLOBALS['IERA_LINKS'][] = array('title' => $header, 'url' => _base_url . '/cabinet/productsonmoderation/');
    $list = $Products->GetProductsOnModeration($_SESSION['member']['id_user']);
    $tpl->Assign('list', $list);
    $parsed_res = array('issuccess' => true, 'html' => $tpl->Parse($GLOBALS['PATH_tpl'] . 'products_on_moderation.tpl'));
} elseif (isset($cabinet_page) && $cabinet_page == "promo_orders") {
    $header = "Заказы с промо-кодом";
    $GLOBALS['IERA_LINKS'][] = array('title' => $header, 'url' => _base_url . '/cabinet/promo_orders/');
    $orders = $Order->GetOrdersByPromoSupplier($_SESSION['member']['id_user']);
    $tpl->Assign('orders', $orders);
    $parsed_res = array('issuccess' => true, 'html' => $tpl->Parse($GLOBALS['PATH_tpl'] . 'promo_orders.tpl'));
} elseif (isset($cabinet_page) && $cabinet_page == "promo_codes") {
    $header = "Промо-коды";
    $GLOBALS['IERA_LINKS'][] = array('title' => $header, 'url' => _base_url . '/cabinet/promo_codes/');
    if (isset($_POST['submit'])) {
        if ($Supplier->AddPromoCode($_POST['percent'], $_POST['name'])) {
            header('Location: /cabinet/promo_codes/');
        }
开发者ID:Arikito,项目名称:webking.xt,代码行数:31,代码来源:cp_cab_supplier.php

示例2: AND

if (isset($_GET['limit']) && $_GET['limit'] != 'all' || !isset($_GET['limit'])) {
    if (isset($_POST['page_nbr']) && is_numeric($_POST['page_nbr'])) {
        $_GET['page_id'] = $_POST['page_nbr'];
    }
    $cnt = $Products->GetProductsCntSupCab($arr, $params);
    $tpl->Assign('cnt', $cnt);
    $GLOBALS['paginator_html'] = G::NeedfulPages($cnt);
    $limit = ' LIMIT ' . $GLOBALS['Start'] . ',' . $GLOBALS['Limit_db'];
} else {
    $GLOBALS['Limit_db'] = 0;
    $limit = '';
}
// ---------Информация о поставщике
$Supplier->fields['active_products_cnt'] = $Products->GetProductsCntSupCab(array('a.id_supplier' => $id_supplier, 'a.active' => 1, 'p.visible' => 1), ' AND a.product_limit > 0 AND (a.price_mopt_otpusk > 0 OR a.price_opt_otpusk > 0)');
$Supplier->fields['all_products_cnt'] = $Products->GetProductsCntSupCab($arr);
$Supplier->fields['moderation_products_cnt'] = count($Products->GetProductsOnModeration($id_supplier));
$check_sum = $Supplier->GetCheckSumSupplierProducts($id_supplier);
$tpl->Assign('check_sum', $check_sum);
$tpl->Assign('supplier', $Supplier->fields);
$Products->SetProductsList1($id_supplier, $order, $limit, $arr, $params);
$products = $Products->list;
if ($products) {
    foreach ($products as &$p) {
        $p['images'] = $Products->GetPhotoById($p['id_product']);
    }
}
$tpl->Assign('list', $products);
$parsed_res = array('issuccess' => true, 'html' => $tpl->Parse($GLOBALS['PATH_tpl'] . 'cp_assortment.tpl'));
if ($parsed_res['issuccess'] === true) {
    $tpl_center .= $parsed_res['html'];
}
开发者ID:Arikito,项目名称:webking.xt,代码行数:31,代码来源:assortment.php

示例3: die

<?php

if (!_acl::isAllow('product_moderation')) {
    die("Access denied");
}
unset($parsed_res);
$dbtree = new dbtree(_DB_PREFIX_ . 'category', 'category', $db);
$Products = new Products();
$suppliers = new Suppliers();
$tpl->Assign('h1', 'Товары на модерации');
$ii = count($GLOBALS['IERA_LINKS']);
$GLOBALS['IERA_LINKS'][$ii]['title'] = "Товары на модерации";
$prods = $Products->GetProductsOnModeration();
$list = $suppl = array();
foreach ($prods as $prod) {
    if ($prod['moderation_status'] != 2) {
        $suppliers->SetFieldsById($prod['id_supplier']);
        $suppl[$prod['id_supplier']] = $suppliers->fields;
        $list[$prod['id_supplier']][] = $prod;
    }
}
// Формирование списка категорий для выпадающего списка
$category = $Products->generateCategory();
$tpl->Assign('category', $category);
$tpl->Assign('list', $list);
$tpl->Assign('suppliers', $suppl);
$tpl_center .= $tpl->Parse($GLOBALS['PATH_tpl'] . 'cp_moderation.tpl');
开发者ID:Arikito,项目名称:webking.xt,代码行数:27,代码来源:product_moderation.php


注:本文中的Products::GetProductsOnModeration方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。