Esempio n. 1
0
 public function __construct($report_id, $report_info, $obj_info)
 {
     parent::__construct($report_id, $report_info, $obj_info);
     $this->_task_info = $this->get_task_info($this->_report_info['origin_id']);
     $this->_task_obj = new match_task_class($this->_task_info);
     $this->_match_task = db_factory::get_one(sprintf(" select * from %switkey_task_match where task_id='%d'", TABLEPRE, $this->_obj_info['origin_id']));
     $this->_match_work = db_factory::get_one(sprintf(" select b.* from %switkey_task_work a left join %switkey_task_match_work b on a.work_id=b.work_id where a.task_id='%d' and a.work_status=4", TABLEPRE, TABLEPRE, $this->_obj_info['origin_id']));
 }
Esempio n. 2
0
 public static function check_if_report($type, $obj, $obj_id, $uid, $to_uid)
 {
     global $_lang;
     $reportSql = sprintf(" select report_id from %switkey_report where report_type='%d' and obj='%s'\n\t\t and obj_id='%d' and uid='%d' and to_uid='%d'", TABLEPRE, $type, $obj, $obj_id, $uid, $to_uid);
     $resText = db_factory::get_count($reportSql);
     $trans_name = keke_report_class::get_transrights_name($type);
     if (!$resText) {
         return true;
     } else {
         return '您已成功提交了' . $trans_name . "信息,我们会尽快处理,请勿重复操作。";
     }
 }
Esempio n. 3
0
 public static function set_report($order_id, $to_uid, $report_type, $file_name, $desc, $reason)
 {
     global $uid;
     global $_lang;
     $order_info = self::get_order_info($order_id);
     $transname = keke_report_class::get_transrights_name($report_type);
     if ($order_info['order_uid'] == $uid || $order_info['seller_uid'] == $uid) {
         if ($order_info['order_uid'] == $uid && $uid == $to_uid) {
             return $_lang['buyer_can_not_to_self'] . $transname;
         } elseif ($order_info['seller_uid'] == $uid && $uid == $to_uid) {
             return $_lang['seller_can_not_to_self'] . $transname;
         }
     } else {
         return $_lang['no_trans_not_to_order'] . $transname;
     }
     $uid == $order_info['order_uid'] and $user_type = '2' or $user_type = '1';
     return keke_report_class::add_report('order', $order_id, $to_uid, $desc, $report_type, $order_info['order_status'], $order_info['obj_id'], $user_type, $file_name, $reason);
 }
Esempio n. 4
0
 public static function set_report($obj_id, $to_uid, $report_type, $file_name, $desc, $reason)
 {
     global $uid;
     global $_lang;
     $service_info = self::get_service_info($obj_id);
     $transname = keke_report_class::get_transrights_name($report_type);
     if ($service_info['uid'] == $uid) {
         return $_lang['can_not_to_self'] . $transname;
     }
     $user_type = '2';
     return keke_report_class::add_report('product', $obj_id, $to_uid, $desc, $report_type, $service_info['service_status'], $obj_id, $user_type, $file_name, $reason);
 }
Esempio n. 5
0
        kekezu::show_msg('订单已关闭', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning');
        break;
    default:
        break;
}
if ($action === 'rights') {
    $transname = keke_report_class::get_transrights_name($type);
    if ($type == '1') {
        if ($arrOrderInfo['order_uid'] == $gUid) {
            $objType = 'work';
        } else {
            $objType = 'task';
        }
        $report_reason = keke_report_class::getRightsType($objType);
    } else {
        $report_reason = keke_report_class::getReportType($objType);
    }
    if (isset($formhash) && kekezu::submitcheck($formhash)) {
        $resText = keke_order_class::set_report($objId, $toUid, $type, $filepath, $tarContent, $sltReason);
        if ($resText === true) {
            kekezu::show_msg('感谢您的' . $transname . ',管理员会尽快受理,请耐心等待处理结果。', $strUrl . "&orderId=" . $orderId, 3, NULL, 'ok');
        } else {
            kekezu::show_msg($resText, null, null, NULL, 'fail');
        }
    } else {
        $strUrl = $reportUrl;
        require keke_tpl_class::template("tpl/default/ajax/report");
    }
    exit(0);
}
if ($action === 'showKf') {
 public function __construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo)
 {
     parent::__construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
 }
 public function __construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo)
 {
     parent::__construct($report_id, $report_info, $obj_info, $user_info, $to_userinfo);
     $this->_task_info = $this->get_task_info($this->_report_info['origin_id']);
     $this->_task_obj = new sreward_task_class($this->_task_info);
 }
Esempio n. 8
0
}
$jsonWorkStatus = json_encode($arrWorkStatus);
if ($arrTaskInfo['task_pic']) {
    $arrTaskPics = explode(',', $arrTaskInfo['task_pic']);
}
$arrPayitemShow = $objTask->getPayitemShow();
$intGuid = $arrTaskInfo['uid'];
$arrGinfo = $objTask->_g_userinfo;
$arrBidInfo = $objTask->work_exists();
$intWuid = intval($arrBidInfo['uid']);
$intWuid and $arrWinfo = kekezu::get_user_info($intWuid);
$arrCoverCash = kekezu::get_cash_cove('', true);
$objMatchTime = new match_time_class();
$objMatchTime->validtaskstatus();
if ($arrTaskInfo['task_status'] == 11 || $arrTaskInfo['task_status'] == 7) {
    $frontStatus = keke_report_class::getFrontStatus($arrTaskInfo['task_id']);
    if ($arrTaskInfo['task_status'] == 7) {
        $frontStatus = 6;
    }
}
if ($arrBidInfo['work_file']) {
    $arrFileLists = CommonClass::getFileArray('|', $arrBidInfo['work_file']);
}
switch ($view) {
    case "work":
        $s === null and $s = 1 or $s = intval($s);
        $arrSearchStatus = array();
        $arrSearchStatus['1'] = '所有的';
        $arrSearchStatus['4'] = '中标的';
        $arrSearchStatus['7'] = '淘汰的';
        $arrSearchStatus['9'] = '放弃的';
Esempio n. 9
0
 public function set_report($obj, $obj_id, $to_uid, $to_username, $report_type, $file_name, $desc)
 {
     $this->set_agreement_status($type = 'agree_status', 4);
     keke_report_class::add_report($obj, $obj_id, $to_uid, $to_username, $desc, $report_type, '6', $this->_task_id, $this->_user_role, $file_name);
 }
Esempio n. 10
0
         $strPageTitle = $indusInfo['seo_desc'];
     } else {
         $strPageDescription = kekezu::cutstr($arrServiceInfo['content'], 100);
     }
 }
 $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");
Esempio n. 11
0
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$report_info = keke_report_class::get_report_info($report_id);
$report_info or kekezu::admin_show_msg($_lang['parameters_error_not_exist'] . $action_arr[$type][1] . $_lang['record'], "index.php?do=trans&view={$type}", 3, '', 'warning');
$user_info = kekezu::get_user_info($report_info['uid']);
$to_userinfo = kekezu::get_user_info($report_info['to_uid']);
$obj_info = keke_report_class::obj_info_init($report_info, $user_info);
$ac == 'download' and keke_file_class::file_down($filename, $filepath);
$url = "index.php?do={$do}&view={$type}";
if ($type == 'complaint') {
    if ($sbt_op) {
        $op_result[action] == 'pass' and $report_status = 4 or $report_status = 3;
        $url .= "&report_status={$report_status}";
        $res = keke_report_class::sub_process_ts($report_info, $user_info, $to_userinfo, $op_result);
        $res and kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", $_lang['process_success'], 'success') or kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", $_lang['operate_over'], 'warning');
    } else {
        $report_info = keke_report_class::get_report_info($report_id);
    }
    require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_trans_process');
} else {
    if (empty($obj_info) || empty($obj_info['model_id'])) {
        kekezu::admin_show_msg($_lang['friendly_notice'], $url, 3, $_lang['deal_object_del'], 'warning');
    }
    $report_info = keke_report_class::get_report_info($report_id);
    $model_info = $kekezu->_model_list[$obj_info['model_id']];
    $path = S_ROOT . $model_info['model_type'] . "/" . $model_info['model_dir'] . "/admin/admin_route.php";
    require $path;
}
Esempio n. 12
0
<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$views = array("rights", "report", "process");
in_array($view, $views) or $view = "rights";
if ($view == "rights") {
    kekezu::admin_check_role(80);
} elseif ($view == "report") {
    kekezu::admin_check_role(81);
}
$action_arr = keke_report_class::get_transrights_type();
$trans_status = keke_report_class::get_transrights_status();
$trans_object = keke_report_class::get_transrights_obj();
$page and $page = intval($page) or $page = '1';
$page_size and $page_size = intval($page_size) or $page_size = "10";
$url = "index.php?do={$do}&view={$view}&report_status={$report_status}&obj={$obj}&ord={$ord}&page_size={$page_size}&page={$page}";
if ($ac) {
    switch ($ac) {
        case "del":
            if ($report_id) {
                $res = db_factory::execute(sprintf(" delete from %switkey_report where report_id='%d'", TABLEPRE, $report_id));
                $res and kekezu::admin_show_msg($_lang['record_delete_success'], $url, "3", '', 'success') or kekezu::admin_show_msg($action_arr[$view] . $_lang['record_delete_fail'], $url, "3", '', 'warning');
            } else {
                kekezu::admin_show_msg($_lang['choose_delete_operate'], $url, "3", '', 'warning');
            }
            break;
        case "download":
            keke_file_class::file_down($filename, $filepath);
            break;
    }
} elseif ($sbt_action) {
Esempio n. 13
0
 public function set_report($obj, $obj_id, $to_uid, $report_type, $file_name, $desc, $reason)
 {
     global $_lang;
     $this->_uid != $this->_guid and $user_type = '1' or $user_type = '2';
     return keke_report_class::add_report($obj, $obj_id, $to_uid, $desc, $report_type, $this->_task_status, $this->_task_id, $user_type, $file_name, $reason);
 }