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


PHP ActiveForm::Begin方法代码示例

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


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

示例1: function

use yii\widgets\DetailView;
use yii\grid\GridView;
use common\models\ExceptionalSecurity;
use yii\widgets\ActiveForm;
use kartik\widgets\Select2;
use kartik\widgets\DatePicker;
?>
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
		<h4 class="modal-title" id="myModalLabel">Include update</h4>
	</div>
	<?php 
$form = ActiveForm::Begin(['method' => 'post']);
?>
	<div class="modal-body">
		<ul>
			<?php 
echo $form->field($model, 'included')->label('Please change:')->radioList(Dict::$monitoringExceptionalSecurityInclude, ['item' => function ($index, $label, $name, $checked, $value) {
    $radio = Html::radio($name, $checked, ['value' => $value]);
    $label = Html::label($radio . $label);
    return Html::tag('div', $label, ['class' => 'radio col-xs-6']);
}]);
?>
		</ul>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
		<?php 
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:exceptional_security_included.php

示例2:

<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use common\models\AppTask;
use yii\widgets\ActiveForm;
// 生成 label 样式
$label_css = '';
$form = ActiveForm::Begin(['method' => 'post', 'action' => ['/task-sign/remind', 'id_app_task' => $model->id_app_task]]);
?>
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
		<h4 class="modal-title" id="myModalLabel">Remind</h4>
	</div>
	<div class="modal-body">
		<h4>
		Email has been send out!
		</h4>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
		<?php 
if ($this->context->AUTH == Dict::AUTH_OPERATE) {
    ?>
		<?php 
    echo Html::submitButton('Remind', ['class' => 'btn btn-primary']);
    ?>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:remind.php

示例3: function

	<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'layout' => '{items}{pager}', 'bootstrap' => false, 'containerOptions' => ['class' => 'application-table'], 'toolbar' => [['content' => !$isRead ? Html::a('<i class="glyphicon glyphicon-plus"></i>', Url::to(['/app-form/create-collateral', 'id_application' => $_GET['id_application']]), ['title' => 'Add Application', 'class' => 'btn btn-success']) : '' . ' ' . Html::a('<i class="glyphicon glyphicon-repeat"></i>', ['index'], ['data-pjax' => 0, 'class' => 'btn btn-default', 'title' => 'Reset Grid'])], '{export}', '{toggleData}'], 'panel' => ['heading' => 'Applications'], 'panelHeadingTemplate' => '<h3 class="panel-title">{heading}</h3><div class="clearfix"></div>', 'columns' => ['account_name_title', 'account_number', ['header' => 'Account Type', 'attribute' => 'is_trust_account', 'value' => function ($model) {
    return $model->is_trust_account ? 'Trust' : 'General';
}], ['class' => '\\common\\widgets\\ActionColumn', 'width' => '20%', 'header' => 'Action', 'template' => !$isRead ? '{view}{update}{delete}' : '{view}', 'buttons' => ['update' => function ($url, $model, $key) {
    $options = ['class' => 'btn btn-light btn-icon', 'title' => Yii::t('yii', 'Update'), 'aria-label' => Yii::t('yii', 'Update'), 'data-pjax' => '0'];
    return Html::a('<span class="glyphicon">&#xe61f;</span>', Url::to(['update-collateral', 'id_app_form_collateral_account' => $model->id_app_form_collateral_account]), $options);
}, 'delete' => function ($url, $model, $key) {
    $options = ['class' => 'btn btn-light btn-icon', 'title' => Yii::t('yii', 'Delete'), 'aria-label' => Yii::t('yii', 'Delete'), 'data-confirm' => Yii::t('yii', 'Are you sure you want to delete this item?'), 'data-method' => 'post', 'data-pjax' => '0'];
    return Html::a('<span class="glyphicon">&#xe61e;</span>', Url::to(['delete-collateral', 'id' => $model->id_app_form_collateral_account]), $options);
}], 'detailViewAttributes' => function ($model, $key) {
    return ['id_app_form_collateral_account', 'id_application', 'id_collateral_account_type', 'account_name_title', 'registration', 'custodian', 'account_number', 'has_regular_distribution', 'regular_distribution_amount', 'payee', 'is_trust_account', 'is_revocable', 'trust_name', 'names_of_trustees', 'tax_id_type', 'tax_id', 'address_street', 'address_city', 'address_state_where_organized'];
}]]]);
if (!$isRead) {
    ?>
                        <?php 
    $form = ActiveForm::Begin();
    ?>

<?php 
    echo $this->render('_collateral_form', ['model' => $model, 'form' => $form]);
    ?>
                        <?php 
    ActiveForm::end();
    ?>
                        <?php 
}
?>



                                    </div>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:collateral_information.php

示例4:

<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
		<span aria-hidden="true"><?php 
echo Yii::t('app', '×');
?>
</span>
		</button>
		<h4 class="modal-title" id="myModalLabel"><?php 
echo Yii::t('app', 'Add File');
?>
</h4>
	</div>
	<div class="modal-body">
		<?php 
$form = ActiveForm::Begin(['method' => 'post', 'id' => 'upload_file', 'options' => ['enctype' => 'multipart/form-data'], 'action' => ['/task-sign/wet-sign', 'id_app_task' => $id_app_task, 'type' => DictDocument::TYPE_APPLICATION_FORM]]);
?>
		<div class="drop-file">
			<p class="text-align-c margin-top-42"><span class="fa fa-plus"></span></p>
			<div class="text-align-c padding-bottom-72">
			<!--                                             Drop files here <br>or <br> -->
			<div class="col-sm-6 col-sm-offset-3 ">
			<!-- 									        <span class="btn btn-success fileinput-button"> -->
			<!-- 									            <i class="glyphicon glyphicon-plus"></i> -->
			<!-- 									            <span>Select files...</span> -->
			<!-- 									            <input type="file" name="files"> -->
			<!-- 									        </span>       -->
				<?php 
echo $form->field($WetSignForm, 'wet_sign_path')->fileInput(['class' => 'btn btn-success fileinput-button'])->label('');
?>
				<div><?php 
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:upload_websigned_form.php

示例5: AppDocument

use yii\helpers\Url;
use common\models\Application;
use common\models\AppUser;
use common\models\AppDocument;
use common\models\user\UserRole;
use yii\widgets\ActiveForm;
$model = Application::findOne($id_application);
$users = $model->users;
$user = Yii::$app->user->getIdentity()->id;
$user_role = Yii::$app->user->getIdentity()->id_user_role;
$UploadModel = new AppDocument();
// $documents = AppDocument::find()->andWhere(['id_application' => $id_application])->groupBy(['id_document_type'])->all();
$roles = [Dict::USER_ROLE_BETTERDEBT => 'Loan Officer', Dict::USER_ROLE_ADVISOR => 'Advisor', Dict::USER_ROLE_CLIENT => 'Client'];
$actives = $model->actives;
rsort($actives);
$form = ActiveForm::Begin(['options' => ['enctype' => 'multipart/form-data'], 'method' => 'post', 'action' => ['/documents/index', 'id_application' => $model->id_application], 'id' => 'asd_111']);
?>
<div class="layout mb20">
	<div class="" id="myCollapsible" role="tablist" aria-multiselectable="true">
		<div class="panel panel-default">
		<div class="panel-heading layout-your-list pl30 por" role="tab" id="headingNo1">
			<h4 class="panel-title">
			<a class="collapsed fwb panel-text fs18" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseNo1" aria-expanded="false" aria-controls="collapseNo1"> Documents </a>
			</h4>
			<i class="caret add-subtract-ico"></i>
		</div>


		<div id="collapseNo1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingNo1">
			<div class="panel-body in-table">
	            <dl>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:_documents.php

示例6: function

$task_owner = DictTask::$taskOwner;
unset($task_owner[DictTask::OWNER_NULL]);
unset($task_owner[$model->owner_type]);
?>
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
		<h4 class="modal-title" id="myModalLabel">Assign <?php 
echo $model->name;
?>
 To?</h4>
	</div>
	<?php 
$form = ActiveForm::Begin(['method' => 'post', 'action' => ['/task/assign-to', 'id_app_task' => $model->id_app_task], 'id' => 'assign_to_001']);
?>
	<div class="modal-body">
		<?php 
echo $form->field($assignTo, 'owner_type')->label('Assign ' . $model->name . ' to:')->radioList($task_owner, ['item' => function ($index, $label, $name, $checked, $value) {
    $radio = Html::radio($name, $checked, ['value' => $value]);
    $label = Html::label($radio . $label);
    return Html::tag('div', $label, ['class' => 'radio col-xs-6']);
}]);
?>
		<br />
	</div>
	<div class="modal-footer">
		<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
		<?php 
if ($this->context->AUTH == Dict::AUTH_OPERATE) {
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:assign_to.php

示例7:

    $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Applications'), 'url' => ['/application/index']];
    $this->params['breadcrumbs'][] = ['label' => Yii::t('app', Application::findOne($this->context->actionParams['id_application'])->application_name), 'url' => ['/application/view', 'id' => $this->context->actionParams['id_application']]];
    $this->params['breadcrumbs'][] = $this->title;
}
$isRead = $this->context->AUTH == Dict::AUTH_READ;
?>

<section class="content-wrap">
             <div class="container">
                 <?php 
echo $this->render('_header_tab', ['id_application' => $this->context->actionParams['id_application']]);
?>
<div class="row pt50">
                     <main class="col-md-9 main-content">
                        <?php 
$form = ActiveForm::Begin([]);
?>
                           <div class="frame">
                                <div>
                                  <!-- Nav tabs -->
                                  <ul class="nav nav-tabs" role="tablist">
                                    <li role="presentation" class="active"><a id="app" href="#home" aria-controls="home" role="tab" data-toggle="tab" aria-expanded="true">Applicant</a></li>
                                    <?php 
if ($coAppModel) {
    ?>
                                    <li role="presentation" class=""><a id="co" href="#profile" aria-controls="profile" role="tab" data-toggle="tab" aria-expanded="false">Co-applicant</a></li>
                                    <?php 
}
?>
                                  </ul>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:30,代码来源:financial_info.php

示例8:

        $btn = 'Confirm';
        break;
    case 2:
        $mag = 'Do you have access to all collateral accounts?';
        $btn = 'Yes';
        break;
    case 3:
        $mag = 'Is applicant qualified?';
        $btn = 'Yes';
        break;
    case 4:
        $mag = 'Has the Line of Credit been set up?';
        $btn = 'Yes';
        break;
}
$form = ActiveForm::Begin(['method' => 'post', 'action' => ['/task/check-point', 'id_app_task_checkpoint' => $model->id_app_task_checkpoint]]);
?>
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
		<h4 class="modal-title" id="myModalLabel"><?php 
echo $model->name;
?>
</h4>
	</div>
	<div class="modal-body">
		<?php 
echo $mag;
?>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:check_point.php

示例9:

echo $label_css;
?>
">
						<?php 
echo DictTask::$taskStatus[$model->status];
?>
					</span>
				</h2>
				<p class="color-ba">If you have wet-signed application, upload here."E-Sign" will send out requests for only automatically generated documents, and will not include wet-signed documents. </p>
			</div>
		</div>


<div class="layout  mt23">
	<?php 
$form = ActiveForm::Begin(['options' => ['enctype' => 'multipart/form-data'], 'method' => 'post', 'action' => ['/task-agreements/upload-web-signed', 'id_app_task' => $model->id_app_task]]);
?>
	<div class="panel panel-default">
		<div class="panel-heading pl30 layout-your-list por" role="tab" id="headingEleven">
			<h4 class="panel-title">
			<a class="collapsed fwb panel-text fs18" role="button" data-toggle="collapse" data-parent="#accordion" href="#form" aria-expanded="false" aria-controls="collapseEleven"> Line of Credit and Security Agreement </a>
			</h4>
			<i class="caret add-subtract-ico"></i>
		</div>

		<div aria-labelledby="types" role="tabpanel" class="panel-collapse collapse in" id="form">
			<div class="panel-body">
				<div class="col-md-7 mt20 mb20">
					<ul>
						<li class="mb10">
							<?php 
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:index.php

示例10:

            $readonly = true;
        }
    } else {
        $readonly = true;
    }
} else {
    $readonly = false;
}
?>

<section class="content-wrap">
	<div class="container">
		<div class="row pt50">
			<div class="col-md-9 main-content">
				<?php 
$form = ActiveForm::Begin(['enableAjaxValidation' => true]);
?>
				<div class="frame"><div>
				<ul class="nav nav-tabs" role="tablist">
					<li role="presentation" class="active"><a href="<?php 
echo Yii::$app->homeUrl;
?>
client/create" aria-controls="home" role="tab" data-toggle="tab" aria-expanded="true"><?php 
if ($model->isNewRecord) {
    ?>
Create Client<?php 
} else {
    ?>
Profile<?php 
}
?>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:_form.php

示例11:

$label_css = '';
switch ($model->status) {
    case 1:
        $label_css = 'label-default';
        break;
    case 2:
        $label_css = 'label-warning';
        break;
    case 3:
        $label_css = 'label-success';
        break;
}
?>

<?php 
$form = ActiveForm::Begin(['method' => 'post', 'action' => ['/app-form/submit-esign', 'id_app_task' => $model->id_app_task]]);
?>

<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
		<h4 class="modal-title" id="myModalLabel"><?php 
echo $model->name;
?>
</h4>
	</div>
	<div class="modal-body">
		<h4>Are you sure you want to submit the Application Form?</h4>
开发者ID:ailingsen,项目名称:betterdebt,代码行数:30,代码来源:submit_esign.php

示例12:

<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use common\models\AppOwnerTask;
use yii\widgets\ActiveForm;
// 生成 label 样式
$label_css = '';
$form = ActiveForm::Begin(['method' => 'post', 'action' => ['/application/change', 'id_user' => $id_user, 'id_application' => $id_application, 'id_user_role' => $id_user_role]]);
?>
<div class="modal-content">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal" aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
		<h4 class="modal-title" id="myModalLabel">Set as Primary</h4>
		<input type="hidden" value="<?php 
echo $id_user;
?>
" name="id_user">
		<input type="hidden" value="<?php 
echo $id_application;
?>
" name="id_application">
		<input type="hidden" value="<?php 
echo $id_user_role;
?>
" name="id_user_role">
	</div>
	<div class="modal-body">
开发者ID:ailingsen,项目名称:betterdebt,代码行数:31,代码来源:change_primary.php


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