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


PHP render_loading_wrapper函数代码示例

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


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

示例1: loadMessenger

/**
* Load Private Messenger
* 
*/
function loadMessenger()
{
    global $db, $userID;
    //Getting Friends from the Buddy List
    $messengerSettings = BuckysUser::getUserBasicInfo($userID);
    $uIDs = array();
    //Return HTML
    ob_start();
    ?>
    <div id="private_messenger_main_wrap">
        <div class="box_nav_row">
            <a href="#" class="close_box_link">&nbsp;</a>
<!--            <a href="#" class="minimize_box_link">&nbsp;</a>-->
        </div>
        <h2>Private Messenger</h2>
        <div class="chat_user_list" id="private_messenger_buddies_list">
            <?php 
    echo BuckysPrivateMessenger::getUserListHTML($userID, $uIDs);
    ?>
        </div>
        <div class="below_chat_user_list <?php 
    if ($messengerSettings['messenger_privacy'] == 'all') {
        ?>
add-user-to-buddylist-hidden<?php 
    }
    ?>
" id="add-user-to-buddylist">
            <form name="adduserform" id="adduserform">
                <h2>Add Friends</h2>
                <span id="add-user-to-buddylist-inputholder">
                    <input type="text" class="input below_chat_user_list_input" id="add-user-to-buddylist-input" />                
                    <input type="submit" value="Add" class="redButton" />
                </span>
<!--                <div id="selected-users-list"></div>-->
                <div class="clear"></div>
                <?php 
    echo render_loading_wrapper();
    ?>
            </form>
        </div>
        <div class="below_chat_user_list" id="messenger_btn_box">             
            <span><input type="button" id="settings_messenger_btn" class="redButton" value="Settings"></span>
        </div>
    </div>
    <?php 
    BuckysPrivateMessenger::updateConversationList($userID, $uIDs);
    $convList = isset($_SESSION['converation_list']) ? $_SESSION['converation_list'] : array();
    ?>
    <div id="private_messenger_conversation_wrap" <?php 
    if (!buckys_not_null($convList)) {
        ?>
style="display: none;"<?php 
    }
    ?>
>                            
        <div class="box_nav_row">
            <a href="#" class="close_box_link">&nbsp;</a>
            <a href="#" class="minimize_box_link">&nbsp;</a>            
            <div href="#" class="options_link" id="private-messenger-options-link">
                Options
                <ul>
                    <li><a href="#" id="pm-box-clear-history-link">Clear history</a></li>
                    <li><a href="#" id="pm-box-block-user-link">Block User</a></li>
                </ul>
            </div>            
        </div>
        <div id="private_messenger_conversation_lft">
            <div id="private_messenger_opened_chats"> 
                <?php 
    foreach ($convList as $i => $uID) {
        $tUInfo = BuckysUser::getUserBasicInfo($uID);
        ?>
<a href="#" data-id="<?php 
        echo $uID;
        ?>
" <?php 
        if ($i == 0) {
            ?>
class="actived"<?php 
        }
        ?>
 data-encrypted="<?php 
        echo buckys_encrypt_id($uID);
        ?>
"><?php 
        echo $tUInfo['firstName'] . " " . $tUInfo['lastName'];
        ?>
 <span title="close" class="close-conversation">X</span></a><?php 
    }
    ?>
                         
            </div>                    
        </div>        
        <div id="private_messenger_conversation_rgt">
            <?php 
    foreach ($convList as $i => $uID) {
//.........这里部分代码省略.........
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:101,代码来源:private_messenger.php

示例2: void

}
?>
                    <div class="btn-row">
                        <a href="javascript: void(0)" id="add-new-employment" class="add-new-row" data-label="Employer"
                            data-id="employment" data-new-row="new-employment-row">Add New</a> <span
                            class="inputholder"><input type="submit" id="submit" name="submit" class="redButton"
                                value="Submit"/></span>

                        <div class="clear"></div>
                    </div>
                    <input type="hidden" name="userID" id="userID" value="<?php 
echo $userID;
?>
"/>
                    <?php 
render_loading_wrapper();
?>
                </form>
                <div style="display: none;" id="new-employment-row">
                    <label>School Name:</label>
                        <span class="inputholder">
                            <input type="text" name="employer[]" maxlength="30" class="input" value=""/>
                            <?php 
echo render_year_selectbox('from[]');
?>
                            to
                            <?php 
echo render_year_selectbox('to[]');
?>
                        </span>
                    <?php 
开发者ID:ravi50041,项目名称:Social-Network-Website,代码行数:31,代码来源:info_employment.php

示例3: buckys_get_single_post_html


//.........这里部分代码省略.........
        echo $post['postID'];
        ?>
" class="usersThatLiked"><?php 
        echo $post['comments'] > 1 ? $post['comments'] . " comments" : $post['comments'] . " comment";
        ?>
 </a>
                    <?php 
    }
    ?>
                </div>
                <?php 
    if ($post['likes'] > 0) {
        $likedUsers = BuckysPost::getLikedUsers($post['postID']);
        ?>
                <div class="liked-users">
                    <ul>
                        <?php 
        foreach ($likedUsers as $l) {
            ?>
                        <li><a href="/profile.php?user=<?php 
            echo $l['userID'];
            ?>
"><img src="<?php 
            echo BuckysUser::getProfileIcon($l);
            ?>
"> <span><?php 
            echo $l['firstName'] . " " . $l['lastName'];
            ?>
</span></a></li>
                        <?php 
        }
        ?>
                        <?php 
        if ($post['likes'] > 30) {
            ?>
                        <li class="more-likes">+ <?php 
            echo $post['likes'] - count($likedUsers);
            ?>
 more</li>
                        <?php 
        }
        ?>
                    </ul>                    
                </div>
                <?php 
    }
    ?>
                <?php 
    if (buckys_not_null($userID)) {
        ?>
                <div class="post-new-comment"> 
                    <a href="/profile.php?user=<?php 
        echo $userID;
        ?>
"><img src="<?php 
        echo BuckysUser::getProfileIcon($userID);
        ?>
" class="replyToPostIcons" /></a>
                    <form method="post" class="postcommentform" name="postcommentform" action="">
                        <input type="text" class="input" name="comment" placeholder="Write a comment...">
                        <input type="hidden" name="postID" value="<?php 
        echo $post['postID'];
        ?>
" />
                        <input type="submit" value="Post Comment" id="submit_post_reply" class="redButton" />
                        <?php 
        render_loading_wrapper();
        ?>
                    </form>
                </div>
                <?php 
    }
    ?>
                <?php 
    $comments = BuckysComment::getPostComments($post['postID']);
    echo render_post_comments($comments, $userID);
    if (count($comments) > 0 && BuckysComment::hasMoreComments($post['postID'], $comments[count($comments) - 1]['posted_date'])) {
        ?>
                                
                <a href="#" class="show-more-comments" data-last-date="<?php 
        echo $comments[count($comments) - 1]['posted_date'];
        ?>
" data-post-id="<?php 
        echo $post['postID'];
        ?>
">view more</a>
                <?php 
    }
    ?>
            </div>
            <input type="hidden" class="post-created-date" value="<?php 
    echo $post['post_date'];
    ?>
" />
        </div>    
    <?php 
    $html = ob_get_contents();
    ob_end_clean();
    return $html;
}
开发者ID:kishoreks,项目名称:BuckysRoom,代码行数:101,代码来源:view.php


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