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


PHP Alert::begin方法代码示例

本文整理汇总了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>',
开发者ID:jplagahit,项目名称:brdsdev,代码行数:31,代码来源:change-password.php

示例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 
开发者ID:Liv1020,项目名称:cms,代码行数:31,代码来源:catalog.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>',
        ]
开发者ID:jplagahit,项目名称:brdsdev,代码行数:31,代码来源:create-to.php

示例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 
开发者ID:skeeks-cms,项目名称:cms-module-reviews2,代码行数:31,代码来源:_form.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 'Бронирование под профилем автопроката не доступно, пожалуйста выполните &nbsp;<em>' . Html::a('выход', [Module::URL_ROUTE_LOGOUT], ['data-method' => 'post']) . '</em> из аккаунта';
    } else {
        echo 'Указанный Вами номер телефона уже зарегистрирован в системе, пожалуйста выполните&nbsp;<em>' . Html::a('вход', [Module::URL_ROUTE_LOGIN]) . '</em>';
    }
    Alert::end();
}
?>
        <?php 
ActiveForm::end();
?>

    </div>
</div>
</div>
开发者ID:HejVkt,项目名称:auto.only3.ru,代码行数:31,代码来源:_reserve-step1.php

示例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);
    }
开发者ID:pavlinter,项目名称:yii2-adm-oplata,代码行数:31,代码来源:send.php

示例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']);
开发者ID:HejVkt,项目名称:auto.only3.ru,代码行数:31,代码来源:_reserve-step2.php

示例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']);
?>

开发者ID:tsyrya,项目名称:mybriop,代码行数:13,代码来源:cannot-delete.php

示例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 
}
?>
开发者ID:shubnikofff,项目名称:teleport,代码行数:30,代码来源:participantsError.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(); ?>
开发者ID:skeeks-cms,项目名称:cms,代码行数:31,代码来源:change-trees-form.php

示例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();
开发者ID:rhosocial,项目名称:rho.social,代码行数:20,代码来源:notification-alert.php


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