$ur_here_lang = $_REQUEST['is_pay_ok'] == '1' ? '已完结佣金列表' : '未处理佣金列表';
    $smarty->assign('ur_here', $ur_here_lang);
    // 当前导航
    $smarty->assign('full_page', 1);
    // 翻页参数
    $smarty->assign('supplier_list', $result['result']);
    $smarty->assign('filter', $result['filter']);
    $smarty->assign('record_count', $result['record_count']);
    $smarty->assign('page_count', $result['page_count']);
    $smarty->assign('sort_suppliers_id', '<img src="images/sort_desc.gif">');
    /* 显示模板 */
    assign_query_info();
    $smarty->display('supplier_rebate_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    check_authz_json('supplier_manage');
    $result = rebate_list();
    $smarty->assign('supplier_list', $result['result']);
    $smarty->assign('filter', $result['filter']);
    $smarty->assign('record_count', $result['record_count']);
    $smarty->assign('page_count', $result['page_count']);
    /* 排序标记 */
    $sort_flag = sort_flag($result['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('supplier_rebate_list.htm'), '', array('filter' => $result['filter'], 'page_count' => $result['page_count']));
} elseif ($_REQUEST['act'] == 'view') {
    /* 检查权限 */
    admin_priv('supplier_manage');
    /* 取得供货商返佣信息 */
    $id = $_REQUEST['id'];
    $is_pay_ok = $_REQUEST['is_pay_ok'] ? intval($_REQUEST['is_pay_ok']) : 0;
    $sql = "SELECT r.*, s.supplier_name, s.bank, s.supplier_rebate FROM " . $ecs->table('supplier_rebate') . " AS r left join " . $ecs->table('supplier') . "  AS s on r.supplier_id=s.supplier_id WHERE r.rebate_id = '{$id}'";
Beispiel #2
0
    $statusinfo = rebateStatus();
    unset($statusinfo[4]);
    $smarty->assign('full_page', 1);
    // 翻页参数
    $smarty->assign('statusinfo', $statusinfo);
    $smarty->assign('supplier_list', $result['result']);
    $smarty->assign('filter', $result['filter']);
    $smarty->assign('record_count', $result['record_count']);
    $smarty->assign('page_count', $result['page_count']);
    $smarty->assign('sort_suppliers_id', '<img src="images/sort_desc.gif">');
    /* 显示模板 */
    assign_query_info();
    $smarty->display('supplier_rebate_list.htm');
} elseif ($_REQUEST['act'] == 'query') {
    check_authz_json('supplier_rebate');
    $result = rebate_list('list');
    $smarty->assign('supplier_list', $result['result']);
    $smarty->assign('filter', $result['filter']);
    $smarty->assign('record_count', $result['record_count']);
    $smarty->assign('page_count', $result['page_count']);
    /* 排序标记 */
    $sort_flag = sort_flag($result['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('supplier_rebate_list.htm'), '', array('filter' => $result['filter'], 'page_count' => $result['page_count']));
} elseif ($_REQUEST['act'] == 'view') {
    admin_priv('supplier_rebate');
    $id = intval($_REQUEST['rid']);
    if (($rebate = rebateHave($id)) === false) {
        sys_msg('该返佣记录不存在!');
    } else {
        $rebate['sign'] = createSign($rebate['rebate_id'], $rebate['supplier_id']);