當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。