Beispiel #1
0
<?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');
Beispiel #2
0
    switch ($sbt_action) {
        case $_lang['mulit_delete']:
            kekezu::admin_system_log($_lang['mulit_delete_alipayjs_auth']);
            $auth_obj->del_auth($keyids);
            break;
        case $_lang['mulit_pass']:
            kekezu::admin_system_log($_lang['mulit_pass_alipayjs_auth']);
            $auth_obj->review_auth($keyids, 'pass');
            break;
        case $_lang['mulit_nopass']:
            kekezu::admin_system_log($_lang['mulit_nopass_alipayjs_auth']);
            $auth_obj->review_auth($keyids, 'not_pass');
            break;
    }
} else {
    $where = " 1 = 1 ";
    $w['auth_status'] == "0" and $where .= " and auth_status = 0 " or $w['auth_status'] and $where .= " and auth_status = '{$w['auth_status']}' ";
    intval($w['alipayjs_a_id']) and $where .= " and alipayjs_a_id = " . intval($w['alipayjs_a_id']) . "";
    $w['username'] and $where .= " and username like '%" . $w['username'] . "%' ";
    $where .= " order by alipayjs_a_id desc ";
    intval($w['page_size']) and $page_size = intval($w['page_size']) or $page_size = 10;
    $alipayjs_obj->setWhere($where);
    $count = $alipayjs_obj->count_keke_witkey_auth_alipayjs();
    intval($page) or $page = 1 and $page = intval($page);
    $kekezu->_page_obj->setAjax(1);
    $kekezu->_page_obj->setAjaxDom("ajax_dom");
    $pages = $kekezu->_page_obj->getPages($count, $page_size, $page, $url);
    $alipayjs_obj->setWhere($where . $pages[where]);
    $arrAlipayjs = $alipayjs_obj->query_keke_witkey_auth_alipayjs();
    require $kekezu->_tpl_obj->template("auth/" . $auth_dir . "/admin/tpl/auth_list");
}