public static function init($uid = null)
 {
     global $kekezu;
     global $_lang;
     global $user_info;
     $user_info = keke_user_class::get_user_info($uid);
     self::$_basic_config = $kekezu->_sys_config;
     if ($user_info) {
         try {
             return $user_info;
         } catch (Exception $e) {
             keke_exception::handler($e);
         }
     }
 }
 function valid_email_auth()
 {
     global $_lang;
     $this->_auth_email_obj->setWhere("email  = '{$this->_account}' and auth_status=1");
     $auth_info = $this->_auth_email_obj->query_keke_witkey_auth_email();
     $auth_info = $auth_info[0];
     if ($auth_info) {
         $user_info = keke_user_class::get_user_info($auth_info[uid]);
         $user_info[login_type] = 'email';
         return $user_info;
     } else {
         $this->add_login_time();
         $this->show_msg($_lang['no_email_auth_not_login'], 5);
     }
 }
Beispiel #3
0
    $objMsgM = new Keke_witkey_msg_class();
    if (strtoupper(CHARSET) == 'GBK') {
        $to_username = kekezu::utftogbk($to_username);
    }
    $arrSpaceInfo = kekezu::get_user_info($to_username, 1);
    if (!$arrSpaceInfo) {
        $tips['errors']['to_username'] = '******';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if ($arrSpaceInfo['uid'] == $gUid) {
        $tips['errors']['to_username'] = '******';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if (strtoupper(CHARSET) == 'GBK') {
        $title = kekezu::utftogbk($title);
        $content = kekezu::utftogbk($content);
    }
    $objMsgM->setUid($gUid);
    $objMsgM->setUsername($username);
    $objMsgM->setTo_uid($arrSpaceInfo['uid']);
    $objMsgM->setTo_username($arrSpaceInfo['username']);
    $objMsgM->setTitle(kekezu::str_filter(kekezu::escape($title)));
    $objMsgM->setContent(kekezu::str_filter(kekezu::escape($content)));
    $objMsgM->setOn_time(time());
    $objMsgM->setType(3);
    $objMsgM->create_keke_witkey_msg();
    unset($objMsgM);
    kekezu::show_msg('已发送', NULL, NULL, NULL, 'ok');
} else {
    $userArrData = keke_user_class::get_user_info($id);
}
Beispiel #4
0
        $tips['errors']['email'] = '该email非法或已经被注册';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if (strtoupper(CHARSET) == 'GBK') {
        $account = kekezu::utftogbk($account);
    }
    $strNameCheck = keke_user_class::check_username($account);
    if ($strNameCheck != 1) {
        $tips['errors']['account'] = $strNameCheck;
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    $strCodeCheck = kekezu::check_secode($code);
    if ($strCodeCheck != 1) {
        $tips['errors']['code'] = $strCodeCheck;
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if (intval($agree) == 0) {
        $tips['errors']['agree'] = '请先同意注册协议';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    //增加$user_type,
    $intRegUid = $objReg->user_register(kekezu::escape($account), $password, $email, $code, 1, $password, $reg_user_type, $reg_user_type_xf);
    $arrUserInfo = keke_user_class::get_user_info($intRegUid);
    $objReg->register_login($arrUserInfo);
}
if (isset($check_username) && !empty($check_username)) {
    $res = keke_user_class::check_username($check_username);
    echo $res;
    die;
}
$_SESSION['spread'] = 'index.php?do=register';
Beispiel #5
0
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(11);
$basic_config = $kekezu->_sys_config;
$reg_obj = new keke_register_class();
$member_class = new keke_table_class('witkey_member');
$space_class = new keke_table_class('witkey_space');
$arrTopIndustrys = $kekezu->_indus_p_arr;
$arrAllIndustrys = $kekezu->_indus_arr;
if ($edituid) {
    $member_arr = kekezu::get_user_info($edituid);
    $shop_open = db_factory::get_count('select shop_id from ' . TABLEPRE . 'witkey_shop where uid=' . $edituid);
}
$member_group_arr = db_factory::query(sprintf("select group_id,groupname from %switkey_member_group", TABLEPRE));
if ($op == 'getzfpwd') {
    $userInfo = keke_user_class::get_user_info(intval($userid));
    $email = $userInfo['email'];
    $strNewCode = kekezu::randomkeys(8);
    $strNewMd5Pwd = keke_user_class::get_password($strNewCode, $userInfo['rand_code']);
    $intRes = db_factory::updatetable(TABLEPRE . 'witkey_space', array('sec_code' => $strNewMd5Pwd), array('uid' => intval($userid)));
    if ($intRes) {
        $message_obj = new keke_msg_class();
        $message_obj->send_message($userInfo['uid'], $userInfo['username'], 'update_sec_code', '找回支付密码', array('支付密码' => $strNewCode), $userInfo['email'], $userInfo['mobile'], 2);
        $system_log_obj = new Keke_witkey_system_log_class();
        $system_log_obj->setLog_content('admin于' . date("Y-m-d H:i:s") . '重置了' . $userInfo['username'] . '的支付密码');
        $system_log_obj->setLog_ip(kekezu::get_ip());
        $system_log_obj->setLog_time(time());
        $system_log_obj->setUser_type($userInfo['group_id']);
        $system_log_obj->setUid($userInfo['uid']);
        $system_log_obj->setUsername($userInfo['username']);
        $system_log_obj->create_keke_witkey_system_log();
 public static function add_report($obj, $obj_id, $to_uid, $desc, $report_type, $front_status = null, $origin_id = null, $user_type = null, $file_name = NULL, $reason = NULL, $is_hide = 1)
 {
     global $uid, $username, $kekezu, $_lang;
     kekezu::check_login();
     $resText = self::check_if_report($report_type, $obj, $obj_id, $uid, $to_uid);
     if ($resText !== true) {
         return $resText;
     }
     $transname = self::get_transrights_name($report_type);
     if (CHARSET == 'gbk') {
         $desc = kekezu::utftogbk($desc);
         $reason = kekezu::utftogbk($reason);
     }
     $to_uid and $arrUserInfo = keke_user_class::get_user_info($to_uid);
     $report_obj = new Keke_witkey_report_class();
     $report_obj->setObj($obj);
     $report_obj->setObj_id($obj_id);
     $report_obj->setUid($uid);
     $report_obj->setUsername($username);
     $report_obj->setUser_type($user_type);
     $report_obj->setOn_time(time());
     $report_obj->setOrigin_id($origin_id);
     $report_obj->setTo_uid($to_uid);
     $report_obj->setTo_username($arrUserInfo['username']);
     $report_obj->setReport_desc($desc);
     $report_obj->setReport_type($report_type);
     $report_obj->setFront_status($front_status);
     $report_obj->setReport_file($file_name);
     $report_obj->setReport_status(1);
     $report_obj->setIs_hide($is_hide);
     $report_obj->setReport_reason($reason);
     $report_id = $report_obj->create_keke_witkey_report();
     if ($report_type == '1') {
         self::process_freeze($report_id, $report_type, '1', $to_uid, $obj, $obj_id, $origin_id, $desc);
     }
     if ($report_id) {
         switch ($obj) {
             case 'task':
                 $task_info = self::get_task_info($obj_id);
                 $model_info = $kekezu->_model_list[$task_info['model_id']];
                 $result = array('用户名' => $task_info['username'], '模型名称' => $model_info['model_name'], '类型' => '任务', '标题' => '<a href="index.php?do=task&id=' . $task_info['task_id'] . '">' . $task_info['task_title'] . '</a>', $_lang['website_name'] => $kekezu->_sys_config['website_name']);
                 break;
             case 'product':
                 $service_info = self::get_service_info($obj_id);
                 $model_info = $kekezu->_model_list[$service_info['model_id']];
                 $result = array('用户名' => $task_info['username'], '模型名称' => $model_info['model_name'], '类型' => '商品(服务)', '标题' => '<a href="index.php?do=task&id=' . $service_info['task_id'] . '">' . $service_info['task_title'] . '</a>', $_lang['website_name'] => $kekezu->_sys_config['website_name']);
                 break;
         }
         $result and keke_msg_class::notify_user($to_uid, $to_username, 'report_notice', '举报通知', $result, 1);
         return true;
     } else {
         return $transname . $_lang['submit_fail'];
     }
 }
Beispiel #7
0
<?php

$regionCfg = keke_glob_class::getRegionConfig();
$arrDistrictInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . intval($id));
$province = CommonClass::getDistrictById($arrDistrictInfo['province']);
$city = CommonClass::getDistrictById($arrDistrictInfo['city']);
$area = CommonClass::getDistrictById($arrDistrictInfo['area']);
$intSellerGoodsNum = db_factory::get_count(sprintf("select count(service_id) from %switkey_service where model_id=6 and uid=%d and service_status=2", TABLEPRE, $arrOwnerInfo['uid']));
$intFavorite = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and obj_id = %d and keep_type = "service"', TABLEPRE . 'witkey_favorite', intval($gUid), intval($arrServiceInfo['service_id'])));
if ($type == "get") {
    $arrResult1 = keke_user_class::get_user_info($uid);
    $objFavorite = keke_table_class::get_instance('witkey_favorite');
    $arrFields = array('keep_type' => $obj_type, 'obj_type' => $do, 'origin_id' => $service_id, 'obj_id' => $service_id, 'obj_name' => $arrServiceInfo['title'], 'uid' => $uid, 'username' => $gUsername, 'on_date' => time());
    $intResult = $objFavorite->save($arrFields);
    die;
}
if ($type == "getno") {
    $sql1 = "DELETE FROM " . TABLEPRE . "witkey_favorite WHERE obj_id =" . $service_id . ' and uid=' . $uid;
    $sql1 .= " and obj_type='" . $do . "'";
    db_factory::query($sql1);
    die;
}
$intFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($arrServiceInfo['uid'])));
if ($gUid && $gUid !== $arrServiceInfo['uid']) {
    $myOrderInfo = db_factory::get_one("select a.order_status from " . TABLEPRE . "witkey_order a left join " . TABLEPRE . "witkey_order_detail b on a.order_id=b.order_id where b.obj_type='service' and b.obj_id={$id} and a.order_uid={$gUid}");
}
$page and $intPage = intval($page);
intval($intPage) and $p['page'] = intval($intPage) or $p['page'] = '1';
intval($intPagesize) and $p['page_size'] = intval($intPagesize) or $p['page_size'] = 10;
$objTime = new goods_time_class();
$objTime->validtaskstatus();
Beispiel #8
0
 function init_user()
 {
     if ($_SESSION['uid']) {
         $this->_uid = $_SESSION['uid'];
         $this->_username = $_SESSION['username'];
         $userinfo = keke_user_class::get_user_info($this->_uid);
         if (!$userinfo['last_login_time']) {
             db_factory::execute(' update ' . TABLEPRE . 'witkey_space set last_login_time=' . time() . ' where uid=' . $this->_uid);
             $userinfo['last_login_time'] = time();
         }
         $userinfo['last_login_time'] = $_SESSION['last_login_time'] ? $_SESSION['last_login_time'] : time();
         $this->_userinfo = $userinfo;
         $this->_user_group = $this->_userinfo['group_id'];
         $user_obj = new keke_user_class();
         $user_type = $user_obj->get_user_type($this->_uid);
         $this->_user_type = $user_type['user_type'];
         //用户身份类型
     } elseif ($_COOKIE['keke_auto_login']) {
         $loginInfo = unserialize($_COOKIE['keke_auto_login']);
         $pwdInfo = explode('|', base64_decode($loginInfo[2]));
         $uInfo = kekezu::get_table_data('*', 'witkey_space', " username='******'2']}' and password = '******'1']}'", '', '');
         if ($uInfo[0]['uid'] == $pwdInfo[0]) {
             $_SESSION['uid'] = $uInfo[0]['uid'];
             $_SESSION['username'] = $uInfo[0]['username'];
             $this->_uid = $_SESSION['uid'];
             $this->_username = $uInfo[0]['username'];
         }
     }
 }
Beispiel #9
0
         } else {
             $strPageDescription = kekezu::cutstr(htmlspecialchars_decode(stripslashes($arrTaskInfo['task_desc'])), 100);
         }
     }
 }
 $arrCashCoves = TaskClass::getTaskCashCove();
 $arrBreadcrumbs = array(1 => array('url' => 'index.php?do=tasklist', 'name' => '任务大厅'), 2 => array('url' => 'index.php?do=tasklist&pd=' . $arrTaskInfo['indus_pid'], 'name' => $indus_p_arr[$arrTaskInfo['indus_pid']]['indus_name']), 3 => array('url' => 'index.php?do=tasklist&pd=' . $arrTaskInfo['indus_pid'] . '&i=' . $arrTaskInfo['indus_id'], 'name' => $indus_arr[$arrTaskInfo['indus_id']]['indus_name']));
 $arrWorkFlag = array(1 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '一等奖'), 2 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '二等奖'), 3 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '三等奖'), 4 => array('id' => 4, 'style' => 'fa-check-circle', 'name' => '中标'), 5 => array('id' => 5, 'style' => 'fa-dot-circle-o', 'name' => '入围'), 6 => array('id' => 6, 'style' => 'fa-check-circle', 'name' => '合格'), 7 => array('id' => 7, 'style' => 'fa-times-circle', 'name' => '淘汰'), 8 => array('id' => 8, 'style' => 'fa-times-circle', 'name' => '不可选标'), 9 => array('id' => 9, 'style' => 'fa-times-circle', 'name' => '放弃'));
 $strUrl = "index.php?do=task&id=" . $intId;
 $arrView = array('work', 'comment', 'mark');
 if (!in_array($view, $arrView)) {
     $view = 'work';
 }
 $intDeals = TaskClass::getWikiDealbyUid($arrTaskInfo['uid']);
 $arrWorkService = TaskClass::getWorkServers($intId, $arrTaskInfo['model_id']);
 $arrUserInfo = keke_user_class::get_user_info($arrTaskInfo['uid']);
 $strMarkQuerySQl = " SELECT COUNT(mark_id) FROM `" . TABLEPRE . "witkey_mark` ";
 $strMarkQuerySQl .= " WHERE origin_id = '" . $arrTaskInfo['task_id'] . "' ";
 $strMarkQuerySQl .= " AND mark_status > 0 AND model_code = '" . $arrModelInfo['model_dir'] . "'";
 $arrTaskInfo['mark_num'] = db_factory::get_count($strMarkQuerySQl);
 $arrPayitemLists = PayitemClass::getPayitemListDetail('task', $arrTaskInfo['task_id']);
 $arrPayitemListAlls = PayitemClass::getPayitemListForPub('task');
 $arrOrderInfo = array();
 $sql = "SELECT a.*,b.order_status FROM `" . TABLEPRE . "witkey_order_detail` a LEFT JOIN `" . TABLEPRE . "witkey_order` b ON a.order_id= b.order_id WHERE a.obj_type = 'task' and a.obj_id = " . $arrTaskInfo['task_id'];
 $arrOrderInfo = db_factory::get_one($sql);
 if ($arrOrderInfo['order_status'] == 'ok') {
     $boolIsHosting = true;
 } else {
     $boolIsHosting = false;
 }
 $arrSimpleTasks = db_factory::query("select * from " . TABLEPRE . "witkey_task where indus_pid=" . $arrTaskInfo['indus_pid'] . " and task_id!=" . $arrTaskInfo['task_id'] . " and task_status not in(0,1,10) order by start_time desc limit 10");
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$intTaskId = intval($task_id);
$intModelId = intval($model_id);
$arrTaskInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_task where task_id=" . $intTaskId);
$arrWorkInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_task_work where task_id=" . $intTaskId . " and work_status=4");
if ($arrTaskInfo['task_status'] != 13) {
    kekezu::admin_show_msg($_lang['param_error'], 'index.php?do=model&model_id=' . $intModelId . '&view=list', 3, '', 'warning');
}
$floatCash = $arrTaskInfo['task_cash'] * (1 - $arrTaskInfo['task_fail_rate'] / 100);
$arrGinfo = keke_user_class::get_user_info($arrTaskInfo['uid']);
$arrWinfo = keke_user_class::get_user_info($arrWorkInfo['uid']);
if ($intSbtEdit == 1) {
    $floaTotalCash = floatval($floatCash);
    $floatGzGet = floatval(keke_curren_class::convert($op_result['gz_get'], 0, true));
    $floatWkGet = floatval(keke_curren_class::convert($op_result['wk_get'], 0, true));
    if ($floaTotalCash != $floatGzGet + $floatWkGet) {
        kekezu::admin_show_msg($_lang['wain_you_give_cash_error_notice'], "index.php?do=model&model_id={$model_id}&view=list", "3", "", "warning");
    } else {
        $res = keke_finance_class::cash_in($arrGinfo['uid'], $floatGzGet, 'task_fail');
        $res .= keke_finance_class::cash_in($arrWinfo['uid'], $floatWkGet, 'task_fail');
        if ($res) {
            db_factory::execute("update " . TABLEPRE . "witkey_task set task_status=9 where task_id=" . $intTaskId);
            kekezu::admin_show_msg('处理成功', "index.php?do=model&model_id={$model_id}&view=list", "3", "", "success");
        } else {
            kekezu::admin_show_msg('处理失败', "index.php?do=model&model_id={$model_id}&view=list", "3", "", "warning");
        }
    }
}
require keke_tpl_class::template('task/' . $model_info['model_dir'] . '/admin/tpl/task_' . $view);
Beispiel #11
0
            $tips['errors']['email'] = '该email非法或已经被注册';
            kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
        }
    }
    if (strtoupper(CHARSET) == 'GBK') {
        $account = kekezu::utftogbk($account);
    }
    $strNameCheck = keke_user_class::check_username($account);
    if ($strNameCheck != 1 && $account != $_SESSION['username']) {
        $tips['errors']['account'] = $strNameCheck;
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if (!$password) {
        $password = kekezu::randomkeys(6);
    }
    if (intval($agree) == 0) {
        $tips['errors']['agree'] = '请先同意注册协议';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if ($arrBindInfo) {
        global $_K;
        $_K['refer'] = '';
        db_factory::execute("update " . TABLEPRE . "witkey_member_oauth set username='******' where oauth_id='" . $arrBindInfo['oauth_id'] . "' and uid=" . intval($arrBindInfo['uid']));
        db_factory::execute("update " . TABLEPRE . "witkey_space set username='******',password='******',email='" . $email . "' where uid=" . intval($arrBindInfo['uid']));
        db_factory::execute("update " . TABLEPRE . "witkey_member set username='******',password='******',email='" . $email . "' where uid=" . intval($arrBindInfo['uid']));
        db_factory::execute("update " . TABLEPRE . "witkey_shop set username='******',shop_name='" . $account . "' where uid=" . intval($arrBindInfo['uid']));
        $arrUserInfo = keke_user_class::get_user_info($arrBindInfo[uid]);
        $_SESSION[$type . '_oauthInfo'] = null;
        $objReg->register_login($arrUserInfo, 1);
    }
}
Beispiel #12
0
     }
 }
 $floatGoodMark = CommonClass::getGoodsMark(intval($intId));
 if ($uid != $arrServiceInfo['uid'] && $arrServiceInfo['service_status'] != 2 && $arrServiceInfo['service_status'] != 5) {
     $gUid == ADMIN_UID or kekezu::show_msg('操作提示', "index.php?do=goodslist", '1', '商品不存在', 'warning');
 }
 if (isset($op)) {
     switch ($op) {
         case "report":
             $transname = keke_report_class::get_transrights_name($type);
             $report_reason = keke_report_class::get_report_product_reason();
             if (isset($formhash) && kekezu::submitcheck($formhash)) {
                 $resCheck = keke_report_class::check_if_report($type, $objType, $objId, $uid, $toUid);
                 if ($resCheck === true) {
                     $tarContent = kekezu::escape($tarContent);
                     $toUserInfo = keke_user_class::get_user_info($toUid);
                     $resText = keke_shop_class::set_report($objId, $toUid, $type, $filepath, $tarContent, $sltReason);
                     if ($resText === true) {
                         kekezu::show_msg('感谢您的举报,管理员会尽快受理,请耐心等待处理结果。', 'index.php?do=goods&id=' . $id, 3, NULL, 'ok');
                     } else {
                         kekezu::show_msg($resText, null, null, NULL, 'fail');
                     }
                 } else {
                     kekezu::show_msg($resCheck, null, null, NULL, 'fail');
                 }
             } else {
                 $strUrl .= '&op=report';
                 require keke_tpl_class::template("tpl/default/ajax/report");
                 die;
             }
             break;
            kekezu::admin_system_log($_lang['delete_apply_forwithdraw'] . $order_id);
            kekezu::admin_show_msg($_lang['message_about_delete'], $url, 3, '', 'success');
            break;
    }
} elseif (isset($ckb)) {
    $ids = implode(',', $ckb);
    if (count($ids)) {
        $recharge_obj->setWhere(" order_id in ({$ids}) and order_status = 'wait' ");
        $nodraw_arr = $recharge_obj->query_keke_witkey_order_charge();
        $del_ids = array();
        switch ($sbt_action) {
            case $_lang['mulit_delete']:
                foreach ($nodraw_arr as $k => $v) {
                    $del_ids[$k] = $v[order_id];
                    $message_obj = new keke_msg_class();
                    $user_info = keke_user_class::get_user_info($v[uid]);
                    $v = array($_lang['recharge_single_num'] => $v['order_id'], $_lang['recharge_cash'] => $v[pay_money]);
                    $message_obj->send_message($user_info['uid'], $user_info['username'], 'recharge_fail', $_lang['recharge_fail'], $v, $user_info[email], $user_info['mobile']);
                }
                $del_ids = implode(",", $del_ids);
                if ($del_ids) {
                    $recharge_obj->setWhere(" order_id in ({$del_ids})");
                    $res = $recharge_obj->del_keke_witkey_order_charge();
                    kekezu::admin_system_log($_lang['delete_recharge_order'] . $del_ids);
                }
                break;
        }
        kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success');
    } else {
        kekezu::admin_show_msg($_lang['please_select_an_item_to_operate'], 'index.php?do=' . $do . '&view=' . $view, 3, '', 'warning');
    }
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$uid = $_R['uid'];
$userinfo = keke_user_class::get_user_info($uid);
$username = $userinfo['username'];
switch ($type) {
    case 'task':
        $arrData = db_factory::query('select task_id,task_title from ' . TABLEPRE . 'witkey_task where uid = ' . $uid);
        break;
    case 'parrt':
        $strSql = "SELECT task_title,task_id FROM `" . TABLEPRE . "witkey_task` WHERE ( task_id IN ( SELECT task_id FROM " . TABLEPRE . "witkey_task_bid WHERE uid = " . $uid . " ) OR task_id IN ( SELECT task_id FROM " . TABLEPRE . "witkey_task_work WHERE uid = " . $uid . " ) )";
        $arrData = db_factory::query($strSql);
        break;
    case 'added':
        $arrData = db_factory::query('select title,service_id from ' . TABLEPRE . 'witkey_service where uid = ' . $uid . ' and service_status = 2');
        break;
    case 'buy':
        $strWhere = ' 1=1 ';
        $strWhere .= ' and a.order_uid = ' . $uid;
        $strWhere .= ' and b.obj_type = ' . "'service'";
        $strSql = ' SELECT c.title,c.service_id FROM `' . TABLEPRE . 'witkey_order` AS a ' . ' LEFT JOIN ' . TABLEPRE . 'witkey_order_detail AS b ON a.order_id = b.order_id ' . ' LEFT JOIN ' . TABLEPRE . 'witkey_service AS c ON b.obj_id = c.service_id ' . ' LEFT JOIN ' . TABLEPRE . 'witkey_service_order AS d ON b.order_id = d.order_id ' . ' WHERE ' . $strWhere;
        $arrData = db_factory::query($strSql);
        break;
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);