本文整理汇总了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">×</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
示例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>
示例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>
示例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]);
?>
示例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">×</button>
<h4 class="modal-title"
id="myModalLabel"><?php
echo Yii::t('UserModule.views_profile_cropBannerImage', '<strong>Modify</strong> your title image');
示例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.')));
示例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>
示例8: array
<?php
use humhub\compat\CActiveForm;
?>
<div class="text text-center animated fadeIn">
<?php
echo Yii::t('base', "Choose language:");
?>
<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>
示例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">×</button>
<h4 class="modal-title"
id="myModalLabel"><?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'));
?>
示例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">×</button>
<h4 class="modal-title"
id="myModalLabel"><?php
echo Yii::t('UserModule.views_profile_cropBannerImage', '<strong>Modify</strong> your title image');
?>
</h4>
</div>
示例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');
示例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]);
?>