Esempio n. 1
0
                    <th>Level</th>
                    <th>Message</th>
                    <th>Path</th>
                    <th>User</th>
                    <th>Host</th>
                    <th>Timestamp</th>
                </tr>
                </thead>
                <tbody>
                <?php 
foreach ($logs as $log) {
    echo '<tr>';
    echo '<td>' . $log->type . '</td>';
    echo '<td>' . $log->severity . '</td>';
    echo '<td>' . $log->message . '</td>';
    echo '<td>' . RHtml::link($log->path, $log->path, $log->path) . '</td>';
    if ($log->userId == 0) {
        echo '<td>Anonymous</td>';
    } else {
        echo '<td>' . RHtml::linkAction('user', $log->user->name, 'view', $log->user->id) . '</td>';
    }
    echo '<td>' . $log->host . '</td>';
    echo '<td>' . $log->timestamp . '</td>';
    echo '</tr>';
}
?>
                </tbody>
            </table>

        </div>
        <?php 
Esempio n. 2
0
/**
 * @author: Raysmond
 */
?>
<div>
        <div id="latest-topics-list">
        <?php 
$self->renderPartial('_posts_list', array('topics' => $topics), false);
?>
        </div>
        <div id="topics-list-footer" style="text-align: center;">
            <?php 
if (count($topics) > 0) {
    echo RForm::openForm('user/home', array('id' => 'loadMorePostsForm'));
    echo RForm::hidden(array('id' => 'last-loaded-time', 'name' => 'last-loaded-time', 'value' => $topics[count($topics) - 1]->createdTime));
    echo RHtml::link('Load more posts', 'Load more posts', "javascript:loadMorePosts()", array('class' => 'btn btn-lg btn-primary', 'id' => 'get_more_post_btn'));
    echo RForm::endForm();
} else {
    echo 'No posts yet. ';
}
?>
        </div>

</div>
<script>
    var isLoading = false;
    var nomore = false;

    $(document).ready(function () {
        $(window).scroll(function () {
            if (!nomore) {
Esempio n. 3
0
            <a title="admin" href="http://www.renren.com/284019636/profile" target="_blank">Junhao Wu</a>
        </div>
        <div class="user-item  col-lg-3"></div>


        <div class="clearfix"></div>
        <br/>
        <h4 id="follow">Mail us</h4>
        <p>
            School of Computer Science, Fudan University<br/>
            825 Zhangheng Road, Pudong District, Shanghai, China (201203)<br/>
        </p><br/>
        <h4>Follow us on Github </h4>
        <p>
            <?php 
echo RHtml::link("FDUGroup github page", $githubLink, $githubLink);
?>
        </p>
        <div class="user-item" style="overflow: hidden;text-align:left;">
            <a href="<?php 
echo $githubLink;
?>
" target="_blank">
                <img src="<?php 
echo RHtml::siteUrl('public/images') . '/QuickMark.png';
?>
" title="Scan This!" />
            </a>
        </div>
    </div>
</div>
Esempio n. 4
0
    ?>
</td><?php 
    foreach (User::$mapping as $objCol => $dbcol) {
        if (in_array($objCol, $skips)) {
            continue;
        }
        echo '<td>';
        switch ($objCol) {
            case "roleId":
                echo Role::getRoleNameById($user->{$objCol});
                break;
            case "name":
                echo RHtml::linkAction('user', $user->{$objCol}, 'view', $user->id);
                break;
            case "homepage":
                echo RHtml::link($user->{$objCol}, $user->{$objCol}, $user->{$objCol});
                break;
            case "gender":
                echo User::getGenderName($user->gender);
                break;
            case "status":
                if ($user->status == 1) {
                    echo '<span style="color:green">active</span>';
                } else {
                    echo '<span style="color:red">blocked</span>';
                }
                break;
            default:
                echo $user->{$objCol};
        }
        echo '</td>';
Esempio n. 5
0
            break;
        case "roleId":
            echo "Role: " . User::$roles[$user->roleId - 1] . "&nbsp;";
            if ($user->roleId == Role::AUTHENTICATED_ID) {
                echo RHtml::linkAction('user', 'Apply for VIP', 'applyVIP', null, ['class' => 'btn btn-xs btn-info']);
            }
            echo "<br/>";
            break;
        case "intro":
            echo "Introduction: " . $user->{$objCol} . "<br/>";
            break;
        case "weibo":
            echo "Webo: " . RHtml::link($user->name, $user->weibo, $user->weibo) . "<br/>";
            break;
        case "homepage":
            echo "Homepage: " . RHtml::link($user->name, $user->homepage, $user->homepage) . "<br/>";
            break;
        default:
            echo ucfirst($objCol) . ": " . $user->{$objCol} . "<br/>";
            break;
    }
    echo '</li>';
}
$wallet = $user->getWallet();
echo '<li class="list-group-item">Wallet: ' . $wallet->money . ' ' . Wallet::COIN_NAME . '</li>';
?>
            </ul>
        </div>

        <div class="col-lg-4">
            <div style="margin-top: 30px;">
Esempio n. 6
0
    ?>
"></div>
                    <?php 
    echo $user->region ? '<span class="spliter">|</span>' . $user->region : '';
    ?>
                    <?php 
    if ($user->weibo != '') {
        ?>
                        <?php 
        if ($user->region != '') {
            ?>
<span class="spliter">|</span><?php 
        }
        ?>
                        Micro-Blog: <?php 
        echo RHtml::link($user->weibo, $user->weibo, $user->weibo);
        ?>
                    <?php 
    }
    ?>
                </div>
            </div>

            <div class="user-statistics col-lg-3">
                <div class="stat-item">
                    <div class="number">
                        <?php 
    echo $user->countFriends($user->id);
    ?>
                    </div>
                    <div class="text">