Пример #1
0
                    <?php 
foreach ($friends as $friend) {
    echo '<div class="col-lg-2 friend-item" style="height: 90px;">';
    if (!isset($friend->user->picture) || $friend->user->picture == '') {
        $friend->user->picture = User::$defaults['picture'];
    }
    $picture = RImage::styleSrc($friend->user->picture, User::getPicOptions());
    echo RHtml::image($picture, $friend->user->name, array('width' => '64px'));
    echo '<br/>';
    echo RForm::input(array('type' => 'checkbox', 'name' => 'select_friends[]', 'value' => $friend->user->id, 'class' => 'btn btn-default'));
    echo RHtml::linkAction('user', $friend->user->name, 'view', $friend->user->id);
    echo '</div>';
}
?>
                </div>
            </div>
        </div>

        <hr>

        <div><b>Write something as an invitation (optional)</b></div>

        <?php 
echo RForm::textarea(array('class' => 'form-control', 'rows' => '3', 'name' => 'invitation', 'placeholder' => 'Say something!'));
echo '<br/>';
echo RForm::input(array('class' => 'btn btn-lg btn-primary', 'type' => 'submit', 'value' => 'Invite Now'));
echo RForm::endForm();
?>
    </div>

</div>
Пример #2
0
 */
if (isset($validation_errors)) {
    RHtml::showValidationErrors($validation_errors);
}
$form = array();
if (isset($sendForm)) {
    $form = $sendForm;
}
echo RForm::openForm('message/send/' . $type . '/', array('id' => 'messageForm', 'class' => 'form-signin'));
echo RForm::label('To user: '******'receiver', array());
echo '&nbsp;&nbsp;';
$disabled = isset($toUser) ? "disabled" : "enabled";
echo RForm::input(array('id' => 'receiver', 'name' => 'receiver', 'class' => 'form-control', 'placeholder' => 'Receiver'), isset($toUser) ? $toUser->name : $form);
echo '<br/>';
echo RForm::label('Title', 'title', array());
echo RForm::input(array('id' => 'title', 'name' => 'title', 'class' => 'form-control', 'placeholder' => 'Title'), $form);
echo "<br/>";
echo RForm::label('Content', 'content', array());
echo "<br/>";
if (Rays::user()->roleId == Role::ADMINISTRATOR_ID) {
    $self->module('ckeditor', array('editorId' => 'msg-content', 'name' => 'msg-content', 'data' => isset($form['content']) ? $form['content'] : ''));
} else {
    echo RForm::textarea(array('id' => 'msg-content', 'name' => 'msg-content', 'class' => 'form-control', 'cols' => 100, 'rows' => 6, 'placeholder' => 'Content'), $form);
}
echo "<br/>";
echo RForm::input(array('type' => 'hidden', 'value' => $type, 'name' => 'type'), $type);
echo RForm::input(array('type' => 'submit', 'value' => 'Send', 'class' => 'btn btn-lg btn-primary'));
echo RForm::endForm();
?>
    </div>
</div>
Пример #3
0
        <div id="comments">
            <h2 class="s-title">Comments</h2>

            <?php 
$self->renderPartial("_comment_list", array('commentTree' => $commentTree), false);
?>

            <hr/>

            <div id="reply">
                <?php 
echo RForm::openForm("post/comment/{$topic->id}", array('id' => 'viewFrom'));
?>
                <?php 
echo RForm::textarea(array('name' => 'content', 'class' => 'form-control', 'rows' => '5', 'placeholder' => 'Comment content'), isset($parent) ? '@' . $parent->user->name . ' ' : '');
?>
                <?php 
if (isset($parent)) {
    echo RForm::hidden('replyTo', (int) $parent->pid === 0 ? $parent->id : $parent->pid);
    echo RForm::hidden('exactReplyTo', $parent->id);
}
?>
                <br/>
                <?php 
echo RForm::input(array('class' => 'btn btn-sm btn-primary', 'type' => 'submit', 'value' => 'Comment'));
?>
                <?php 
echo RForm::endForm();
?>
            </div>
Пример #4
0
<?php

/**
 * Created by PhpStorm.
 * User: songrenchu
 */
?>
<div id="profile" class="panel panel-default">
    <div class="panel-heading"><h1 class="panel-title">VIP application</h1></div>
    <div class="panel-body">
        <?php 
if (isset($validation_errors)) {
    RHtml::showValidationErrors($validation_errors);
}
$form = array();
if (isset($editForm)) {
    $form = $editForm;
}
echo RForm::openForm('user/applyVIP/', array('id' => 'vipApplyForm'));
echo RForm::label('Statement of Purpose: ', 'content', array());
echo "<br/>";
echo RForm::textarea(array('id' => 'content', 'name' => 'content', 'cols' => 100, 'rows' => 6, 'class' => 'form-control', 'placeholder' => 'Explain your purpose and qualification of applying for VIP'), $form);
echo "<br/>";
echo RForm::input(array('type' => 'submit', 'value' => 'Send', 'class' => 'btn btn-lg btn-primary'));
echo RForm::endForm();
?>
    </div>
</div>