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


PHP Pool::GetNickname方法代码示例

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


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

示例1:

" id="summary">

                <div id="pool_summary_container">
                    <br>
                    <div class="row"><!--BEGIN POOL PAGE SUB TABS ROW-->
                        

            <!--*****************************************************************************************-->
            <!--*****************************************************************************************-->


                        <div class="col-md-4 pool_page_sub_tabs_column" id="nickname_container">
                            <h4><span id="pool_nickname_glyph" class="glyphicon glyphicon-user"></span></h4>
<?php 
    //BEGIN POOL NICKNAME LOGIC
    $user_nickname = $pool->GetNickname($current_user_id, $pool_id);
    if ($pool_fetch_result['Live?'] == 0) {
        ?>
                <h4>Choose your nickname for this pool: </h4>
                <h4>
                    <span class="label label-info"><span class='edit_nickname' id='update_nickname'><?php 
        echo $user_nickname;
        ?>
</span></span><span style="margin-left:15px; font-style:italic; font-size:70%;">(Click to edit)</span>
                </h4>
<?php 
    } else {
        ?>
                <h4>Your nickname for this pool is: </h4>
                <h4>
                    <span class="label label-primary"><?php 
开发者ID:the212,项目名称:Poolski,代码行数:31,代码来源:pool.php

示例2:

        if ($pool_fetch_result['Private?'] == 0 && $pool_fetch_result['Live?'] == 0) {
            //if pool is public and is not yet Live, allow a non-leader user to invite others:
            ?>
                    </div> <!--END OF ROW DIV ABOVE INVITE BUTTON LOGIC -->
                    <br>
<?php 
            echo $invite_people_button;
        } else {
            //if the pool is LIVE or Private, we need to close out the row div from above invite button logic
            echo "</div>";
            //END OF ROW DIV ABOVE INVITE BUTTON LOGIC
        }
    }
    /*END INVITE BUTTON LOGIC*/
    //BEGIN POOL NICKNAME LOGIC
    $user_nickname = $pool->GetNickname($_SESSION['Username'], $pool_id);
    if ($pool_fetch_result['Live?'] == 0) {
        ?>
                <br>
                <h4>Choose your nickname for this pool: <span class="label label-info"><span class='edit_nickname' id='update_nickname'><?php 
        echo $user_nickname;
        ?>
</span></span><span style="margin-left:15px; font-style:italic; font-size:70%;">(Click to edit)</span></h4>
<?php 
    }
    //END POOL NICKNAME LOGIC
    ?>
            <div id="pool_summary_container">
<?php 
    if ($pool_fetch_result['Pool ended?'] == 0) {
        //only display the start/end times and end pool button if pool has not ended:
开发者ID:epsilon670,项目名称:Poolski,代码行数:31,代码来源:pool_backup20140125.php

示例3:





    <div class="row"><!--BEGIN POOL PAGE SUB TABS ROW-->
                        

    <!--*****************************************************************************************-->
    <!--*****************************************************************************************-->


        <div class="col-md-4 pool_page_sub_tabs_column" id="nickname_container">
            <h4><span id="pool_nickname_glyph" class="glyphicon glyphicon-user"></span></h4>
<?php 
    //BEGIN POOL NICKNAME LOGIC
    $user_nickname = $pool->GetNickname($current_user_id, $pool_id);
    if ($pool_fetch_result['Live?'] == 0) {
        ?>
            <h4>Choose your nickname for this pool: </h4>
            <h4>
                <span class="label label-info"><span class='edit_nickname' id='update_nickname'><?php 
        echo $user_nickname;
        ?>
</span></span><span style="margin-left:15px; font-style:italic; font-size:70%;">(Click to edit)</span>
            </h4>
<?php 
    } else {
        ?>
            <h4>Your nickname for this pool is: </h4>
            <h4>
                <span class="label label-primary"><?php 
开发者ID:epsilon670,项目名称:Poolski,代码行数:27,代码来源:pool.php


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