<?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;
}
Exemple #2
0
$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) {
    $ckb and $dels = implode(",", $ckb) or $dels = array();
    if (!empty($dels)) {
        $res = db_factory::execute(sprintf(" delete from %switkey_report where report_id in ('%s') ", TABLEPRE, $dels));
        $res and kekezu::admin_show_msg($action_arr[$view] . $_lang['record_mulit_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');
    }
} else {
    $report_obj = new Keke_witkey_report_class();
    $page_obj = $kekezu->_page_obj;
    $where = " report_type = '" . $action_arr[$view]['0'] . "'";
    $report_id and $where .= " and report_id='{$report_id}'";