示例#1
0
<?php 
if (isset($result)) {
    ?>
<h3>Results</h3>
<ul class="searchresult">
    <?php 
    foreach ($result as $row) {
        ?>
    <li>
        <a href="<?php 
        echo profile_route($row->id);
        ?>
">
            <img src="<?php 
        echo select_thumbnail_image($row->id, $row->hasimage);
        ?>
" alt="" />
        </a>
        <a href="<?php 
        echo profile_route($row->id);
        ?>
"><?php 
        echo $row->firstname . ' ' . $row->lastname;
        ?>
</a>
        <?php 
        if (!is_friend($row->id)) {
            ?>
            -&nbsp;<a href="<?php 
            echo friends_add_route($row->id);
示例#2
0
    <div class="left-menu-line"></div>
</div>

<div id="profile-left-item">
    <div class="float-left">
        <h3>Friends</h3>
        <div id="friends-thumbs">
            <?php 
foreach ($friends as $friend) {
    ?>
            <a href="<?php 
    echo profile_route($friend->id);
    ?>
">
                <img src="<?php 
    echo select_thumbnail_image($friend->id, $friend->hasimage);
    ?>
" width="40px;" alt="<?php 
    echo $friend->firstname . ' ' . $friend->lastname;
    ?>
"/>
            </a>
            <?php 
}
?>
        </div>
    </div>
    <div class="clear"></div>
    <div class="left-menu-line"></div>
</div>
<div id="profile-left-item">
示例#3
0
                <p class="update-date"><?php 
    echo $update->date;
    ?>
</p>

                <?php 
    foreach ($comments[$update->id] as $comment) {
        ?>
                <div class="comment">
                    <div class="float-left">
                        <a href="<?php 
        echo profile_route($comment->userid);
        ?>
">
                            <img src="<?php 
        echo select_thumbnail_image($comment->userid, $comment->hasimage);
        ?>
" width="40px;" alt="" />
                        </a>
                    </div>
                    <div class="float-left comment-width">
                        <span class="comment_name"><?php 
        echo $comment->firstname . ' ' . $comment->lastname;
        ?>
</span>
                        <span class="comment_text"><?php 
        echo $comment->comment;
        ?>
</span><br/>
                        <span class="update-date"><?php 
        echo $comment->date;