本文整理汇总了PHP中yii\bootstrap\Alert::begin方法的典型用法代码示例。如果您正苦于以下问题:PHP Alert::begin方法的具体用法?PHP Alert::begin怎么用?PHP Alert::begin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\bootstrap\Alert
的用法示例。
在下文中一共展示了Alert::begin方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: beforeValidate
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap\Alert;
$this->title = 'Change Password';
?>
<div id="main-content">
<div class="change-password">
<div class="wrapper-150">
<h1 class="page-title">Change Password</h1>
<?php
if ($success) {
Alert::begin([
'options' => [
'class' => 'alert-success',
],
]);
echo 'Password changed successfully.';
Alert::end();
}
?>
<div class="one-column help-bg-gray pdt-one-column" >
<?php
$js = 'function beforeValidate(form) {if ( form.data("cancel") {this.validateOnSubmit = false;this.beforeValidate = "";form.submit();return false;}return true;}';
$form = ActiveForm::begin([
'options' => ['class' => 'form-horizontal'],
'fieldConfig' => [
'template' => '<div class="control-group">{label}<div class="f-inline-size">{input}</div><div class=\"col-lg-8\">{error}</div></div>',
示例2:
<?php
} else {
?>
<?php
echo \Yii::t('app', 'The extension is not found');
?>
<?php
}
?>
</div>
<?php
} else {
?>
<?php
\yii\bootstrap\Alert::begin(['options' => ['class' => 'alert-info']]);
?>
<p><?php
echo \Yii::t('app', 'You can choose the suitable solution for your project and install it.');
?>
</p>
<p><?php
echo \Yii::t('app', 'Future versions will be integrated {market} here. For now, simply click the link below.', ['market' => \Yii::t('app', 'Marketplace')]);
?>
</p>
<?php
\yii\bootstrap\Alert::end();
?>
<div class="sx-marketplace">
<a href="http://marketplace.cms.skeeks.com/" target="_blank">Marketplace.CMS.SkeekS.com</a> — <?php
示例3: beforeValidate
Alert::begin([
'options' => [
'class' => 'alert-success',
],
]);
echo $rejectFlag['success'];
Alert::end();
}
if (isset($rejectFlag['error'])) {
Alert::begin([
'options' => [
'class' => 'alert-error',
],
]);
echo $rejectFlag['error'];
Alert::end();
}
?>
</p>
<?php
$js = 'function beforeValidate(form) {if ( form.data("cancel") {this.validateOnSubmit = false;this.beforeValidate = "";form.submit();return false;}return true;}';
$form = ActiveForm::begin([
'fieldConfig' => [
'template' => '<div class="control-group">{label}<div class="f-full-size">{input}</div><div class=\"col-lg-8\">{error}</div></div>',
]
示例4:
),
'multiple' => true
]
); */?>
<?php
echo $form->fieldSetEnd();
?>
<?php
echo $form->fieldSet(\Yii::t('skeeks/reviews2', 'Access'));
?>
<? \yii\bootstrap\Alert::begin([
'options' => [
'class' => 'alert-warning',
],
]); ?>
<b><?php
echo \Yii::t('skeeks/reviews2', 'Attention!');
?>
</b> <?php
echo \Yii::t('skeeks/reviews2', 'Permissions are stored in real time. Thus, these settings are independent of site or user.');
?>
<? \yii\bootstrap\Alert::end()?>
<?php
echo \skeeks\cms\widgets\rbac\PermissionForRoles::widget(['permissionName' => \skeeks\cms\reviews2\components\Reviews2Component::PERMISSION_ADD_REVIEW, 'label' => \Yii::t('skeeks/reviews2', 'Who can add a review on the site')]);
?>
<?php
示例5:
?>
<?php
//= $form->field($rentModel, 'comment', ['template'=>'{input}'])->textarea(['rows' => 2, 'placeholder'=> 'Комментарий'])
?>
<?php
echo Html::submitButton('Бронировать', ['id' => 'reserveButton', 'class' => 'bty']);
?>
</div>
</div>
<div style="clear:both;"></div>
<?php
if (isset($errors['registration-error'])) {
Alert::begin(['options' => ['class' => 'alert-warning']]);
if ($errors['registration-error'][0] == 2) {
echo 'Бронирование под профилем автопроката не доступно, пожалуйста выполните <em>' . Html::a('выход', [Module::URL_ROUTE_LOGOUT], ['data-method' => 'post']) . '</em> из аккаунта';
} else {
echo 'Указанный Вами номер телефона уже зарегистрирован в системе, пожалуйста выполните <em>' . Html::a('вход', [Module::URL_ROUTE_LOGIN]) . '</em>';
}
Alert::end();
}
?>
<?php
ActiveForm::end();
?>
</div>
</div>
</div>
示例6: foreach
?>
<?php
echo Module::t('', "This {startLink}order{endLink} has already been paid!", ['dot' => true, 'startLink' => Html::beginTag('a', ['href' => Url::to(['default/invoice', 'alias' => $model->alias])]), 'endLink' => Html::endTag('a')]);
?>
<?php
Alert::end();
?>
<?php
} else {
?>
<?php
Alert::begin(['closeButton' => false, 'options' => ['class' => 'alert-info']]);
?>
<?php
echo Module::t('', "Wait please!");
?>
<?php
Alert::end();
?>
<?php
$form = ActiveForm::begin(['id' => 'returnform', 'action' => Yii::$app->oplata->url]);
?>
<?php
foreach ($request as $name => $value) {
echo Html::hiddenInput($name, $value);
}
示例7: date
?>
<div class="form-group">
<?php
echo Html::submitButton('изменить', ['class' => 'btn-save']);
?>
</div>
</div>
<?php
$passwordForm::end();
Alert::end();
}
?>
<?php
$form = ActiveForm::begin(['enableClientValidation' => false, 'validateOnSubmit' => false, 'validateOnBlur' => false, 'options' => ['enctype' => 'multipart/form-data']]);
Alert::begin(['options' => ['class' => 'alert-info']]);
echo 'Ваша заявка на аренду:
<br/>Автомобиль: <strong>' . $systemModel->name . ',' . $systemModel->year . '</strong>
<br/>Период аренды:
с <strong>' . date("d.m.Y H:i", strtotime($rentModel->rent_from)) . '</strong>
по <strong>' . date("d.m.Y H:i", strtotime($rentModel->rent_to)) . '</strong>
<br/>Телефон: <strong>' . $prepareModel->phone . '</strong>
<br/><br/>Была успешно отправлена, с Вами скоро свяжется наш менеджер.
<br/>В случае ошибки Вы можете ' . Html::a("отменить аренду", ["cars/cancel-reserve", "id" => $rentModel->id], ["data-method" => "post", "data-confirm" => "Вы действительно хотите отменить аренду?"]) . '
<br/><br/>Для ускорения оформления аренды автопрокатом, заполните форму и загрузите фотографии документов:';
Alert::end();
?>
<?php
echo Html::beginTag('div', ['class' => 'photosBox']);
示例8:
<?php
use yii\bootstrap\Alert;
use yii\helpers\Html;
use yii\helpers\Url;
Alert::begin(['options' => ['class' => 'alert-warning', 'closeButton' => false]]);
?>
Действие откланено.
<br>Удалить невозможно, т.к. эту должность вы указали при записи на курсы.
<?php
Alert::end();
echo Html::a('Ok', Url::to(Yii::$app->request->referrer), ['class' => 'btn btn-default']);
?>
示例9:
<?php
/**
* teleport
* Created: 12.11.15 16:07
* @copyright Copyright (c) 2015 OSKR NIAEP
*/
use yii\bootstrap\Alert;
/**
* @var $model \common\models\vks\Request
*/
Alert::begin(['options' => ['class' => 'alert-danger']]);
?>
<p>Мы не можем подобрать для Вас список участников, так как некоторые поля указаны неверно:</p>
<ul>
<?php
foreach ($model->firstErrors as $error) {
?>
<li><?php
echo $error;
?>
</li>
<?php
}
?>
示例10: linked
?>
<?php
echo \yii\helpers\Html::checkbox('removeCurrent', false);
?>
<label><?php
echo \Yii::t('skeeks/cms', 'Get rid of the already linked (in this case, the selected records bind only to the selected section)');
?>
</label>
<?php
echo $form->buttonsStandart($model, ['save']);
?>
<? \skeeks\cms\modules\admin\widgets\ActiveForm::end(); ?>
<? \yii\bootstrap\Alert::begin([
'options' => [
'class' => 'alert-info',
'style' => 'margin-top: 20px;',
],
])?>
<p><?php
echo \Yii::t('skeeks/cms', 'You can specify some additional sections that will show your records.');
?>
</p>
<p><?php
echo \Yii::t('skeeks/cms', 'This does not affect the final address of the page, and hence safe.');
?>
</p>
<? \yii\bootstrap\Alert::end(); ?>
示例11:
<?php
/**
* _ __ __ _____ _____ ___ ____ _____
* | | / // // ___//_ _// || __||_ _|
* | |/ // /(__ ) / / / /| || | | |
* |___//_//____/ /_/ /_/ |_||_| |_|
* @link http://vistart.name/
* @copyright Copyright (c) 2016 vistart
* @license http://vistart.name/license/
*/
use yii\bootstrap\Alert;
Alert::begin(['options' => ['class' => $class]]);
?>
<strong><?php
echo $title;
?>
</strong> <?php
echo $content;
Alert::end();