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


PHP list_link_postfix函数代码示例

本文整理汇总了PHP中list_link_postfix函数的典型用法代码示例。如果您正苦于以下问题:PHP list_link_postfix函数的具体用法?PHP list_link_postfix怎么用?PHP list_link_postfix使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: list_link_postfix

    }
    /* 计算文章打开方式 */
    if ($file_url == '') {
        $open_type = 0;
    } else {
        $open_type = $_POST['FCKeditor1'] == '' ? 1 : 2;
    }
    /* 如果 file_url 跟以前不一样,且原来的文件是本地文件,删除原来的文件 */
    $sql = "SELECT file_url FROM " . $ecs->table('article') . " WHERE article_id = '{$_POST['id']}'";
    $old_url = $db->getOne($sql);
    if ($old_url != '' && $old_url != $file_url && strpos($old_url, 'http://') === false && strpos($old_url, 'https://') === false) {
        @unlink(ROOT_PATH . $old_url);
    }
    if ($exc->edit("title='{$_POST['title']}', cat_id='{$_POST['article_cat']}', article_type='{$_POST['article_type']}', is_open='{$_POST['is_open']}', author='{$_POST['author']}', author_email='{$_POST['author_email']}', keywords ='{$_POST['keywords']}', file_url ='{$file_url}', open_type='{$open_type}', content='{$_POST['FCKeditor1']}', link='{$_POST['link_url']}', description = '{$_POST['description']}'", $_POST['id'])) {
        $link[0]['text'] = $_LANG['back_list'];
        $link[0]['href'] = 'article_tianxin100.php?act=list&' . list_link_postfix();
        $note = sprintf("编辑成功", stripslashes($_POST['title']));
        admin_log($_POST['title'], 'edit', 'article');
        clear_cache_files();
        sys_msg($note, 0, $link);
    } else {
        die($db->error());
    }
} elseif ($_REQUEST['act'] == 'edit_title') {
    check_authz_json('article_manage');
    $id = intval($_POST['id']);
    $title = json_str_iconv(trim($_POST['val']));
    /* 检查文章标题是否重复 */
    if ($exc->num("title", $title, $id) != 0) {
        make_json_error(sprintf($_LANG['title_exist'], $title));
    } else {
开发者ID:seanguo166,项目名称:microdistribution,代码行数:31,代码来源:article_tianxin100.php

示例2: array

         $action_array = array('delivery', 'back');
         del_delivery($order['order_id'], $action_array);
         /* todo 记录日志 */
         admin_log($order['order_sn'], 'remove', 'order');
         $sn_list[] = $order['order_sn'];
     }
     $sn_str = $_LANG['remove_order'];
 } else {
     die('invalid params');
 }
 /* 取得备注信息 */
 //    $action_note = $_REQUEST['action_note'];
 if (empty($sn_not_list)) {
     $sn_list = empty($sn_list) ? '' : $_LANG['updated_order'] . join($sn_list, ',');
     $msg = $sn_list;
     $links[] = array('text' => $_LANG['return_list'], 'href' => 'order.php?act=list&' . list_link_postfix());
     sys_msg($msg, 0, $links);
 } else {
     $order_list_no_fail = array();
     $sql = "SELECT * FROM " . $ecs->table('order_info') . " WHERE order_sn " . db_create_in($sn_not_list);
     $res = $db->query($sql);
     while ($row = $db->fetchRow($res)) {
         $order_list_no_fail[$row['order_id']]['order_id'] = $row['order_id'];
         $order_list_no_fail[$row['order_id']]['order_sn'] = $row['order_sn'];
         $order_list_no_fail[$row['order_id']]['order_status'] = $row['order_status'];
         $order_list_no_fail[$row['order_id']]['shipping_status'] = $row['shipping_status'];
         $order_list_no_fail[$row['order_id']]['pay_status'] = $row['pay_status'];
         $order_list_fail = '';
         foreach (operable_list($row) as $key => $value) {
             if ($key != $operation) {
                 $order_list_fail .= $_LANG['op_' . $key] . ',';
开发者ID:norain2050,项目名称:benhu,代码行数:31,代码来源:order.php

示例3: list_link_postfix

    }
    /* 计算文章打开方式 */
    if ($file_url == '') {
        $open_type = 0;
    } else {
        $open_type = $_POST['FCKeditor1'] == '' ? 1 : 2;
    }
    /* 如果 file_url 跟以前不一样,且原来的文件是本地文件,删除原来的文件 */
    $sql = "SELECT file_url FROM " . $ecs->table('article') . " WHERE article_id = '{$_POST['id']}'";
    $old_url = $db->getOne($sql);
    if ($old_url != '' && $old_url != $file_url && strpos($old_url, 'http://') === false && strpos($old_url, 'https://') === false) {
        @unlink(ROOT_PATH . $old_url);
    }
    if ($exc->edit("title='{$_POST['title']}', cat_id='{$_POST['article_cat']}', article_type='{$_POST['article_type']}', is_open='{$_POST['is_open']}', author='{$_POST['author']}', author_email='{$_POST['author_email']}', keywords ='{$_POST['keywords']}', file_url ='{$file_url}', open_type='{$open_type}', content='{$_POST['FCKeditor1']}', link='{$_POST['link_url']}', description = '{$_POST['description']}'", $_POST['id'])) {
        $link[0]['text'] = $_LANG['back_list'];
        $link[0]['href'] = 'article.php?act=list&' . list_link_postfix();
        $note = sprintf($_LANG['articleedit_succeed'], stripslashes($_POST['title']));
        admin_log($_POST['title'], 'edit', 'article');
        clear_cache_files();
        sys_msg($note, 0, $link);
    } else {
        die($db->error());
    }
} elseif ($_REQUEST['act'] == 'edit_title') {
    check_authz_json('article_manage');
    $id = intval($_POST['id']);
    $title = json_str_iconv(trim($_POST['val']));
    /* 检查文章标题是否重复 */
    if ($exc->num("title", $title, $id) != 0) {
        make_json_error(sprintf($_LANG['title_exist'], $title));
    } else {
开发者ID:norain2050,项目名称:mhFault,代码行数:31,代码来源:article.php

示例4: isset

    $is_show = isset($_REQUEST['is_show']) ? intval($_REQUEST['is_show']) : 0;
    /*处理URL*/
    $site_url = sanitize_url($_POST['site_url']);
    /* 处理图片 */
    $img_name = basename($image->upload_image($_FILES['brand_logo'], 'brandlogo'));
    $param = "brand_name = '{$_POST['brand_name']}',  site_url='{$site_url}', brand_desc='{$_POST['brand_desc']}', is_show='{$is_show}', sort_order='{$_POST['sort_order']}' ";
    if (!empty($img_name)) {
        //有图片上传
        $param .= " ,brand_logo = '{$img_name}' ";
    }
    if ($exc->edit($param, $_POST['id'])) {
        /* 清除缓存 */
        clear_cache_files();
        admin_log($_POST['brand_name'], 'edit', 'brand');
        $link[0]['text'] = $_LANG['back_list'];
        $link[0]['href'] = 'brand.php?act=list&' . list_link_postfix();
        $note = vsprintf($_LANG['brandedit_succed'], $_POST['brand_name']);
        sys_msg($note, 0, $link);
    } else {
        die($db->error());
    }
} elseif ($_REQUEST['act'] == 'edit_brand_name') {
    check_authz_json('brand_manage');
    $id = intval($_POST['id']);
    $name = json_str_iconv(trim($_POST['val']));
    /* 检查名称是否重复 */
    if ($exc->num("brand_name", $name, $id) != 0) {
        make_json_error(sprintf($_LANG['brandname_exist'], $name));
    } else {
        if ($exc->edit("brand_name = '{$name}'", $id)) {
            admin_log($name, 'edit', 'brand');
开发者ID:dw250100785,项目名称:ECShop-1,代码行数:31,代码来源:brand.php

示例5: list_link

/**
 * 列表链接
 *
 * @param bool $is_add
 *        	是否添加(插入)
 * @return array('href' => $href, 'text' => $text)
 */
function list_link($is_add = true)
{
    $href = 'customer.php?act=list';
    if (!$is_add) {
        $href .= '&' . list_link_postfix();
    }
    return array('href' => $href, 'text' => $GLOBALS['_LANG']['customer_list']);
}
开发者ID:seanguo166,项目名称:yinoos,代码行数:15,代码来源:customer.php

示例6: count

        }
    }
    //图片数量
    $imgnum = count($shaidan_imgs);
    //是否赠送积分
    if ($info['is_points'] == 0 && $weizhi <= $_CFG['shaidan_pre_num'] && $imgnum >= $_CFG['shaidan_img_num']) {
        $get_points = 1;
    } else {
        $get_points = 0;
    }
    $smarty->assign('ur_here', '晒单详情');
    $smarty->assign('weizhi', $weizhi);
    $smarty->assign('imgnum', $imgnum);
    $smarty->assign('get_points', $get_points);
    $smarty->assign('shop_config', $_CFG);
    $smarty->assign('action_link', array('text' => '返回', 'href' => 'shaidan.php?act=list&' . list_link_postfix()));
    $smarty->assign('info', $info);
    $smarty->assign('goods', $goods);
    $smarty->assign('shaidan_imgs', $shaidan_imgs);
    $smarty->assign('form_action', 'updata');
    assign_query_info();
    $smarty->display('shaidan_info.htm');
} elseif ($_REQUEST['act'] == 'updata') {
    $shaidan_id = intval($_POST['shaidan_id']);
    $get_points = intval($_POST['get_points']);
    $pay_points = $_CFG['shaidan_pay_points'];
    $status = intval($_POST['status']);
    if ($get_points == 1 && $pay_points > 0) {
        $info = $db->GetRow("SELECT * FROM " . $ecs->table('shaidan') . " WHERE shaidan_id='{$shaidan_id}'");
        $db->query("UPDATE " . $ecs->table('shaidan') . " SET pay_points = '{$pay_points}', is_points = 1 WHERE shaidan_id = '{$shaidan_id}'");
        $db->query("INSERT INTO " . $ecs->table('account_log') . "(user_id, rank_points, pay_points, change_time, change_desc, change_type) " . "VALUES ('{$info['user_id']}', 0, '" . $pay_points . "', " . gmtime() . ", '晒单获得积分', '99')");
开发者ID:firsteam,项目名称:falcons,代码行数:31,代码来源:shaidan.php

示例7: init_users

    $users =& init_users();
    $users->remove_user($username);
    //已经删除用户所有数据
    /* 记录管理员操作 */
    admin_log(addslashes($username), 'remove', 'users');
    /* 提示信息 */
    $link[] = array('text' => $_LANG['go_back'], 'href' => 'users.php?act=list');
    sys_msg(sprintf($_LANG['remove_success'], $username), 0, $link);
} elseif ($_REQUEST['act'] == 'address_list') {
    $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
    $sql = "SELECT a.*, c.region_name AS country_name, p.region_name AS province, ct.region_name AS city_name, d.region_name AS district_name " . " FROM " . $ecs->table('user_address') . " as a " . " LEFT JOIN " . $ecs->table('region') . " AS c ON c.region_id = a.country " . " LEFT JOIN " . $ecs->table('region') . " AS p ON p.region_id = a.province " . " LEFT JOIN " . $ecs->table('region') . " AS ct ON ct.region_id = a.city " . " LEFT JOIN " . $ecs->table('region') . " AS d ON d.region_id = a.district " . " WHERE user_id='{$id}'";
    $address = $db->getAll($sql);
    $smarty->assign('address', $address);
    assign_query_info();
    $smarty->assign('ur_here', $_LANG['address_list']);
    $smarty->assign('action_link', array('text' => $_LANG['01_users_list'], 'href' => 'users.php?act=list&' . list_link_postfix()));
    $smarty->display('user_address_list.htm');
} elseif ($_REQUEST['act'] == 'remove_parent') {
    /* 检查权限 */
    admin_priv('users_manage');
    $sql = "UPDATE " . $ecs->table('users') . " SET parent_id = 0 WHERE user_id = '" . $_GET['id'] . "'";
    $db->query($sql);
    /* 记录管理员操作 */
    $sql = "SELECT user_name FROM " . $ecs->table('users') . " WHERE user_id = '" . $_GET['id'] . "'";
    $username = $db->getOne($sql);
    admin_log(addslashes($username), 'edit', 'users');
    /* 提示信息 */
    $link[] = array('text' => $_LANG['go_back'], 'href' => 'users.php?act=list');
    sys_msg(sprintf($_LANG['update_success'], $username), 0, $link);
} elseif ($_REQUEST['act'] == 'aff_list') {
    /* 检查权限 */
开发者ID:moonlight-wang,项目名称:feilun,代码行数:31,代码来源:distributor.php

示例8: foreach

    }
    $smarty->assign('action_list', $act_list);
    /* 回复留言图片 www.68ecshop.com增加 */
    $res = $db->getAll("SELECT * FROM " . $ecs->table('back_replay') . " WHERE back_id = '{$back_id}' ORDER BY add_time ASC");
    foreach ($res as $value) {
        $value['add_time'] = local_date($GLOBALS['_CFG']['time_format'], $value['add_time']);
        $back_replay[] = $value;
    }
    if ($back_order['imgs']) {
        $imgs = explode(",", $back_order['imgs']);
    }
    $smarty->assign('imgs', $imgs);
    $smarty->assign('back_replay', $back_replay);
    /* 显示模板 */
    $smarty->assign('ur_here', $_LANG['back_operate'] . $_LANG['detail']);
    $smarty->assign('action_link', array('href' => 'back.php?act=back_list&' . list_link_postfix(), 'text' => $_LANG['10_back_order']));
    assign_query_info();
    $smarty->display('back_info_2.htm');
    exit;
    //
} elseif ($_REQUEST['act'] == 'operate') {
    /* 检查权限 */
    admin_priv('back_view');
    $back_id = intval(trim($_REQUEST['back_id']));
    // 退换货订单id
    $action_note = isset($_REQUEST['action_note']) ? trim($_REQUEST['action_note']) : '';
    /* 查询订单信息 */
    $order = back_order_info($back_id);
    /* 通过申请 */
    if (isset($_POST['ok'])) {
        $status_back = '5';
开发者ID:seanguo166,项目名称:yinoos,代码行数:31,代码来源:back.php

示例9: VALUES

        $total_fee = $pay_fee + $amount;
        /* 插入 pay_log */
        $sql = 'INSERT INTO ' . $ecs->table('pay_log') . " (order_id, order_amount, order_type, is_paid)" . " VALUES ('{$id}', '{$total_fee}', '" . PAY_SURPLUS . "', 0)";
        $db->query($sql);
    }
    /* 记录管理员操作 */
    if ($_REQUEST['act'] == 'update') {
        admin_log($user_name, 'edit', 'user_surplus');
    } else {
        admin_log($user_name, 'add', 'user_surplus');
    }
    /* 提示信息 */
    if ($_REQUEST['act'] == 'insert') {
        $href = 'user_account.php?act=list';
    } else {
        $href = 'user_account.php?act=list&' . list_link_postfix();
    }
    $link[0]['text'] = $_LANG['back_list'];
    $link[0]['href'] = $href;
    $link[1]['text'] = $_LANG['continue_add'];
    $link[1]['href'] = 'user_account.php?act=add';
    sys_msg($_LANG['attradd_succed'], 0, $link);
} elseif ($_REQUEST['act'] == 'check') {
    $id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
    if ($id == 0) {
        $res['code'] = 1;
        $res['req_msg'] = true;
        $res['timeout'] = 2000;
        $res['message'] = '输入有误,请重新确认';
        $die($json->encode($res));
    }
开发者ID:554119220,项目名称:kjrscrm,代码行数:31,代码来源:user_account.php

示例10: action_address_list

function action_address_list()
{
    // 全局变量
    $user = $GLOBALS['user'];
    $_CFG = $GLOBALS['_CFG'];
    $_LANG = $GLOBALS['_LANG'];
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    $user_id = $_SESSION['user_id'];
    $id = isset($_GET['id']) ? intval($_GET['id']) : 0;
    $sql = "SELECT a.*, c.region_name AS country_name, p.region_name AS province, ct.region_name AS city_name, d.region_name AS district_name " . " FROM " . $ecs->table('user_address') . " as a " . " LEFT JOIN " . $ecs->table('region') . " AS c ON c.region_id = a.country " . " LEFT JOIN " . $ecs->table('region') . " AS p ON p.region_id = a.province " . " LEFT JOIN " . $ecs->table('region') . " AS ct ON ct.region_id = a.city " . " LEFT JOIN " . $ecs->table('region') . " AS d ON d.region_id = a.district " . " WHERE user_id='{$id}'";
    $address = $db->getAll($sql);
    $smarty->assign('address', $address);
    assign_query_info();
    $smarty->assign('ur_here', $_LANG['address_list']);
    $smarty->assign('action_link', array('text' => $_LANG['03_users_list'], 'href' => 'users.php?act=list&' . list_link_postfix()));
    $smarty->display('user_address_list.htm');
}
开发者ID:seanguo166,项目名称:yinoos,代码行数:19,代码来源:users.php

示例11: array

    $sql = 'select * from ' . $ecs->table('region') . ' where parent_id=' . $pickup_point['city_id'];
    $district_list = $db->getAll($sql);
    $smarty->assign('province_list', $province_list);
    $smarty->assign('city_list', $city_list);
    $smarty->assign('district_list', $district_list);
    $smarty->assign('pickup_point', $pickup_point);
    $smarty->assign('ur_here', $_LANG['pickup_point_edit']);
    $smarty->assign('action_link', array('text' => $_LANG['pickup_point_list'], 'href' => 'pickup_point.php?act=list&' . list_link_postfix()));
    $smarty->assign('form_action', 'update');
    assign_query_info();
    $smarty->display('pickup_point_info.htm');
}
if ($_REQUEST['act'] == 'update') {
    if ($exc->edit("shop_name='{$_POST['shop_name']}', address='{$_POST['address']}', contact='{$_POST['contact']}', phone='{$_POST['phone']}', province_id='{$_POST['province']}', city_id='{$_POST['city']}', district_id ='{$_POST['district']}'", $_POST['id'])) {
        $link[0]['text'] = $_LANG['back_list'];
        $link[0]['href'] = 'pickup_point.php?act=list&' . list_link_postfix();
        $note = sprintf($_LANG['pickup_point_edit_succeed'], stripslashes($_POST['shop_name']));
        admin_log($_POST['shop_name'], 'edit', 'pickup_point');
        clear_cache_files();
        sys_msg($note, 0, $link);
    } else {
        die($db->error());
    }
} elseif ($_REQUEST['act'] == 'edit_shop_name') {
    $id = intval($_POST['id']);
    $shop_name = json_str_iconv(trim($_POST['val']));
    if ($exc->edit("shop_name = '{$shop_name}'", $id)) {
        clear_cache_files();
        admin_log($shop_name, 'edit', 'pickup_point');
        make_json_result(stripslashes($shop_name));
    } else {
开发者ID:seanguo166,项目名称:yinoos,代码行数:31,代码来源:pickup_point.php

示例12: admin_priv

    admin_priv('store_inout_type');
    if ($_POST['type_name'] != $_POST['old_typename']) {
        /*检查品牌名是否相同*/
        $is_only = $exc->is_only('type_name', $_POST['type_name'], $_POST['id']);
        if (!$is_only) {
            sys_msg(sprintf($_LANG['typename_exist'], stripslashes($_POST['type_name'])), 1);
        }
    }
    $is_valid = isset($_REQUEST['is_valid']) ? intval($_REQUEST['is_valid']) : 0;
    $in_out = isset($_REQUEST['in_out']) ? intval($_REQUEST['in_out']) : 0;
    $param = "type_name = '{$_POST['type_name']}',   is_valid='{$is_valid}'  ";
    if ($exc->edit($param, $_POST['id'])) {
        /* 清除缓存 */
        clear_cache_files();
        $link[0]['text'] = $_LANG['back_list'];
        $link[0]['href'] = 'store_inout_type.php?act=list&in_out=' . $in_out . '&' . list_link_postfix();
        $note = vsprintf($_LANG['typeedit_succed'], $_POST['type_name']);
        sys_msg($note, 0, $link);
    } else {
        die($db->error());
    }
} elseif ($_REQUEST['act'] == 'remove') {
    check_authz_json('store_inout_type');
    $id = intval($_GET['id']);
    $exc->drop($id);
    $url = 'store_inout_type.php?act=query&' . str_replace('act=remove', '', $_SERVER['QUERY_STRING']);
    ecs_header("Location: {$url}\n");
    exit;
} elseif ($_REQUEST['act'] == 'query') {
    $type_list = get_typelist();
    $smarty->assign('type_list', $type_list['typelist']);
开发者ID:moonlight-wang,项目名称:feilun,代码行数:31,代码来源:store_inout_type.php

示例13: array

            echo $smarty->fetch("str:" . $shipping['shipping_print']);
        } else {
            $shipping_code = $db->getOne("SELECT shipping_code FROM " . $ecs->table('shipping') . " WHERE shipping_id=" . $order['shipping_id']);
            if ($shipping_code) {
                include_once ROOT_PATH . 'includes/modules/shipping/' . $shipping_code . '.php';
            }
            if (!empty($_LANG['shipping_print'])) {
                echo $smarty->fetch("str:{$_LANG['shipping_print']}");
            } else {
                echo $_LANG['no_print_shipping'];
            }
        }
    } else {
        /* 模板赋值 */
        $smarty->assign('ur_here', $_LANG['order_info']);
        $smarty->assign('action_link', array('href' => 'order.php?act=list&' . list_link_postfix(), 'text' => $_LANG['02_order_list']));
        /* 显示模板 */
        assign_query_info();
        $smarty->display('order_info.htm');
    }
} elseif ($_REQUEST['act'] == 'receive_goods') {
    $res['req_msg'] = true;
    $res['btncontent'] = false;
    if (!admin_priv('shipping_done', '', false)) {
        $res['message'] = '对不起,您还未被授权确认收货!';
        die($json->encode($res));
    }
    $_REQUEST = addslashes_deep($_REQUEST);
    $sql_select = 'SELECT receive_status,others,FROM_UNIXTIME(add_time, "【%Y-%m-%d %H:%i:%s】") add_time FROM ' . $GLOBALS['ecs']->table('shipping_feed') . " WHERE order_id={$_REQUEST['id']} ORDER BY add_time DESC";
    $info = $GLOBALS['db']->getRow($sql_select);
    $smarty->assign('id', $_REQUEST['id']);
开发者ID:554119220,项目名称:kjrscrm,代码行数:31,代码来源:order.php

示例14: floatval

    $arr['user_money'] = floatval($_POST['user_money']);
    $arr['pay_points'] = intval($_POST['pay_points']);
    $arr['rank_points'] = intval($_POST['rank_points']);
    $arr['true_name'] = trim($_POST['true_name']);
    $arr['address'] = trim($_POST['address']);
    $arr['mobile'] = trim($_POST['mobile']);
    $arr['email'] = trim($_POST['email']);
    $arr['is_show'] = intval($_POST['is_show']);
    $arr['send_type'] = trim($_POST['send_type']);
    $arr['des'] = trim($_POST['des']);
    $db->autoExecute($ecs->table('user_card'), $arr, 'UPDATE', " id='{$id}' ");
    $note = sprintf($_LANG['user_card_edit_succeed'], stripslashes($_POST['title']));
    admin_log($_POST['card_no'], 'edit', 'user_card');
    clear_cache_files();
    $link[0]['text'] = $_LANG['back_list'];
    $link[0]['href'] = 'user_card.php?act=list&ct_id=' . $ct_id . '&' . list_link_postfix();
    sys_msg($note, 0, $link);
} elseif ($_REQUEST['act'] == 'remove') {
    admin_priv('user_card');
    $id = intval($_GET['id']);
    $sql = "SELECT * FROM " . $ecs->table('user_card') . " WHERE id='{$id}'";
    $card = $db->GetRow($sql);
    if ($exc->drop($id)) {
        admin_log(addslashes($card['card_no']), 'remove', 'user_card');
        clear_cache_files();
    }
    $url = 'user_card.php?act=query&' . str_replace('act=remove', '', $_SERVER['QUERY_STRING']);
    ecs_header("Location: {$url}\n");
    exit;
} elseif ($_REQUEST['act'] == 'unbind') {
    admin_priv('user_card');
开发者ID:nanhuacrab,项目名称:ecshop,代码行数:31,代码来源:user_card.php

示例15: log_account_change

            log_account_change($account['user_id'], $amount, 0, 0, 0, $_LANG['surplus_type_1'], ACT_DRAWING);
        } elseif ($is_paid == '1' && $account['process_type'] == '0') {
            //如果是预付款,并且已完成, 更新此条记录,增加相应的余额
            update_user_account($id, $amount, $admin_note, $is_paid);
            //更新会员余额数量
            log_account_change($account['user_id'], $amount, 0, 0, 0, $_LANG['surplus_type_0'], ACT_SAVING);
        } elseif ($is_paid == '0') {
            /* 否则更新信息 */
            $sql = "UPDATE " . $ecs->table('user_account') . " SET " . "admin_user    = '{$_SESSION['admin_name']}', " . "admin_note    = '{$admin_note}', " . "is_paid       = 0 WHERE id = '{$id}'";
            $db->query($sql);
        }
        /* 记录管理员日志 */
        admin_log('(' . addslashes($_LANG['check']) . ')' . $admin_note, 'edit', 'user_surplus');
        /* 提示信息 */
        $link[0]['text'] = $_LANG['back_list'];
        $link[0]['href'] = 'user_account.php?act=list&' . list_link_postfix();
        sys_msg($_LANG['attradd_succed'], 0, $link);
    }
} elseif ($_REQUEST['act'] == 'query') {
    $list = account_list();
    $smarty->assign('list', $list['list']);
    $smarty->assign('filter', $list['filter']);
    $smarty->assign('record_count', $list['record_count']);
    $smarty->assign('page_count', $list['page_count']);
    $sort_flag = sort_flag($list['filter']);
    $smarty->assign($sort_flag['tag'], $sort_flag['img']);
    make_json_result($smarty->fetch('user_account_list.htm'), '', array('filter' => $list['filter'], 'page_count' => $list['page_count']));
} elseif ($_REQUEST['act'] == 'remove') {
    /* 检查权限 */
    check_authz_json('surplus_manage');
    $id = @intval($_REQUEST['id']);
开发者ID:xiaoxiaowu007,项目名称:jicai,代码行数:31,代码来源:user_account.php


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