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


PHP get_user_prompt函数代码示例

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


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

示例1: action_auction_list

function action_auction_list()
{
    $user = $GLOBALS['user'];
    $_CFG = $GLOBALS['_CFG'];
    $_LANG = $GLOBALS['_LANG'];
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    $user_id = $_SESSION['user_id'];
    include_once ROOT_PATH . 'includes/lib_clips.php';
    $smarty->assign('prompt', get_user_prompt($user_id));
    $smarty->display('user_clips.dwt');
}
开发者ID:seanguo166,项目名称:yinoos,代码行数:13,代码来源:user.php

示例2: sprintf

    // 数据目录
    $smarty->assign('action', $action);
    $smarty->assign('lang', $_LANG);
}
//用户中心欢迎页
if ($action == 'default') {
    include_once ROOT_PATH . 'includes/lib_clips.php';
    if ($rank = get_rank_info()) {
        $smarty->assign('rank_name', sprintf($_LANG['your_level'], $rank['rank_name']));
        if (!empty($rank['next_rank_name'])) {
            $smarty->assign('next_rank_name', sprintf($_LANG['next_level'], $rank['next_rank'], $rank['next_rank_name']));
        }
    }
    $smarty->assign('info', get_user_default($user_id));
    $smarty->assign('user_notice', $_CFG['user_notice']);
    $smarty->assign('prompt', get_user_prompt($user_id));
    $smarty->display('user_clips.dwt');
}
/* 显示会员注册界面 */
if ($action == 'register') {
    if (!isset($back_act) && isset($GLOBALS['_SERVER']['HTTP_REFERER'])) {
        $back_act = strpos($GLOBALS['_SERVER']['HTTP_REFERER'], 'user.php') ? './index.php' : $GLOBALS['_SERVER']['HTTP_REFERER'];
    }
    /* 验证码相关设置 */
    if (intval($_CFG['captcha']) & CAPTCHA_REGISTER && gd_version() > 0) {
        $smarty->assign('enabled_captcha', 1);
        $smarty->assign('rand', mt_rand());
    }
    /* 增加是否关闭注册 */
    $smarty->assign('shop_reg_closed', $_CFG['shop_reg_closed']);
    $smarty->assign('back_act', $back_act);
开发者ID:BGCX261,项目名称:zishashop-svn-to-git,代码行数:31,代码来源:user.php

示例3: action_default

function action_default()
{
    $user = $GLOBALS['user'];
    $_CFG = $GLOBALS['_CFG'];
    $_LANG = $GLOBALS['_LANG'];
    $smarty = $GLOBALS['smarty'];
    $db = $GLOBALS['db'];
    $ecs = $GLOBALS['ecs'];
    $user_id = $GLOBALS['user_id'];
    $order_count = $GLOBALS['db']->getOne("select count(*) from " . $GLOBALS['ecs']->table('order_info') . " where user_id = " . $user_id);
    $smarty->assign('order_count', $order_count);
    $collect_count = $GLOBALS['db']->getOne("select count(*) from " . $GLOBALS['ecs']->table('collect_goods') . " where user_id = " . $user_id);
    $smarty->assign('collect_count', $collect_count);
    $comment_count = $GLOBALS['db']->getOne("select count(*) from " . $GLOBALS['ecs']->table('comment') . " where user_id = " . $user_id);
    $smarty->assign('comment_count', $comment_count);
    include_once ROOT_PATH . 'includes/lib_clips.php';
    if ($rank = get_rank_info()) {
        $smarty->assign('rank_name', sprintf($rank['rank_name']));
        if (!empty($rank['next_rank_name'])) {
            $smarty->assign('next_rank_name', sprintf($_LANG['next_level'], $rank['next_rank'], $rank['next_rank_name']));
        }
    }
    $sql = "select headimgurl from " . $GLOBALS['ecs']->table('weixin_user') . " where ecuid = '{$user_id}'";
    $headimgurl = $GLOBALS['db']->getOne($sql);
    $smarty->assign('headimgurl', $headimgurl);
    $recomm = $db->getOne("SELECT is_recomm FROM " . $GLOBALS['ecs']->table('user_rank') . " r" . " LEFT JOIN" . $GLOBALS['ecs']->table('users') . " u ON r.rank_id = u.user_rank" . " WHERE u.user_id = '{$user_id}'");
    $smarty->assign('recomm', $recomm);
    $smarty->assign('info', get_user_default($user_id));
    $smarty->assign('user_notice', $_CFG['user_notice']);
    $smarty->assign('prompt', get_user_prompt($user_id));
    $smarty->display('user_clips.dwt');
}
开发者ID:moonlight-wang,项目名称:feilun,代码行数:32,代码来源:user9-9.php


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