Пример #1
0
                require keke_tpl_class::template('shop/' . $model_info['model_dir'] . '/admin/tpl/goods_reason');
                die;
            }
            break;
    }
}
if (isset($sbt_action)) {
    $key_ids = $ckb;
    if (is_array($key_ids)) {
        $action = "aa";
        $log_mac_arr = array("del" => $_lang['delete'], "user" => $_lang['open'], "pass" => $_lang['pass'], "disable" => $_lang['disable']);
        $log_msg = $_lang['to_witkey_goods_conduct_mulit'] . $log_mac_arr[$sbt_action] . $_lang['operate'];
        kekezu::admin_system_log($log_msg);
        switch ($sbt_action) {
            case $_lang['mulit_delete']:
                $res = keke_shop_class::service_del($key_ids);
                $action = $_lang['delete'];
                break;
            case $_lang['mulit_pass']:
                foreach ($key_ids as $v) {
                    $service_info = kekezu::get_table_data("*", "witkey_service", "service_id = {$v}");
                    $service_info = $service_info['0'];
                    $add_time = time() - $service_info['on_time'];
                    keke_payitem_class::update_service_payitem_time($service_info['payitem_time'], $add_time, $v);
                }
                $res = goods_shop_class::set_service_status($key_ids, 2);
                $action = $_lang['mulit_pass'];
                break;
            case $_lang['mulit_nopass']:
                $res = goods_shop_class::set_service_status($key_ids, 4);
                foreach ($key_ids as $v) {