本文整理汇总了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
示例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:
示例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