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


PHP CActiveForm::begin方法代码示例

本文整理汇总了PHP中humhub\compat\CActiveForm::begin方法的典型用法代码示例。如果您正苦于以下问题:PHP CActiveForm::begin方法的具体用法?PHP CActiveForm::begin怎么用?PHP CActiveForm::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在humhub\compat\CActiveForm的用法示例。


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

示例1: array

            <div class="modal-content">

                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"
                            aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">
                        <strong><?php 
echo Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'Help Us Understand What\'s Happening');
?>
                        </strong>
                    </h4>

                </div>
                <hr />
                <?php 
$form = CActiveForm::begin(['id' => 'report-content-form']);
?>
                <?php 
echo $form->hiddenField($model, 'object_id', array('value' => $object->id));
?>
                <div class="modal-body text-left">


                    <?php 
echo $form->labelEx($model, 'reason');
?>
                    <br />
                    <?php 
echo $form->radioButtonList($model, 'reason', array('1' => Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'Does not belong to this space'), '2' => Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'It\'s offensive'), '3' => Yii::t('ReportcontentModule.widgets_views_reportSpamLink', 'It\'s spam')));
?>
                    <?php 
开发者ID:pkdevboxy,项目名称:humhub-modules-reportcontent,代码行数:31,代码来源:reportSpamLink.php

示例2: array

                        </div>
                    </div>

                    <hr>

                <?php 
    }
    ?>

            </ul>
            <!-- END: Results -->


            <div class="row-fluid">
                <?php 
    $form = CActiveForm::begin();
    ?>

                <?php 
    echo $form->errorSummary($replyForm);
    ?>
                <div class="form-group">
                    <?php 
    echo $form->textArea($replyForm, 'message', array('class' => 'form-control', 'id' => 'newMessage', 'rows' => '4', 'placeholder' => Yii::t('MailModule.views_mail_show', 'Write an answer...')));
    ?>
                    <?php 
    echo humhub\widgets\MarkdownEditor::widget(array('fieldId' => 'newMessage'));
    ?>
                </div>
                <hr>
开发者ID:ConnectedCommunities,项目名称:humhub-modules-mail,代码行数:30,代码来源:show.php

示例3: array

<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use humhub\models\Setting;
?>

<div class="panel panel-default">
    <div
        class="panel-heading"><?php 
echo Yii::t('AdminModule.views_setting_index', '<strong>Basic</strong> settings');
?>
</div>
    <div class="panel-body">
        <?php 
$form = CActiveForm::begin(['id' => 'basic-settings-form']);
?>

        <?php 
echo $form->errorSummary($model);
?>

        <div class="form-group">
            <?php 
echo $form->labelEx($model, 'name');
?>
            <?php 
echo $form->textField($model, 'name', array('class' => 'form-control', 'readonly' => Setting::IsFixed('name')));
?>
        </div>
开发者ID:tonylow,项目名称:skillslink,代码行数:30,代码来源:basic.php

示例4: array

<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use yii\helpers\Url;
?>
<div class="content_edit" id="post_edit_<?php 
echo $post->id;
?>
">
    <?php 
$form = CActiveForm::begin(['id' => 'post-edit-form']);
?>

    <?php 
echo $form->textArea($post, 'message', array('class' => 'form-control', 'id' => 'post_input_' . $post->id, 'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...')));
?>

    <!-- create contenteditable div for HEditorWidget to place the data -->
    <div id="post_input_<?php 
echo $post->id;
?>
_contenteditable" class="form-control atwho-input"
         contenteditable="true"><?php 
echo \humhub\widgets\RichText::widget(['text' => $post->message]);
?>
</div>

    <?php 
echo \humhub\widgets\RichTextEditor::widget(['id' => 'post_input_' . $post->id, 'inputContent' => $post->message]);
?>
开发者ID:tonylow,项目名称:skillslink,代码行数:31,代码来源:edit.php

示例5:

<?php

use humhub\compat\CActiveForm;
use yii\helpers\Url;
?>
<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = CActiveForm::begin(['id' => 'space-crop-image-form']);
?>
        <?php 
echo $form->errorSummary($model);
?>
        <?php 
echo $form->hiddenField($model, 'cropX', ['id' => 'cropX']);
?>
        <?php 
echo $form->hiddenField($model, 'cropY', ['id' => 'cropY']);
?>
        <?php 
echo $form->hiddenField($model, 'cropW', ['id' => 'cropW']);
?>
        <?php 
echo $form->hiddenField($model, 'cropH', ['id' => 'cropH']);
?>

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
echo Yii::t('UserModule.views_profile_cropBannerImage', '<strong>Modify</strong> your title image');
开发者ID:tonylow,项目名称:skillslink,代码行数:31,代码来源:cropBannerImage.php

示例6: array

    <div class="panel-body">
        <?php 
echo \humhub\modules\admin\widgets\SpaceMenu::widget();
?>
        
        <p />
        <p>
            <?php 
echo Yii::t('AdminModule.views_space_index', 'Define here default settings for new spaces.');
?>
        </p>

        <br />

        <?php 
$form = CActiveForm::begin(['id' => 'space-settings-form']);
?>

        <?php 
echo $form->errorSummary($model);
?>

        <div class="form-group">
            <?php 
echo $form->labelEx($model, 'defaultJoinPolicy');
?>
            <?php 
$joinPolicies = array(0 => Yii::t('SpaceModule.base', 'Only by invite'), 1 => Yii::t('SpaceModule.base', 'Invite and request'), 2 => Yii::t('SpaceModule.base', 'Everyone can enter'));
?>
            <?php 
echo $form->dropDownList($model, 'defaultJoinPolicy', $joinPolicies, array('class' => 'form-control', 'id' => 'join_policy_dropdown', 'hint' => Yii::t('SpaceModule.views_admin_edit', 'Choose the kind of membership you want to provide for this workspace.')));
开发者ID:gautamkrishnar,项目名称:humhub-openshift-quickstart,代码行数:31,代码来源:settings.php

示例7: array

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use humhub\models\Setting;
use yii\helpers\Url;
$this->registerJsFile('@web/resources/admin/uploadLogo.js');
?>
<div class="panel panel-default">
    <div
        class="panel-heading"><?php 
echo Yii::t('AdminModule.views_setting_design', '<strong>Design</strong> settings');
?>
</div>
    <div class="panel-body">

        <?php 
$form = CActiveForm::begin(['id' => 'authentication-settings-form', 'options' => ['enctype' => 'multipart/form-data']]);
?>

        <?php 
echo $form->errorSummary($model);
?>
<br>

        <div class="form-group">
            <?php 
echo $form->labelEx($model, 'theme');
?>
            <?php 
echo $form->dropDownList($model, 'theme', $themes, array('class' => 'form-control'));
?>
        </div>
开发者ID:alefernie,项目名称:intranet,代码行数:31,代码来源:design.php

示例8: array

<?php

use humhub\compat\CActiveForm;
?>
<div class="text text-center animated fadeIn">
    <?php 
echo Yii::t('base', "Choose language:");
?>
 &nbsp;
    <div class="langSwitcher">
        <?php 
$form = CActiveForm::begin(['id' => 'choose-language-form']);
?>
        <?php 
echo $form->dropDownList($model, 'language', $languages, array('onChange' => 'this.form.submit()'));
?>
        <?php 
CActiveForm::end();
?>
    </div>
</div>
开发者ID:SimonBaeumer,项目名称:humhub,代码行数:21,代码来源:languageChooser.php

示例9:

<?php

use humhub\compat\CActiveForm;
use yii\helpers\Url;
?>

<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = CActiveForm::begin(['id' => 'profile-crop-image-form']);
?>
        <?php 
echo $form->errorSummary($model);
?>
        <?php 
echo $form->hiddenField($model, 'cropX', ['id' => 'cropX']);
?>
        <?php 
echo $form->hiddenField($model, 'cropY', ['id' => 'cropY']);
?>
        <?php 
echo $form->hiddenField($model, 'cropW', ['id' => 'cropW']);
?>
        <?php 
echo $form->hiddenField($model, 'cropH', ['id' => 'cropH']);
?>

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
开发者ID:ArneVanDaele,项目名称:humhub,代码行数:31,代码来源:cropProfileImage.php

示例10: array

             style="max-width: 300px; margin: 0 auto 20px; text-align: left;">

            <div class="panel-heading"><?php 
    echo Yii::t('UserModule.views_auth_login', '<strong>Sign</strong> up');
    ?>
</div>

            <div class="panel-body">

                <p><?php 
    echo Yii::t('UserModule.views_auth_login', "Don't have an account? Join the network by entering your e-mail address.");
    ?>
</p>

                <?php 
    $form = CActiveForm::begin(['id' => 'account-register-form']);
    ?>

                <div class="form-group">
                    <?php 
    echo $form->textField($registerModel, 'email', array('class' => 'form-control', 'id' => 'register-email', 'placeholder' => Yii::t('UserModule.views_auth_login', 'email')));
    ?>
                    <?php 
    echo $form->error($registerModel, 'email');
    ?>
                </div>
                <hr>
                <?php 
    echo CHtml::submitButton(Yii::t('UserModule.views_auth_login', 'Register'), array('class' => 'btn btn-primary'));
    ?>
开发者ID:alefernie,项目名称:intranet,代码行数:30,代码来源:login.php

示例11:

<?php

use humhub\compat\CActiveForm;
use yii\helpers\Url;
?>
<div class="modal-dialog modal-dialog-small animated fadeIn">
    <div class="modal-content">
        <?php 
$form = CActiveForm::begin([]);
?>
        <?php 
echo $form->hiddenField($model, 'cropX', ['id' => 'cropX']);
?>
        <?php 
echo $form->hiddenField($model, 'cropY', ['id' => 'cropY']);
?>
        <?php 
echo $form->hiddenField($model, 'cropW', ['id' => 'cropW']);
?>
        <?php 
echo $form->hiddenField($model, 'cropH', ['id' => 'cropH']);
?>

        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title"
                id="myModalLabel"><?php 
echo Yii::t('UserModule.views_profile_cropBannerImage', '<strong>Modify</strong> your title image');
?>
</h4>
        </div>
开发者ID:ArneVanDaele,项目名称:humhub,代码行数:31,代码来源:cropBannerImage.php

示例12: array

    } else {
        ?>
                <div
                    class="success"><?php 
        echo Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: OK! ({userCount} Users)', array('{userCount}' => $userCount));
        ?>
</div>
                <?php 
    }
    ?>
            <?php 
}
?>

        <?php 
$form = CActiveForm::begin(['id' => 'authentication-settings-form']);
?>


        <?php 
echo $form->errorSummary($model);
?>

        <div class="form-group">
            <div class="checkbox">
                <label>
                    <?php 
echo $form->checkBox($model, 'enabled', array('readonly' => Setting::IsFixed('enabled', 'authentication_ldap')));
?>
 <?php 
echo $model->getAttributeLabel('enabled');
开发者ID:honestgorillas,项目名称:humhub,代码行数:31,代码来源:authentication_ldap.php

示例13:

<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use yii\helpers\Url;
?>
<div class="content_edit" id="post_edit_<?php 
echo $post->id;
?>
">
    <?php 
$form = CActiveForm::begin(['id' => 'post-edit-form_' + $post->id]);
?>
    
    <!-- create contenteditable div for HEditorWidget to place the data -->
    <div id="post_input_<?php 
echo $post->id;
?>
_contenteditable" class="form-control atwho-input"
         contenteditable="true"><?php 
echo \humhub\widgets\RichText::widget(['text' => $post->message, 'edit' => true]);
?>
</div>

    <?php 
echo $form->field($post, 'message')->label(false)->textArea(array('class' => 'form-control', 'id' => 'post_input_' . $post->id, 'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...')));
?>

    <?php 
echo \humhub\widgets\RichTextEditor::widget(['id' => 'post_input_' . $post->id, 'inputContent' => $post->message, 'record' => $post]);
?>
开发者ID:weison-tech,项目名称:humhub,代码行数:31,代码来源:edit.php


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