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


PHP goods_list函数代码示例

本文整理汇总了PHP中goods_list函数的典型用法代码示例。如果您正苦于以下问题:PHP goods_list函数的具体用法?PHP goods_list怎么用?PHP goods_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: elseif

} elseif ($_REQUEST['act'] == 'edit_sort_order') {
    check_authz_json('goods_manage');
    $goods_id = intval($_POST['id']);
    $sort_order = intval($_POST['val']);
    if ($exc->edit("sort_order = '{$sort_order}', last_update=" . gmtime(), $goods_id)) {
        clear_cache_files();
        make_json_result($sort_order);
    }
} elseif ($_REQUEST['act'] == 'query' || $_REQUEST['act'] == 'special_query') {
    $is_delete = empty($_REQUEST['is_delete']) ? 0 : intval($_REQUEST['is_delete']);
    $code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']);
    if ($_REQUEST['act'] == 'query') {
        $goods_list = goods_list($is_delete, $code == '' ? 1 : 0);
        $tpl = $is_delete ? 'goods_trash.htm' : 'goods_list.htm';
    } elseif ($_REQUEST['act'] == 'special_query') {
        $goods_list = goods_list(0, 1, ' AND is_special=1 ');
        $tpl = $is_delete ? 'goods_trash.htm' : 'goods_special_list.htm';
    }
    $handler_list = array();
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=card', 'title' => $_LANG['card'], 'img' => 'icon_send_bonus.gif');
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=replenish', 'title' => $_LANG['replenish'], 'img' => 'icon_add.gif');
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=batch_card_add', 'title' => $_LANG['batch_card_add'], 'img' => 'icon_output.gif');
    if (isset($handler_list[$code])) {
        $smarty->assign('add_handler', $handler_list[$code]);
    }
    $action_list = if_agency() ? 'all' : '';
    $smarty->assign('all', $action_list);
    $smarty->assign('code', $code);
    $smarty->assign('goods_list', $goods_list['goods']);
    $smarty->assign('filter', $goods_list['filter']);
    $smarty->assign('record_count', $goods_list['record_count']);
开发者ID:dlpc,项目名称:ecshop,代码行数:31,代码来源:goods.php

示例2: die

    }
    $res['is_black'] = $is_black;
    die($json->encode($res));
} elseif ($_REQUEST['act'] == 'search_by_goods') {
    if (!admin_priv('search_by_goods', '', false)) {
        $msg = array('req_msg' => true, 'timeout' => 2000, 'message' => '访问未经授权!');
    }
    if (admin_priv('all', '', false)) {
        $smarty->assign('all', true);
        $smarty->assign('role_list', get_role_customer(' AND role_id IN(' . KEFU . ',' . KEFU2 . ',13)'));
    }
    // 品牌列表
    $brand_list = get_brand_list(' WHERE is_show=1 ');
    $smarty->assign('brand_list', $brand_list);
    // 商品列表
    $goods_list = goods_list(0);
    $smarty->assign('goods_list', $goods_list['goods']);
    $smarty->assign('full_page', 1);
    $res['main'] = $smarty->fetch('search_by_goods.htm');
    echo $json->encode($res);
    return;
} elseif ($_REQUEST['act'] == 'list_goods_by_brand') {
    $brand_id = intval($_REQUEST['brand_id']);
    $sql_select = 'SELECT goods_id,goods_name FROM ' . $GLOBALS['ecs']->table('goods') . " WHERE brand_id={$brand_id} AND is_on_sale=1";
    $goods_list = $GLOBALS['db']->getAll($sql_select);
    echo $json->encode($goods_list);
    return;
} elseif ($_REQUEST['act'] == 'show_goods_users') {
    $user_list = search_by_goods();
    $smarty->assign('user_list', $user_list['user_list']);
    // 分页设置
开发者ID:554119220,项目名称:kjrscrm,代码行数:31,代码来源:users.php

示例3: clear_cache_files

    if ($exc->edit("is_hot = '{$is_hot}', last_update=" . gmtime(), $goods_id)) {
        clear_cache_files();
        make_json_result($is_hot);
    }
} elseif ($_REQUEST['act'] == 'edit_sort_order') {
    check_authz_json('goods_manage');
    $goods_id = intval($_POST['id']);
    $sort_order = intval($_POST['val']);
    if ($exc->edit("sort_order = '{$sort_order}', last_update=" . gmtime(), $goods_id)) {
        clear_cache_files();
        make_json_result($sort_order);
    }
} elseif ($_REQUEST['act'] == 'query') {
    $is_delete = empty($_REQUEST['is_delete']) ? 0 : intval($_REQUEST['is_delete']);
    $code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']);
    $goods_list = goods_list($is_delete, $code == '' ? 1 : 0);
    $handler_list = array();
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=card', 'title' => $_LANG['card'], 'img' => 'icon_send_bonus.gif');
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=replenish', 'title' => $_LANG['replenish'], 'img' => 'icon_add.gif');
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=batch_card_add', 'title' => $_LANG['batch_card_add'], 'img' => 'icon_output.gif');
    if (isset($handler_list[$code])) {
        $smarty->assign('add_handler', $handler_list[$code]);
    }
    $smarty->assign('goods_list', $goods_list['goods']);
    $smarty->assign('filter', $goods_list['filter']);
    $smarty->assign('record_count', $goods_list['record_count']);
    $smarty->assign('page_count', $goods_list['page_count']);
    $smarty->assign('list_type', $is_delete ? 'trash' : 'goods');
    $smarty->assign('use_storage', empty($_CFG['use_storage']) ? 0 : 1);
    /* 排序标记 */
    $sort_flag = sort_flag($goods_list['filter']);
开发者ID:netroby,项目名称:ecshop,代码行数:31,代码来源:suppliers_goods.php

示例4: getList

 public function getList($cols, $filter = "", $start = 0, $limit = 20, $orderType = null)
 {
     if (!function_exists("goods_list")) {
         require CORE_INCLUDE_DIR . "/core/goods.list.php";
     }
     return goods_list($cols, $filter, $start, $limit, $orderType, $this);
 }
开发者ID:noikiy,项目名称:cxe,代码行数:7,代码来源:mdl.products.php

示例5: array

         $update_time = $_SERVER['REQUEST_TIME'];
         $sql_upd = 'UPDATE ' . $GLOBALS['ecs']->table('stock_goods') . " SET {$element}='{$value}',update_time={$update_time} WHERE rec_id={$rec_id}";
         $result = $GLOBALS['db']->query($sql_upd);
         $res = array('req_msg' => true, 'rec_id' => $rec_id, 'elements' => $element, 'value' => $value, 'timeout' => 2000, 'code' => false);
         if ($result) {
             record_operate($sql_upd, 'stock_goods');
             $res['code'] = true;
             $res['value'] = $v;
             $res['quantity'] = $quantity;
         }
         die($json->encode($res));
     }
 } elseif ($_REQUEST['act'] == 'index_stock_alarm') {
     $_REQUEST['filter'] = 'low_qty';
     $sql_select = 'SELECT g.goods_id,g.goods_sn,SUM(g.quantity) AS quantity,';
     $stock_info = goods_list(0);
     $smarty->assign('goods_list', $stock_info['goods']);
     $smarty->assign('page_set', $stock_info['page_set']);
     $smarty->assign('page_count', $stock_info['page_count']);
     $smarty->assign('record_count', $stock_info['record_count']);
     $smarty->assign('page_size', $stock_info['page_size']);
     $smarty->assign('page', $stock_info['page']);
     $smarty->assign('condition', $stock_info['condition']);
     $smarty->assign('page_set', $stock_info['page_set']);
     $smarty->assign('start', $stock_info['start']);
     $smarty->assign('end', $stock_info['end']);
     $smarty->assign('act', 'index_stock_alarm');
     $res['response_action'] = 'search_service';
     $res['main'] = $smarty->fetch('stock_alarm.htm');
     die($json->encode($res));
 } elseif ($_REQUEST['act'] == 'timely_stock_alarm') {
开发者ID:554119220,项目名称:kjrscrm,代码行数:31,代码来源:storage.php

示例6: cat_list

    $ur_here = $_REQUEST['act'] == 'list' ? $goods_ur[$code] : $_LANG['11_goods_trash'];
    $smarty->assign('ur_here', $ur_here);
    $smarty->assign('code', $code);
    $smarty->assign('cat_list', cat_list(0, $cat_id));
    $smarty->assign('brand_list', get_brand_list());
    $smarty->assign('intro_list', get_intro_list());
    $smarty->assign('lang', $_LANG);
    $smarty->assign('list_type', $_REQUEST['act'] == 'list' ? 'goods' : 'trash');
    $smarty->assign('use_storage', empty($_CFG['use_storage']) ? 0 : 1);
    $city = get_city_list();
    $smarty->assign('city', $city);
    $suppliers_list = suppliers_list_info(' is_check = 1 ');
    $suppliers_list_count = count($suppliers_list);
    $smarty->assign('suppliers_list', $suppliers_list_count == 0 ? 0 : $suppliers_list);
    // 取供货商列表
    $goods_list = goods_list($_REQUEST['act'] == 'list' ? 0 : 1, $_REQUEST['act'] == 'list' ? $code == '' ? 1 : 0 : -1);
    $smarty->assign('goods_list', $goods_list['goods']);
    $smarty->assign('filter', $goods_list['filter']);
    $smarty->assign('record_count', $goods_list['record_count']);
    $smarty->assign('page_count', $goods_list['page_count']);
    $smarty->assign('full_page', 1);
    /* 排序标记 */
    $sort_flag = sort_flag($goods_list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    /* 获取商品类型存在规格的类型 */
    $specifications = get_goods_type_specifications();
    $smarty->assign('specifications', $specifications);
    /* 显示商品列表页面 */
    assign_query_info();
    $smarty->display('virtual_goods_list.htm');
} elseif ($_REQUEST['act'] == 'add' || $_REQUEST['act'] == 'edit' || $_REQUEST['act'] == 'copy') {
开发者ID:firsteam,项目名称:falcons,代码行数:31,代码来源:virtual_goods.php

示例7: clear_cache_files

    if ($exc->edit("sort_order = '$sort_order', last_update=" .gmtime(), $goods_id))
    {
        clear_cache_files();
        make_json_result($sort_order);
    }
}

/*------------------------------------------------------ */
//-- 排序、分页、查询
/*------------------------------------------------------ */
elseif ($_REQUEST['act'] == 'query')
{
    $is_delete = empty($_REQUEST['is_delete']) ? 0 : intval($_REQUEST['is_delete']);
    $code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']);
    $goods_list = goods_list($is_delete, ($code=='') ? 1 : 0);

    $handler_list = array();
    $handler_list['virtual_card'][] = array('url'=>'virtual_card.php?act=card', 'title'=>$_LANG['card'], 'img'=>'icon_send_bonus.gif');
    $handler_list['virtual_card'][] = array('url'=>'virtual_card.php?act=replenish', 'title'=>$_LANG['replenish'], 'img'=>'icon_add.gif');
    $handler_list['virtual_card'][] = array('url'=>'virtual_card.php?act=batch_card_add', 'title'=>$_LANG['batch_card_add'], 'img'=>'icon_output.gif');

    if (isset($handler_list[$code]))
    {
        $smarty->assign('add_handler',      $handler_list[$code]);
    }
    $smarty->assign('code',         $code);
    $smarty->assign('goods_list',   $goods_list['goods']);
    $smarty->assign('filter',       $goods_list['filter']);
    $smarty->assign('record_count', $goods_list['record_count']);
    $smarty->assign('page_count',   $goods_list['page_count']);
开发者ID:blowfishJ,项目名称:galaxyCode,代码行数:30,代码来源:goods.php

示例8: die

             $msg['response_action'] = 'order_detail';
             $msg['code'] = 0;
             $msg['req_msg'] = true;
             $msg['message'] = $lock_status['order_lock'] ? "动作有点儿慢了哦!{$operator} 正在处理该订单,请选择其它订单!" : "该订单还未分配,请先去↗获取订单↗吧!";
             $msg['timeout'] = 2000;
             die($json->encode($msg));
         }
     }
 }
 // 读取订单详细信息
 $order_info = get_order_detail($id, $order_table_name);
 //if(!in_array($_SESSION['admin_id'],array(497,4,277,330,554))){
 //    $order_info['mobile'] = hideContact($order_info['mobile']);
 //    $order_info['tel'] = hideContact($order_info['tel']);
 //}
 $goods_list = goods_list($id, $goods_table_name);
 $blacklist_info = in_blacklist($id, $order_table_name);
 $order_info['table'] = $order_table_name;
 if ($blacklist_info['is_black'] > 0) {
     if (admin_priv('all', '', false) || admin_priv('order_group_view', '', false) || admin_priv('ignore_blacklist', '', false)) {
         $smarty->assign('ignore_error', true);
     }
     if ($blacklist_info['is_black'] == 1) {
         $error_msg = sprintf('查询历史记录得知,%s', $blacklist_info['reason']);
     } elseif ($blacklist_info['is_black'] == 3) {
         $error_msg = '根据记录,此顾客有风险,请通知上级主管进行排查!';
     } elseif ($blacklist_info['is_black'] == 4) {
         $error_msg = sprintf("此顾客有风险,但已被%s排除警报,可进行订单操作", $blacklist_info['ignore_admin']);
     }
 }
 $smarty->assign('error_msg', $error_msg);
开发者ID:554119220,项目名称:kjrscrm,代码行数:31,代码来源:order.php

示例9: getList

 function getList($cols, $filter = '', $start = 0, $limit = 20, $orderType = null)
 {
     if (!function_exists('goods_list')) {
         require CORE_INCLUDE_DIR . '/core/goods.list.php';
     }
     return goods_list($cols, $filter, $start, $limit, $orderType, $this);
 }
开发者ID:noikiy,项目名称:MyShop,代码行数:7,代码来源:mdl.products.php

示例10: elseif

    }
} elseif ($_REQUEST['act'] == 'edit_sort_order') {
    check_authz_json('goods_manage');
    $goods_id = intval($_POST['id']);
    $sort_order = intval($_POST['val']);
    if ($exc->edit("sort_order = '{$sort_order}', last_update=" . gmtime(), $goods_id)) {
        clear_cache_files();
        make_json_result($sort_order);
    }
} elseif ($_REQUEST['act'] == 'query') {
    //从请求url参数中来
    $is_delete = empty($_REQUEST['is_delete']) ? 0 : intval($_REQUEST['is_delete']);
    $is_add_goods = empty($_REQUEST['is_add_goods']) ? 0 : intval($_REQUEST['is_add_goods']);
    $code = empty($_REQUEST['extension_code']) ? '' : trim($_REQUEST['extension_code']);
    //TODO参数是否要修改
    $goods_list = goods_list($is_delete, $code == '' ? 1 : 0, '', $is_add_goods);
    $handler_list = array();
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=card', 'title' => $_LANG['card'], 'img' => 'icon_send_bonus.gif');
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=replenish', 'title' => $_LANG['replenish'], 'img' => 'icon_add.gif');
    $handler_list['virtual_card'][] = array('url' => 'virtual_card.php?act=batch_card_add', 'title' => $_LANG['batch_card_add'], 'img' => 'icon_output.gif');
    if (isset($handler_list[$code])) {
        $smarty->assign('add_handler', $handler_list[$code]);
    }
    $smarty->assign('code', $code);
    $smarty->assign('goods_list', $goods_list['goods']);
    $smarty->assign('filter', $goods_list['filter']);
    $smarty->assign('record_count', $goods_list['record_count']);
    $smarty->assign('page_count', $goods_list['page_count']);
    $smarty->assign('list_type', $is_delete ? 'trash' : 'goods');
    $smarty->assign('use_storage', empty($_CFG['use_storage']) ? 0 : 1);
    /* 排序标记 */
开发者ID:jz233,项目名称:TheProject,代码行数:31,代码来源:goods.php


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