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


PHP kekezu::admin_show_msg方法代码示例

本文整理汇总了PHP中kekezu::admin_show_msg方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::admin_show_msg方法的具体用法?PHP kekezu::admin_show_msg怎么用?PHP kekezu::admin_show_msg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


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

示例1: process_report

 public function process_report($op_result, $type)
 {
     global $_lang;
     $trans_name = $this->get_transrights_name($this->_report_type);
     $op_result = $this->op_result_format($op_result);
     if ($op_result['action']) {
         if ($op_result['product_remove'] == 1) {
             $res = db_factory::execute(sprintf(" update %switkey_service set service_status='3' where service_id='%d'", TABLEPRE, $this->_obj_info['origin_id']));
             $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
             $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
             $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=report&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning');
         }
         if ($op_result['product_remove'] == 2) {
             $this->process_notify('nopass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
             $res = $this->change_status($this->_report_id, '3', $op_result, $op_result, $op_result['reply']);
             $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning');
         }
         if ($op_result['product_remove'] == 3) {
             $this->disablePeople();
             $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
             $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
             $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning');
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:25,代码来源:service_report_class.php

示例2: process_report

 function process_report($op_result, $type)
 {
     global $_lang;
     $op_result['result'] = $op_result['process_result'];
     $op_result = $this->op_result_format($op_result);
     $trans_name = $this->get_transrights_name($this->_report_info['report_type']);
     if ($op_result['action']) {
         switch ($op_result['task']) {
             case 1:
                 $this->_task_obj->set_task_status(9);
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['result']);
                 break;
             case 2:
                 kekezu::admin_show_msg('操作提示', "index.php?do=trans&view=report&type={$type}", "3", "该任务不能进行此操作");
                 break;
             case 3:
                 $this->process_notify('nopass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result'], $op_result['reply']);
                 $res = $this->change_status($this->_report_id, '3', $op_result, $op_result, $op_result['result']);
                 break;
             case 4:
                 $res = $this->shield_work($this->_obj_info['obj_id']);
                 $this->_task_obj->set_task_status(2);
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['result']);
                 break;
             case 5:
                 $this->cancel_bid($this->_obj_info['obj_id']);
                 $this->_task_obj->set_task_status(2);
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['result']);
                 break;
             case 6:
                 $this->disablePeople();
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
                 $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning');
         }
         if ($res) {
             kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=report&type={$type}", "3", "", "success");
         } else {
             kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", "", "warning");
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:45,代码来源:tender_report_class.php

示例3: case_obj_exists

    $case_obj->setObj_type($case_type);
    $case_obj->setCase_auther($fds['case_auther']);
    $case_obj->setCase_price($fds['case_price']);
    $case_obj->setCase_desc(kekezu::escape($fds['case_desc']));
    $case_obj->setCase_title(kekezu::escape($fds['case_title']));
    $case_obj->setOn_time(time());
    $case_img = $hdn_case_img or $case_img = keke_file_class::upload_file("fle_case_img");
    $case_obj->setCase_img($case_img);
    if ($hdn_case_id) {
        $res = $case_obj->edit_keke_witkey_case();
        kekezu::admin_system_log($_lang['edit_case'] . ':' . $hdn_case_id);
        $res and kekezu::admin_show_msg($_lang['modify_case_success'], 'index.php?do=case&view=lise', 3, '', 'success') or kekezu::admin_show_msg($_lang['modify_case_fail'], 'index.php?do=case&view=lise', 3, '', 'warning');
    } else {
        $res = $case_obj->create_keke_witkey_case();
        kekezu::admin_system_log($_lang['add_case']);
        $res and kekezu::admin_show_msg($_lang['add_case_success'], 'index.php?do=case&view=lise', 3, '', 'success') or kekezu::admin_show_msg($_lang['add_case_fail'], 'index.php?do=case&view=add', 3, '', 'warning');
    }
}
function case_obj_exists($id, $obj = 'task')
{
    if ($obj == 'task') {
        $search_obj = db_factory::get_count(sprintf("select count(task_id) from %switkey_task where task_id='%d' ", TABLEPRE, $id));
    } elseif ($obj == 'service') {
        $search_obj = db_factory::get_count(sprintf("select count(service_id) from %switkey_service where service_id='%d' ", TABLEPRE, $id));
    }
    if ($search_obj) {
        return true;
    } else {
        return false;
    }
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_case_add.php

示例4: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$event_id or kekezu::admin_show_msg($_lang['param_error'], "index.php?do={$do}&view=event", 3, '', 'warning');
$objProm = keke_prom_class::get_instance();
$prom_arr = $objProm->get_prom_type();
$event_id and $event_info = db_factory::get_one(" select * from " . TABLEPRE . "witkey_prom_event where event_id = '{$event_id}'");
if ($event_info['action'] == 'pub_task' || $event_info['action'] == 'bid_task') {
    $objInfo = db_factory::get_one(sprintf('select * from  %s where task_id= %d', TABLEPRE . 'witkey_task', intval($event_info['obj_id'])));
    $objInfo['id'] = $objInfo['task_id'];
    $objInfo['title'] = $objInfo['task_title'];
    $objInfo['url'] = $_K['siteurl'] . '/index.php?do=task&id=' . intval($objInfo['id']);
} elseif ($event_info['action'] == 'service') {
    $objInfo = db_factory::get_one(sprintf('select * from  %s where service_id= %d', TABLEPRE . 'witkey_service', intval($event_info['obj_id'])));
    $objInfo['id'] = $objInfo['service_id'];
    $objInfo['title'] = $objInfo['title'];
    $objInfo['url'] = $_K['siteurl'] . '/index.php?do=goods&id=' . intval($objInfo['id']);
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:19,代码来源:admin_prom_edit_event.php

示例5: md5

        kekezu::admin_show_msg($_lang['operate_notice'], "index.php?do=user&view=add", 3, $_lang['user_creat_success'], 'success');
    } else {
        $uinfo = kekezu::get_user_info($edituid);
        if ($fds['password']) {
            $slt = db_factory::get_count(sprintf("select rand_code from %switkey_member where uid = '%d'", TABLEPRE, $edituid));
            $sec_code = keke_user_class::get_password($fds['password'], $slt);
            $fds['sec_code'] = $sec_code;
            $newpwd = $fds['password'];
            $pwd = md5($fds['password']);
            $fds[password] = $pwd;
            db_factory::execute(sprintf("update %switkey_member set password ='%s' where uid=%d", TABLEPRE, $pwd, $edituid));
        } else {
            unset($fds['password']);
        }
        keke_user_class::user_edit($uinfo['username'], '', $newpwd, '', 1);
        $space_class->save($fds, array("uid" => "{$edituid}"));
        kekezu::admin_system_log($_lang['edit_member'] . $member_arr[username]);
        kekezu::admin_show_msg($_lang['edit_success'], "index.php?do=user&view=add&edituid=" . $edituid, 3, '', 'success');
    }
}
if ($check_email) {
    $regClass = new keke_register_class();
    $result = $regClass->check_email($check_email);
    if ($result !== true) {
        echo $result;
    } else {
        echo 1;
    }
    die;
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_user_add');
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:admin_user_add.php

示例6: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(82);
$suggest_obj = new keke_table_class('witkey_proposal');
$proposal_obj = new Keke_witkey_proposal_class();
$suggest_type_arr = array('1' => '我的建议', '2' => '我的问题');
$suggest_status_arr = array('1' => '待回复', '2' => '已回复');
$url = "index.php?do={$do}&view={$view}&suggest_id={$suggest_id}";
if ($suggest_id) {
    $suggest_info = db_factory::get_one(sprintf("select * from %switkey_proposal where p_id = '%d'", TABLEPRE, $suggest_id));
    $user_info = kekezu::get_user_info($suggest_info['uid']);
    if ($sbt_op) {
        $proposal_obj->setWhere('p_id = ' . $suggestid);
        $proposal_obj->setOp_content(kekezu::escape($op_result['process_result']));
        $proposal_obj->setOp_time(time());
        $proposal_obj->setPro_status(2);
        $proposal_obj->setOp_uid($_SESSION['uid']);
        $proposal_obj->setOp_username($_SESSION['username']);
        $res_id = $proposal_obj->edit_keke_witkey_proposal();
        $v_arr = array('用户名' => $suggest_username, '用户标题' => $suggest_title, '建议内容' => kekezu::escape($pro_desc), '回复内容' => kekezu::escape($op_result['process_result']), $_lang['website_name'] => $kekezu->_sys_config['website_name']);
        keke_shop_class::notify_user($suggest_uid, $suggest_username, 'suggest_reply', '建议答复', $v_arr, 2);
        $res_id and kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", '回复成功', 'success') or kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", '回复失败', 'warning');
    }
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_user_suggest_reply');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:26,代码来源:admin_user_suggest_reply.php

示例7: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$alipayjs_obj = new Keke_witkey_auth_alipayjs_class();
$pay_tool_arr = array(1 => $_lang['alipay'], 2 => $_lang['tenpay'], 3 => $_lang['payment_online']);
$alipayjs_name_arr = keke_glob_class::get_bank();
if ($sbt_pay_to_user) {
    $alipayjs_obj->setWhere('alipayjs_a_id=' . $fds['alipayjs_a_id']);
    $alipayjs_obj->setPay_to_user_cash($fds['pay_to_user_cash']);
    $alipayjs_obj->setPay_time(time());
    $res = $alipayjs_obj->edit_keke_witkey_auth_alipayjs();
    $alipayjs_info = db_factory::get_one(sprintf(" select uid,username from %switkey_auth_alipayjs where alipayjs_a_id = '%d'", TABLEPRE, $fds[alipayjs_a_id]));
    $v_arr = array($_lang['username'] => $alipayjs_info['username']);
    keke_msg_class::notify_user($alipayjs_info['uid'], $alipayjs_info['username'], 'alipayjs_auth', "支付宝认证通知", $v_arr, 2);
    $res and kekezu::admin_show_msg($_lang['give_cach_success'], $_SERVER['HTTP_REFERER'], '3', '', 'success');
} else {
    $alipayjs_a_id and $alipayjs_info = db_factory::get_one(sprintf(" select * from %switkey_auth_alipayjs where alipayjs_a_id = '%d'", TABLEPRE, $alipayjs_a_id));
}
require $template_obj->template('auth/' . $auth_dir . '/admin/tpl/auth_info');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:19,代码来源:auth_info.php

示例8: elseif

        $res and kekezu::admin_show_msg($_lang['atachment_delete_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['attchment_not_exist_delete_fail'], $url, 3, '', 'warning');
    }
} elseif (isset($sbt_action)) {
    is_array($ckb) and $ids = implode(',', array_filter($ckb));
    if (sizeof($ids)) {
        $where = "file_id in ({$ids})";
        $file_obj->setWhere($where);
        $file_info = $file_obj->query_keke_witkey_file();
        foreach ($file_info as $v) {
            @unlink($backup_patch . $v['save_name']);
        }
        $file_obj->setWhere($where);
        $res = $file_obj->del_keke_witkey_file();
        if ($res) {
            kekezu::admin_system_log($_lang['delete_attachment'] . "{$ids}");
            kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success');
        }
    } else {
        kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
    }
} else {
    $where = ' 1 = 1 ';
    intval($txt_file_id) and $where .= " and file_id = {$txt_file_id}";
    strval($txt_file_name) and $where .= " and file_name like '%{$txt_file_name}%' ";
    $ord['1'] and $where .= " order by {$ord['0']} {$ord['1']} " or $where .= " order by file_id desc";
    $table_obj = keke_table_class::get_instance("witkey_file");
    $d = $table_obj->get_grid($where, $url, $page, $wh['page_size'], null, 1, 'ajax_dom');
    $file_arr = $d['data'];
    $pages = $d['pages'];
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:admin_tool_file.php

示例9: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(73);
$msg_obj = new Keke_witkey_msg_tpl_class();
$config_msg_arr = $kekezu->get_table_data("*", "witkey_msg_config", " 1 = 1 ", "config_id desc ", '', '', 'config_id');
$now_msg_arr = db_factory::get_one(" select * from " . TABLEPRE . "witkey_msg_config where k='{$slt_tpl_code}'");
$now_v = unserialize($now_msg_arr['v']);
if (isset($tpl_code)) {
    $msg_tpl = db_factory::query(" select * from " . TABLEPRE . "witkey_msg_tpl where tpl_code='{$tpl_code}'");
    if ($msg_tpl) {
        kekezu::echojson('', 1, $msg_tpl);
    } else {
        echo json_encode(array("status" => 0));
    }
}
$objMsgC = new Keke_witkey_msg_config_class();
if (isset($sbt_edit)) {
    if ($slt_tpl_code) {
        $objMsgC->setWhere("k='{$slt_tpl_code}'");
        $objMsgC->setContent($tar_msg_temp_content);
        $res = $objMsgC->edit_keke_witkey_msg_config();
    }
    if ($res) {
        kekezu::admin_system_log($_lang['edit_sms_tpl']);
        kekezu::admin_show_msg($_lang['edit_sms_tpl_success'], 'index.php?do=msg&view=intertpl&slt_tpl_code=' . $slt_tpl_code, 3, '', 'success');
    }
}
$msg_tpl = db_factory::get_one("select content from " . TABLEPRE . "witkey_msg_config where k='{$slt_tpl_code}'");
$msg_tpl = $msg_tpl['content'];
require $kekezu->_tpl_obj->template(ADMIN_DIRECTORY . '/tpl/admin_msg_' . $view);
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:admin_msg_intertpl.php

示例10: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
if ($op == 'repair') {
    if ($is_submit) {
        $table_arr = db_factory::query(" SHOW TABLES");
        foreach ($table_arr as $v) {
            db_factory::execute("REPAIR TABLE " . $v['Tables_in_' . DBNAME]);
        }
        kekezu::admin_show_msg($_lang['operate_notice'], 'index.php?do=tool&view=dboptim&op=repair', 3, kekezu::lang("operate_success"), 'success');
    }
} else {
    if ($is_submit) {
        $optimizetables or kekezu::admin_show_msg($_lang['operate_notice'], 'index.php?do=tool&view=dboptim', 3, $_lang['no_select_table'], 'warning');
        foreach ($optimizetables as $v) {
            db_factory::execute("OPTIMIZE TABLE " . $v);
        }
        kekezu::admin_show_msg($_lang['operate_notice'], 'index.php?do=tool&view=dboptim', 3, kekezu::lang("operate_success"), 'success');
    } else {
        $table_arr = db_factory::query("SHOW TABLE STATUS FROM `" . DBNAME . "` LIKE '" . TABLEPRE . "%'");
        foreach ($table_arr as $k => $v) {
            $v['Data_free'] > 0 and $table_free_list[$k] = $v;
        }
    }
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:26,代码来源:admin_tool_dboptim.php

示例11: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(140);
if (isset($submit)) {
    $basic_obj = new Keke_witkey_basic_config_class();
    foreach ($conf as $k => $v) {
        $basic_obj->setWhere("k = '{$k}'");
        $basic_obj->setV($v);
        $res .= $basic_obj->edit_keke_witkey_basic_config();
    }
    !empty($api) and $attent_api = $api or $attent_api = array();
    $basic_obj->setWhere("k = 'attent_api_open'");
    $basic_obj->setV(serialize($attent_api));
    $basic_obj->edit_keke_witkey_basic_config();
    kekezu::admin_system_log($_lang['weibo_config_view']);
    kekezu::admin_show_msg($_lang['weibo_view_config_success'], "index.php?do=msg&view=attention", 3, '', 'success');
} else {
    $attent_api = db_factory::get_count(sprintf(" select v from %switkey_basic_config where type='attent_api'", TABLEPRE));
    $attent_api = unserialize($attent_api);
    $attent_list = kekezu::get_table_data("k,v,desc", "witkey_basic_config", "type='attention'", 'listorder asc ', "", "", "k");
}
require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:23,代码来源:admin_msg_attention.php

示例12: process_report

 public function process_report($op_result, $type)
 {
     global $_lang;
     $trans_name = $this->get_transrights_name($this->_report_type);
     $op_result['result'] = $op_result['process_result'];
     $op_result = $this->op_result_format($op_result);
     if ($op_result['action']) {
         switch ($op_result['task']) {
             case 1:
                 $this->_task_obj->dispose_task_return();
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
                 break;
             case 2:
                 $arrBids = db_factory::query("select * from " . TABLEPRE . "witkey_task_work where work_status=4");
                 if (is_array($arrBids)) {
                     foreach ($arrBids as $k => $v) {
                         db_factory::execute(sprintf("update %switkey_task_work set work_status = 0 where work_id = '%d'", TABLEPRE, $v['work_id']));
                         db_factory::execute(sprintf(" update %switkey_space set accepted_num = accepted_num-1 where uid = '%d'", TABLEPRE, $v['uid']));
                     }
                 }
                 $this->_task_obj->auto_choose();
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
                 break;
             case 3:
                 $this->process_notify('nopass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result'], $op_result['reply']);
                 $res = $this->change_status($this->_report_id, '3', $op_result, $op_result, $op_result['process_result']);
                 break;
             case 4:
                 $res = $this->shield_work($this->_obj_info['obj_id']);
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
                 break;
             case 5:
                 $this->cancel_bid($this->_obj_info['obj_id']);
                 $this->_task_obj->auto_choose();
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
                 break;
             case 6:
                 $this->disablePeople();
                 $this->process_notify('pass', $this->_report_info, $this->_user_info, $this->_to_user_info, $op_result['process_result']);
                 $res = $this->change_status($this->_report_id, '4', $op_result, $op_result['process_result']);
                 $res and kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=rights&type={$type}", "3", '', 'success') or kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", '', 'warning');
         }
         if ($res) {
             kekezu::admin_show_msg($trans_name . $_lang['deal_success'], "index.php?do=trans&view=report&type={$type}", "3", "", "success");
         } else {
             kekezu::admin_show_msg($trans_name . $_lang['deal_fail'], "index.php?do=trans&view=process&type={$type}&report_id=" . $this->_report_id, "3", "", "warning");
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:53,代码来源:sreward_report_class.php

示例13: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$url = 'index.php?do=config&view=adddq';
if ($page) {
    $page = $_R['page'];
    $url .= '&page=' . $page;
} else {
    $page = 1;
}
if ($_R[is_submit] == 1) {
    $objDistrict = keke_table_class::get_instance('witkey_district');
    $arrFields = array('name' => $_R[one], upid => 0);
    $intResult = $objDistrict->save($arrFields);
    kekezu::admin_show_msg("添加成功", "index.php?do=config&view=dq&page=" . $page, 2, '', 'success');
} else {
    require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view);
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:18,代码来源:admin_config_adddq.php

示例14: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(220);
$lang_arr = keke_lang_class::lang_type();
$url = 'index.php?do=config&view=enclosure';
$objBasicConfigT = new Keke_witkey_basic_config_class();
$config_basic_arr = $objBasicConfigT->query_keke_witkey_basic_config();
foreach ($config_basic_arr as $k => $v) {
    $arrBasicConfig[$v['k']] = $v['v'];
}
if (isset($_POST) && !empty($_POST)) {
    if ($_POST['upload_type'] == '1') {
        unset($_POST['access_key']);
        unset($_POST['secret_key']);
        unset($_POST['qn_bucket']);
        unset($_POST['qn_domain']);
    } else {
        $res = kekezu::check_upload_access($_POST['access_key'], $_POST['secret_key'], $_POST['qn_bucket']);
        !$res and kekezu::admin_show_msg('请核对AccessKey、SecretKey和bucket是否准确!', $url, 3, '', 'warning');
    }
    foreach ($_POST as $k => $v) {
        $objBasicConfigT->setWhere("k = '{$k}'");
        $objBasicConfigT->setV(kekezu::k_input($v));
        $res += $objBasicConfigT->edit_keke_witkey_basic_config();
    }
    kekezu::admin_show_msg('提交成功', $url, 3, '', 'success');
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_config_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:29,代码来源:admin_config_enclosure.php

示例15: last_insert_id

    }
    $charge_reason = kekezu::filter_input($charge_reason);
    $sql2 = "update " . TABLEPRE . "witkey_finance set  fina_mem='{$charge_reason}' where fina_id = last_insert_id()";
    db_factory::execute($sql2);
    if ($res) {
        if ($cash_type == 1) {
            $v_arr = array('用户名' => $info[username], '金额动作' => '充值', '金额' => $cash);
            keke_shop_class::notify_user($info[uid], $info[username], "admin_charge", '后台手动充值通知', $v_arr, 2);
            kekezu::admin_show_msg('手动充值现金成功', $url, 3, '', 'success');
        } else {
            $v_arr = array('用户名' => $info[username], '金额动作' => '扣除', '金额' => $cash);
            keke_shop_class::notify_user($info[uid], $info[username], "admin_charge", '后台手动充值通知', $v_arr, 2);
            kekezu::admin_show_msg('手动扣除现金成功', $url, 3, '', 'success');
        }
    } else {
        kekezu::admin_show_msg('手动充值或扣除失败', "index.php?do={$do}&view={$view}", 3, '', 'warning');
    }
}
function get_info($uid, $t)
{
    $sql = " select balance,credit,uid,username from %switkey_space where ";
    if ($t == '1') {
        $sql1 = sprintf($sql . " uid=%d ", TABLEPRE, $uid, $uid);
        $info = db_factory::get_one($sql1);
    } else {
        $sql = sprintf($sql . " username='%s'", TABLEPRE, $uid);
        $info = db_factory::get_one($sql);
    }
    return $info;
}
require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_user_charge');
开发者ID:pengfeiaaa,项目名称:web,代码行数:31,代码来源:admin_user_charge.php


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