當前位置: 首頁>>代碼示例>>PHP>>正文


PHP products_minierp::translateBestGoodPeriod方法代碼示例

本文整理匯總了PHP中products_minierp::translateBestGoodPeriod方法的典型用法代碼示例。如果您正苦於以下問題:PHP products_minierp::translateBestGoodPeriod方法的具體用法?PHP products_minierp::translateBestGoodPeriod怎麽用?PHP products_minierp::translateBestGoodPeriod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在products_minierp的用法示例。


在下文中一共展示了products_minierp::translateBestGoodPeriod方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: orders

}
use_class('orders');
use_class('jng_sp');
use_class('jng_sp_orders');
use_class('products_ean');
use_class('products_minierp');
use_class('bins');
$class_o = new orders();
$class_sp = new jng_sp();
$class_jo = new jng_sp_orders();
$class_ean = new products_ean();
$class_pm = new products_minierp();
$class_bin = new bins();
$segment_id = $_GET['segment_id'];
$clearance_period = $_GET['clearance_period'];
$log_column = $class_pm->translateBestGoodPeriod($clearance_period);
$segment = $class_bin->retrieveSegmentDetail($segment_id);
if ($segment['used_for'] == 'P') {
    $q = "SELECT b.*, ps.`products_id`, ps.`stock`, ps.`articles_id`, p.`products_image`, p.`products_model` FROM bins b INNER JOIN products_stock ps";
    $q .= " ON b.`products_stock_id` = ps.`products_stock_id` AND ps.`jng_warehouses_id` = {$segment['warehouses_id']}";
    $q .= " LEFT JOIN products_log pl ON pl.`products_id` = ps.`products_id`";
    $q .= " LEFT JOIN products p ON p.`products_id` = ps.`products_id`";
    $q .= " LEFT OUTER JOIN `jng_sp_orders_items` joi ON joi.`products_id` = pl.`products_id` AND joi.`status` IN (1, 8)";
    $q .= " WHERE (pl.`{$log_column}` = 0 OR pl.`products_id` IS NULL)";
    $q .= " AND joi.`jng_sp_orders_items_id` IS NULL";
    $q .= " AND b.`bin_segments_id` = {$segment_id}";
    $q .= " ORDER BY b.code";
} elseif ($segment['used_for'] == 'E') {
}
$clean_picklists = array();
$dbq = tep_db_query($q);
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:racks-cleareance-picklist.php

示例2: intval

warehouseFGCombo();
$session_page = 'sp-products-manage';
$page = 1;
if (isset($_GET['page'])) {
    $page = intval($_GET['page']);
}
if (isset($_POST['keywords'])) {
    $_SESSION[$session_page]['keywords'] = tep_db_prepare_input($_POST['keywords']);
}
if (!isset($_SESSION[$session_page]['keywords'])) {
    $_SESSION[$session_page]['keywords'] = '';
}
$keywords = $_SESSION[$session_page]['keywords'];
$sort_options = array();
foreach ($class_pm->bestgood_periods as $p => $name) {
    $sort_options[$class_pm->translateBestGoodPeriod($p)] = 'Top Selling ' . $name;
}
if (isset($_POST['sortby'])) {
    $_SESSION[$session_page]['sortby'] = tep_db_prepare_input($_POST['sortby']);
}
if (!isset($_SESSION[$session_page]['sortby'])) {
    $sort_options_keys = array_keys($sort_options);
    $_SESSION[$session_page]['sortby'] = $sort_options_keys[1];
}
$sort_option = $_SESSION[$session_page]['sortby'];
if (isset($_POST['viewall'])) {
    $_SESSION[$session_page]['viewall'] = tep_db_prepare_input($_POST['viewall']);
}
if (!isset($_SESSION[$session_page]['viewall'])) {
    $_SESSION[$session_page]['viewall'] = '1';
}
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:products-stock-list.php


注:本文中的products_minierp::translateBestGoodPeriod方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。