/** * Поле выбора даты * @return string * @throws \Exception */ public function date() { if ($this->model->getIsNewRecord()) { $this->model->{$this->attribute} = time(); } $this->model->{$this->attribute} = date('d.m.Y', $this->model->{$this->attribute}); return $this->widget(DatePicker::className(), ['model' => $this->model, 'attribute' => $this->attribute, 'clientOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]); }
protected function renderFilterCellContent() { return DatePicker::widget([ 'model' => $this->grid->filterModel, 'attribute' => $this->dateColumn, 'template' => '{addon}{input}', 'clientOptions' => [ 'autoclose' => true, 'format' => 'yyyy-mm-dd', 'disableEntry'=>true, ], 'options' => [ 'data-pjax' => '0', ] ]); }
/** * @inheritdoc */ public function init() { parent::init(); if (!in_array($this->mode, array('date', 'time', 'datetime'))) { throw new InvalidConfigException('Unknown mode: "' . $this->mode . '". Use time, datetime or date!'); } if ($this->inline && !isset($this->containerOptions['id'])) { $this->containerOptions['id'] = $this->options['id'] . '-container'; } if ($this->size) { Html::addCssClass($this->options, 'input-' . $this->size); Html::addCssClass($this->containerOptions, 'input-group-' . $this->size); } if ($this->language === null && ($language = Yii::$app->language) !== 'en-US') { $this->language = substr($language, 0, 2); } Html::addCssClass($this->options, 'form-control'); Html::addCssClass($this->containerOptions, 'input-group ' . $this->mode); }
$this->title = 'Customer Records'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="customer-record-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <p> <?php if (Yii::$app->user->can('manager')) { ?> <?php echo Html::a('Create Customer Record', ['create'], ['class' => 'btn btn-success']); ?> <?php } ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'name', ['attribute' => 'birth_date', 'format' => ['date', 'dd-MMMM-Y'], 'options' => ['style' => 'width:240px'], 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'birth_date', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['attribute' => 'phones.number'], ['class' => 'yii\\grid\\ActionColumn', 'header' => 'Actions', 'template' => Yii::$app->user->can('manager') ? '{view} {update} {delete}' : '{view}']]]); ?> </div>
?> <?php echo $form->field($model, 'company_name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'company_email')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'company_address')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'company_start_date')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'file')->fileInput(); ?> <?php echo $form->field($model, 'company_status')->dropDownList(['active' => 'Active', 'inactive' => 'Inactive'], ['prompt' => '- Status -']); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
?> <?php echo $form->field($model, 'numPeriodo')->textInput(['style' => 'width:130px']); ?> <?php echo $form->field($model, 'anoPeriodo')->textInput(['style' => 'width:130px']); ?> <?php echo $form->field($model, 'dataInicioPeriodo')->widget(DatePicker::className(), ['inline' => false, 'language' => 'pt', 'template' => '{addon}{input}', 'options' => ['style' => 'width:130px'], 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'dataFimPeriodo')->widget(DatePicker::className(), ['inline' => false, 'language' => 'pt', 'template' => '{addon}{input}', 'options' => ['style' => 'width:130px'], 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'usaLaboratorio')->checkbox(); ?> <?php echo $form->field($model, 'qtdVagas')->textInput(['style' => 'width:130px']); ?> <?php echo $form->field($model, 'qtdMonitorBolsista')->textInput(['style' => 'width:130px']); ?> <?php
'labelField' => 'fullName', 'searchField' => ['fullName'], ], ]);*/ ?> <?php echo $form->field($model, 'series')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'num')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'date')->widget(\dosamigos\datepicker\DatePicker::className(), ['language' => 'ru', 'options' => ['class' => 'form-control', 'autocomplete' => 'off'], 'clientOptions' => ['forceParse' => true, 'todayBtn' => true, 'clearBtn' => true, 'autoclose' => true, 'todayHighlight' => true, 'format' => 'dd.mm.yyyy']]); ?> <?php echo $form->field($model, 'duration_months')->textInput(); ?> <?php echo $form->field($model, 'duration_days')->textInput(); ?> <?php echo $form->field($model, 'who_give')->widget(\dosamigos\selectize\SelectizeDropDownList::className(), ['items' => \yii\helpers\ArrayHelper::map(\app\models\DocMigration::find()->select(['who_give'])->active()->distinct()->orderBy('who_give asc')->asArray()->all(), 'who_give', 'who_give'), 'options' => ['multiple' => false, 'class' => 'form-control', 'prompt' => ''], 'clientOptions' => ['selectOnTab' => true, 'openOnFocus' => false, 'persist' => false, 'maxItems' => 1, 'create' => true, 'valueField' => 'who_give', 'labelField' => 'who_give', 'searchField' => ['who_give']]]); ?> <?php
<?= $form->field($model, 'allowance_amount')->textInput() ?> <?= $form->field($model, 'allowance_remark')->textInput(['maxlength' => true]) ?> <?= $form->field($model,'allowance_school_id')->widget(Select2::classname(), [ 'data'=>ArrayHelper::map(Schools::find()->all(), 'School_id','school_name'), 'language'=>'en', 'options'=>['placeholder'=>'Select School Name'], 'pluginOptions'=>['allowClear'=>true], ]) ?> <?= $form->field($model, 'allowance_payStatus')->dropDownList([ 'paid' => 'Paid', 'not paid' => 'Not paid', ], ['prompt' => 'Select Payment Status']) ?> <?= $form->field($model, 'allowance_paidDate')->widget( DatePicker::className(), [ // inline too, not bad 'inline' => false, // modify template for custom rendering // 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => [ 'autoclose' => true, 'format' => 'yyyy-mm-dd' ] ]);?> <div class="form-group"> <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> </div> <?php ActiveForm::end(); ?>
if ($profile->photo) { ?> <?php echo "<img width='100'src='http://wemamastest.ru.mastertest.ru/web/" . $profile->photo . "' />"; ?> <?php } ?> <?php echo $form->field($profile, 'file')->fileInput(); ?> <?php echo $form->field($profile, 'location'); ?> <?php echo $form->field($profile, 'birthday')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => false, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($profile, 'subscribe')->widget(CheckboxX::classname()); ?> <div class="form-group"> <div class="col-lg-offset-3 col-lg-9"> <?php echo Html::submitButton(Yii::t('user', 'Update'), ['class' => 'btn btn-block btn-success']); ?> </div> </div>
?> <?php echo $form->errorSummary([$model, $fileModel]); ?> <?php echo $form->field($model, 'author_id')->dropDownList(ArrayHelper::map(Authors::getAllAuthors(), 'id', 'name'), ['prompt' => Yii::t('app', 'Выберите автора')]); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'date_fabr')->widget(DatePicker::className(), ['language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy'], 'options' => ['placeholder' => '12/31/2014']]); ?> <?php if ($model->preview) { ?> <img src="<?php echo Image::thumb($model->preview, 240); ?> "> <a href="<?php echo Url::to(['/books/admin/clear-image', 'id' => $model->primaryKey]); ?> " class="text-danger confirm-delete" title="<?php echo Yii::t('app', 'Clear image'); ?>
<?php use yii\helpers\Html; use dosamigos\datepicker\DatePicker; /* @var $this yii\web\View */ /* @var $model app\models\Peso */ $this->title = 'Nuevo Peso'; $this->params['breadcrumbs'][] = ['label' => 'Pesos', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; echo DatePicker::widget(['model' => $model, 'attribute' => 'fecha', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <div class="peso-create"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php echo $this->render('_form', ['model' => $model]); ?> </div>
<?php echo $form->field($model, 'department_name')->textInput(['maxlength' => true]); ?> <!--<?php echo $form->field($model, 'department_create_data')->textInput(); ?> --> <?php echo $form->field($model, 'department_create_data')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'department_status')->dropDownList(['active' => 'Active', 'inactive' => 'Inactive'], ['prompt' => '']); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php ActiveForm::end(); ?>
}, 'attribute' => 'create_time'], ['class' => 'yii\\grid\\DataColumn', 'value' => function ($data) { if ($data->pay_time) { return date('Y-m-d H:i:s', $data->pay_time); // 如果是数组数据则为 $data['name'] ,例如,使用 SqlDataProvider 的情形。 } }, 'attribute' => 'pay_time', 'filter' => DatePicker::widget(['addon' => '', 'language' => 'zh-CN', 'name' => 'pay_time ', 'value' => Yii::$app->request->get('pay_time'), 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['class' => 'yii\\grid\\DataColumn', 'value' => function ($data) { if ($data->finish_time) { return $data->finish_time; // return Yii::$app->formatter->asDate($data->finish_time, 'yyyy-MM-dd'); // 如果是数组数据则为 $data['name'] ,例如,使用 SqlDataProvider 的情形。 } else { return '交易进行中'; } }, 'attribute' => 'finish_time'], 'address', ['class' => 'yii\\grid\\DataColumn', 'attribute' => 'gostatus', 'label' => '订单状态', 'value' => function ($model) { return \app\models\Gorder::get_gostatus1($model->gostatus); }, 'filter' => \app\models\Gorder::get_gostatus()], ['class' => 'yii\\grid\\ActionColumn', 'controller' => 'my', 'template' => '{view}', 'header' => '查看订单详情'], ['class' => 'yii\\grid\\ActionColumn', 'header' => '操作']]]); ?> <?php echo DatePicker::widget(['name' => '', 'value' => '', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> <script> // 用户可点击复选框来选择网格中的一些行。被选择的行可通过调用下面的JavaScript代码来获得: var keys = $('#grid').yiiGridView('getSelectedRows'); //为什么提示 $不存在 // keys 为一个由与被选行相关联的键组成的数组 </script>
echo $form->field($model, 'name')->label(false)->textInput(['maxwidth' => true, 'placeholder' => 'название книги']); ?> </div> </div> <div class="row"> <div class="col-lg-3"> Дата выход книги: <?php echo DatePicker::widget(['name' => 'BookSearch[from_date]', 'value' => null !== Yii::$app->request->get('BookSearch')['from_date'] ? Yii::$app->request->get('BookSearch')['from_date'] : '', 'template' => '{addon}{input}', 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy', 'todayHighlight' => true]]); ?> </div> <div class="col-lg-3"> до <?php echo DatePicker::widget(['name' => 'BookSearch[to_date]', 'value' => null !== Yii::$app->request->get('BookSearch')['to_date'] ? Yii::$app->request->get('BookSearch')['to_date'] : '', 'template' => '{addon}{input}', 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy', 'todayHighlight' => true]]); ?> </div> <div class="col-lg-4"> <div> </div> <div class="form-group"> <?php echo Html::submitButton('Найти', ['class' => 'btn btn-primary']); ?> <?php echo Html::a('Сброс', Url::to(['/book']), ['class' => 'btn btn-default']); ?> </div> </div> </div>
<?php echo $form->field($model, 'author')->textInput(['maxlength' => true]); ?> <?php echo \common\widgets\Plupload::widget(['model' => $model, 'attribute' => 'cover_img', 'url' => '/file/upload', 'path' => Yii::$app->request->hostInfo]); ?> <?php echo $form->field($model, 'status')->radioList([Article::STATUS_DISPLAY => '可用', Article::STATUS_HIDDEN => '禁用']); ?> <?php echo Html::activeLabel($model, 'publish_at'); ?> <?php echo DatePicker::widget(['model' => $model, 'attribute' => 'publish_at', 'template' => '{input} {addon}', 'language' => 'zh-CN', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'weekStart' => '1']]); ?> <?php if (Yii::$app->controller->action->id == 'create') { ?> <?php echo $form->field($model, 'tag')->textInput()->hint('多个标签用;隔开'); ?> <?php } else { ?> <?php echo Html::activeLabel($model, 'tag'); ?> <?php echo Html::activeTextInput($model, 'tag', ['value' => $tag, 'disabled' => true]);
<div > <label class="col-lg-2 control-label">Nouveau Bureau:</label> <?php echo $form->field($bureau, 'codebureau', ['horizontalCssClasses' => ['wrapper' => 'col-sm-3']])->dropDownList(ArrayHelper::map(Bureau::find()->asArray()->all(), 'codebureau', 'codebureau'), ['prompt' => '----------Choisir le bureau----------'])->label(false); ?> </div> <div> <label for="DateTrans" class="col-lg-2 control-label">Date de transfert:</label> <?php echo $form->field($trans, 'dt')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']])->label(false); ?> </div> <div > <label for="motif" class="col-lg-2 control-label">Motif du transfert:</label> <?php echo $form->field($trans, 'motif')->textarea()->label(false); ?> </div>
</div> <div class="col-lg-3"> <?php echo $form->field($searchModel, 'name')->textInput(); ?> </div> </div> <div class="col-lg-12"> <div class="col-lg-3"> <?php echo $form->field($searchModel, 'dateFrom')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']]); ?> </div> <div class="col-lg-3"> <?php echo $form->field($searchModel, 'dateTo')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']]); ?> </div> <div class="col-lg-2"> <?php echo Html::submitButton('Поиск', ['class' => 'btn btn-success', 'style' => 'margin-top: 25px']); ?> </div> </div> <?php ActiveForm::end(); ?> <div class="site-index"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => null, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'name', ['attribute' => 'preview', 'format' => 'raw', 'value' => function ($model) {
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\widgets\Pjax; use yii\helpers\Url; use frontend\models\Project; use dosamigos\datepicker\DatePicker; /* @var $this yii\web\View */ /* @var $searchModel frontend\models\LogsSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ //$this->title = 'Project-Milestones'; //$this->params['breadcrumbs'][] = $this->title; ?> <div class="logs-index"> <?php $gridColumns = [['class' => 'yii\\grid\\SerialColumn'], 'logs_employee_name', 'milestone', ['attribute' => 'milestone_date', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'milestone_date', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])]]; ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => $gridColumns, 'responsive' => true, 'hover' => true]); ?> </div>
</div> <?php echo $form->field($model, 'date_set')->checkbox(); ?> <div id="date-set-control" class="<?php echo $model->date_set == '1' ? '' : 'hidden'; ?> "> <?php echo $form->field($model, 'start')->widget(DatePicker::className(), ['language' => 'pt', 'inline' => false, 'clientOptions' => ['autoclose' => true, 'todayBtn' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'end')->widget(DatePicker::className(), ['language' => 'pt', 'inline' => false, 'clientOptions' => ['autoclose' => true, 'todayBtn' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> <?php echo $form->field($model, 'status')->dropDownList(app\enum\TaskStatus::getList(), ['onchange' => 'statusChanged();']); ?> <div id="status-control" class="<?php echo $model->status == '0' ? 'hidden' : ''; ?> "> <?php echo $form->field($model, 'done')->widget(RangeInput::classname(), ['width' => '70%', 'html5Options' => ['min' => 0, 'max' => 100, 'step' => 1], 'addon' => ['append' => ['content' => '%']]]); ?>
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']); ?> <div class="form-search-left"> <?php echo $form->field($model, 'order')->dropDownList(['author_id' => 'By author', 'date' => 'By publish date', 'name' => 'By book name']); ?> <?php echo $form->field($model, 'start')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php echo $form->field($model, 'end')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> <div class="form-search-right"> <?php echo $form->field($model, 'name'); ?> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']); ?> <?php echo Html::resetButton('Reset', ['class' => 'btn btn-default']); ?> </div>
echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'username', 'label' => 'Mentee Name', 'format' => 'raw', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'value' => function ($data) { $url = Yii::$app->params['application_base'] . 'admin/user/' . $data->user_id; return Html::a($data->username, $url); }, 'headerOptions' => ['width' => '17%', 'style' => 'text-align:center']], ['attribute' => 'service', 'label' => 'Service Name', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'headerOptions' => ['width' => '16%', 'style' => 'text-align:center']], ['attribute' => 'mentorname', 'label' => 'Mentor Name', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'format' => 'raw', 'value' => function ($data) { $url = Yii::$app->params['application_base'] . 'admin/mentor/' . $data->mentor_id; return Html::a($data->mentorname, $url); }, 'headerOptions' => ['width' => '17%', 'style' => 'text-align:center']], ['attribute' => 'date', 'label' => 'Date', 'filterInputOptions' => ['class' => 'form-control', 'prompt' => 'Date'], 'value' => function ($data) { return date('Y-m-d', strtotime($data->date)); }, 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date', 'template' => '{input}{addon}', 'options' => ['placeholder' => 'Search'], 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-0m-dd']]), 'headerOptions' => ['width' => '15%', 'style' => 'text-align:center']], ['attribute' => 'time', 'label' => 'Time', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'format' => 'raw', 'value' => function ($data) { return date('h:i:s', strtotime($data->time)); }, 'headerOptions' => ['width' => '10%', 'style' => 'text-align:center']], ['attribute' => 'booking_hrs', 'label' => 'Hours', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'headerOptions' => ['width' => '10%', 'style' => 'text-align:center'], 'format' => 'raw'], ['attribute' => 'status', 'label' => 'Status', 'filterInputOptions' => ['class' => 'form-control', 'prompt' => 'All'], 'format' => 'raw', 'headerOptions' => ['width' => '10%', 'style' => 'text-align:center'], 'value' => function ($data) { if ($data->status == 'P') { return 'Pending'; } else { if ($data->status == 'A') { return 'Approved'; } else { if ($data->status == 'R') { return 'Rejected'; } else { if ($data->status == 'D') { return 'Due'; } else { if ($data->status == 'I') {
$form = ActiveForm::begin(); ?> <div class="col-lg-4"> <?php echo $form->field($affect, 'numAffectation')->textInput(); ?> </div> <div class="col-lg-4"> <?php echo $form->field($dat, 'dt')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']])->label("Date d'affectation"); ?> </div> <div class="col-lg-4"> <?php echo $form->field($bureau, 'codebureau', ['horizontalCssClasses' => ['wrapper' => 'col-sm-3']])->dropDownList(ArrayHelper::map(Bureau::find()->asArray()->all(), 'codebureau', 'codebureau'), ['prompt' => '----------Choisir le bureau----------']); ?> </div> <div class="col-lg-12"> <?php
<table id="meta"> <tr> <td class="meta-head">Purchase Order #</td> <td><textarea class="form-control" name="po_no"><?php echo $model->purchaseorder_no; ?> </textarea></td> <td hidden><textarea class="form-control" name="po_id"><?php echo $model->purchaseorder_id; ?> </textarea></td> </tr> <tr> <td class="meta-head">Date</td> <td><?php echo DatePicker::widget(['model' => $model, 'attribute' => 'purchaseorder_date', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'options' => ['class' => 'form-date', 'name' => 'po_date']]); ?> </td> </tr> <tr> <td class="meta-head">Amount Due</td> <td><div class="due">$0.00</div></td> </tr> </table> </td> </tr> </table> </div> <div style="clear:both"></br></div>
</div> <p class="help-block help-block-error clearfix"></p> </div> <div class="form-group field-adsearch-date_expired clearfix"> <?php echo Html::label($model->getAttributeLabel('date_expired'), null, ['class' => 'control-label col-sm-12 col-md-12 col-lg-12']); ?> <div class="col-sm-6 col-md-6 col-lg-6"> <?php echo DatePicker::widget(['model' => $model, 'attribute' => 'min_date_expired', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'options' => ['readonly' => 'readonly', 'placeholder' => $model->getAttributeLabel('min_date_expired')]]); ?> </div> <div class="col-sm-6 col-md-6 col-lg-6"> <?php echo DatePicker::widget(['model' => $model, 'attribute' => 'max_date_expired', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'options' => ['readonly' => 'readonly', 'placeholder' => $model->getAttributeLabel('max_date_expired')]]); ?> </div> <p class="help-block help-block-error clearfix"></p> </div> </div> <div class="clearfix"></div> <div class="form-grou"> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']); ?> <?php echo Html::a('Reset', '/admin/ads', ['class' => 'btn btn-default']); ?>
<div class="col col-sm-4"> <?php echo $form->field($model, 'name'); ?> </div> </div> <div class="row"> <div class="col col-sm-4"> <?php echo $form->field($model, 'date_published_from')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> <div class="col col-sm-4"> <?php echo $form->field($model, 'date_published_to')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> </div> <div class="col col-sm-4"> <div> </div> <div class="form-group"> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary', 'id' => 'search']); ?> <?php echo Html::submitButton('Reset', ['class' => 'btn btn-default', 'name' => 'reset']); ?> </div> </div> </div>
<?php $form = ActiveForm::begin(); ?> <div class="col-lg-12"> <label class=" control-label">Code bien :</label> <label class="control-label " > <?php echo $codeBien; ?> </label> </div> </br> </br> <label class="col-lg-2 control-label">Date mise en instance:</label> <?php // with an ActiveForm instance echo $form->field($dat, 'dt')->widget(DatePicker::className(), ['inline' => false, 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']])->label(false); ?> </div> <div> <?php echo Html::SubmitButton('mettre en instance', ['class' => 'btn btn-primary col-lg-offset-3', 'name' => '']); ?> <a href="#" class="btn btn-primary" data-dissmiss="modal">Annuler</a> </div>
</div> <div class="col-md-4"> <?php echo $form->field($model, 'apellido1')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'apellido2')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'rut')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'fechaNacimiento')->widget(DatePicker::className(), ['inline' => false, 'language' => 'es', 'options' => ['placeholder' => 'AÑO - MES - DIA'], 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'startView' => 2]]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'entidad_id')->widget(Select2::classname(), ['data' => ArrayHelper::map(Entidad::find()->all(), 'id', 'nombre'), 'language' => 'en', 'hideSearch' => false, 'options' => ['placeholder' => 'Selecciona alguna entidad a la que pertenezcas'], 'pluginOptions' => ['allowClear' => true]]); ?> </div> <div class="col-md-4"> <?php echo $form->field($model, 'liceoCurso')->textInput(['maxlength' => true]); ?> </div> <div class="col-md-4"> <?php
<div class="book-form"> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true]); ?> <?php echo $form->field($model, 'preview')->fileInput(); ?> <?php echo $form->field($model, 'date')->widget(DatePicker::className(), ['inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]); ?> <?php $authors = \app\models\Author::find()->all(); foreach ($authors as $author) { $data[$author->id] = $author->lastname . ' ' . $author->firstname; } echo $form->field($model, 'author_id')->widget(\kartik\select2\Select2::className(), ['data' => $data, 'options' => ['placeholder' => 'Выберите автора']]); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div>
Заполните начальные данные </h4> </div><!-- panel-heading --> <div class="panel-body form-group"> <?php echo Select2::widget(['class' => "form-control", 'id' => "ocupations", 'name' => "ocupations", 'value' => '', 'data' => $specList, 'options' => ['multiple' => false, 'placeholder' => 'Выберите специальность ...']]); echo '<p />'; echo Select2::widget(['class' => "form-control", 'id' => "specialists", 'name' => "specialists", 'value' => '', 'options' => ['multiple' => false, 'placeholder' => '...']]); echo '<p /><label for="date"> Дата приёма с: </label>'; echo DatePicker::widget(['id' => 'date_from', 'name' => 'date_from', 'language' => 'ru', 'value' => date('d-m-Y', time()), 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy']]); echo '<p /><label for="date"> Дата приёма по: </label>'; echo DatePicker::widget(['id' => 'date_to', 'name' => 'date_to', 'language' => 'ru', 'value' => date('d-m-Y', time()), 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy']]); ?> <p /><p /> <!-- <a class="btn btn-default" href="">Показать</a>--> <div class="form-group form-inline"> <div class="checkbox"> <input id="one_day" type="checkbox" class=”form-control”/> <span>одним днём</span> </div> </div> <!-- <div role="chekbox" />--> <button disabled="true" id='show' class="btn btn-info" onclick="">показать заявки</button> </div><!-- panel-body --> </div><!-- panel-info -->
<?php $form = ActiveForm::begin(); ?> <div class="col-lg-4"> <?php echo $form->field($instance, 'codestructure')->dropDownList(['siege' => 'Siège central', 'Succursale Cheraga' => 'Succursale Chéraga', 'Succursale Annaba' => 'Succursale Annaba', 'Succursale Oran' => 'Succursale Oran', 'Succursale Constantine' => 'Succursale Constantine', 'Succursale Bouzareah' => 'Succursale Bouzareah'])->label('Structure:'); ?> </div> <div class="col-lg-4"> <?php echo $form->field($dat, 'dt')->widget(DatePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']])->label('Date mise en instance:'); ?> </div> <div class="col-lg-12"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'codebien', 'designationbien', 'codesousfamille', 'numfacture', 'dateacquisition', 'statutbien', ['class' => 'yii\\grid\\CheckboxColumn']]]); ?> </div> <div class="col-lg-12"> <?php