示例#1
5
echo Yii::$app->request->get('news') == 'add' ? 'Новая новость (' . $news_type->name . ')' : 'Редактирование новости (' . $news_type->name . ')';
?>
</h3>
        <div class="box-tools pull-right">
            <?php 
/*=Html::a('<i class="fa fa-times"></i>', $link_close, ['class' => 'btn btn-box-tool'])*/
?>
        </div>
    </div>
    <div class="box-body">
        <div class="nav-tabs-custom">
            <?php 
$addon = '<span class="input-group-addon"><i class="fa fa-calendar"></i></span>';
?>
            <?php 
echo Tabs::widget(['items' => [['label' => 'Основные параметры', 'content' => '<p>' . $form->field($link, 'state')->checkbox() . $form->field($link, 'anchor')->label('Заголовок новости') . $form->field($link, 'title')->label('Заголовок страницы (опционально)') . $form->field($news, 'url') . $form->field($news, 'date')->widget(DatePicker::className(), ['options' => ['placeholder' => '___.___.______'], 'type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]) . $form->field($news, 'date_range')->widget(DateRangePicker::classname(), ['convertFormat' => true, 'pluginOptions' => ['locale' => ['format' => 'd.m.Y', 'separator' => ' - '], 'opens' => 'left']]) . $form->field($link, 'gallery_images_id')->widget(GalleryManager::className(), ['group' => false, 'gallery_groups_id' => $news->newsType->gallery_groups_id, 'pluginOptions' => ['type' => 'promo', 'apiUrl' => 'gallery-manager', 'webRoute' => Yii::getAlias('@frontend/web')]])->label('Предварительное фото' . $news->newsType->gallery_groups_id) . '</p>', 'active' => true], ['label' => 'Дополнительно (системные параметры)', 'content' => '<p>' . $form->field($link, 'url')->staticControl() . $form->field($link, 'name') . '</p>'], ['label' => 'SEO', 'content' => '<p>' . $form->field($link, 'keywords')->textarea() . $form->field($link, 'description')->textarea() . $form->field($link, 'priority') . '</p>']]]);
?>
        </div>


        <?php 
echo $form->field($news, 'prev_text', ['template' => '{label}<div class="col-sm-12">{input}</div><div class="col-sm-10">{error}</div>', 'labelOptions' => ['class' => 'col-sm-12']])->textarea(['maxlength' => true, 'rows' => 2, 'id' => 'prev-text']);
?>

        <?php 
echo $form->field($news, 'full_text', ['template' => '{label}<div class="col-sm-12">{input}</div><div class="col-sm-10">{error}</div>', 'labelOptions' => ['class' => 'col-sm-12']])->widget(CKEditor::className(), ['options' => ['id' => 'full-text'], 'preset' => 'full', 'clientOptions' => ['height' => 300, 'toolbar' => [['name' => 'row1', 'items' => ['Maximize', 'Source', '-', 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', 'RemoveFormat', '-', 'TextColor', 'BGColor', '-', 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'list', 'indent', 'blocks', 'align', 'bidi', '-']], ['name' => 'row2', 'items' => ['Link', 'Unlink', 'Anchor', '-', 'ShowBlocks', '-', 'Image', 'Table', 'HorizontalRule', 'SpecialChar', 'Iframe', '-', 'NewPage', 'Print', 'Templates', '-', 'Undo', 'Redo', '-', 'Find', 'SelectAll', 'Format', 'Font', 'FontSize']]]]]);
?>

        <?php 
/*=$form->field($news, 'full_text', [
      'template' => '{label}<div class="col-sm-12">{input}</div><div class="col-sm-10">{error}</div>',
示例#2
1
文件: _search.php 项目: Eorling/test3
/* @var $model app\models\BooksSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="books-search">

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get']);
?>

    <?php 
echo $form->field($model, 'name');
?>

    <?php 
echo $form->field($model, 'date')->widget(\kartik\daterange\DateRangePicker::classname(), ['convertFormat' => true, 'pluginOptions' => ['format' => 'Y-m-d']]);
?>

    <?php 
echo $form->field($model, 'author_id')->dropDownList(\yii\helpers\ArrayHelper::map(\app\models\Authors::find()->all(), 'id', function ($model) {
    return $model->firstname . ' ' . $model->lastname;
}), ['prompt' => '']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton('Поиск', ['class' => 'btn btn-primary']);
?>
    </div>

    <?php 
示例#3
0
$this->title = Yii::t('app', 'Relatório Sintético de Caixa');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="estoque-index">

     <p style="display: inline;">
            
            <?php $form = ActiveForm::begin([
                'id' => 'pesquisa-parcela',
                'method' => 'get',
                'options' =>['class' => 'form-inline', 'style' => 'display: inline;']

            ]); ?>
            <div class="form-group">
                <?= $form->field($searchModel, 'dataPagamentoPeriodo',['template' => '{input}'])->widget(\kartik\daterange\DateRangePicker::classname(), ['pluginOptions' => ['format' => 'YYYY-MM-DD']]) ?>
            </div>
            <div class="form-group">
                <? if(Yii::$app->user->identity->perfil == 'Administrador'): ?>
                    <?= $form->field($searchModel, 'lojaId',['template' => '{input}'])->dropDownList(\app\models\Loja::map(),['prompt'=>\Yii::t('app', 'Selecione a loja')]) ?>
                <? endif;?>

            </div>
                <div class="form-group">
                <?= Html::submitButton("<span class='glyphicon glyphicon-search'>", ['class' => 'btn btn-primary']) ?>
            </div>

            <?php ActiveForm::end(); ?>

        </p>
示例#4
0
<div class="scoop-search">

    <?php 
$form = ActiveForm::begin(['method' => 'get']);
?>

    <?php 
echo $form->field($model, 'title')->label(false)->textInput(['placeholder' => 'freetext search']);
?>

    <?php 
if (isset($afterSearchTextCallback)) {
    call_user_func($afterSearchTextCallback, $this, $form, $model);
}
echo $form->field($model, 'date_published', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-calendar"></i>']], 'options' => ['class' => 'drp-container form-group']])->widget(DateRangePicker::classname(), ['useWithAddon' => true, 'convertFormat' => true, 'presetDropdown' => true, 'pluginOptions' => ['locale' => ['format' => 'd M Y', 'separator' => ' to '], 'opens' => 'left']]);
if (isset($afterSearchCalendarCallback)) {
    call_user_func($afterSearchCalendarCallback, $this, $form, $model);
}
// Normal select with ActiveForm & model
echo $form->field($model, 'keywords')->widget(Select2::classname(), ['id' => 'search-label', 'data' => \humanized\scoopit\models\gui\SearchLabel::getSelectData(), 'options' => ['placeholder' => 'Select keywords ...'], 'pluginOptions' => ['multiple' => true, 'allowClear' => true]])->label(false);
if (isset($afterSearchKeywordCallback)) {
    call_user_func($afterSearchKeywordCallback, $this, $form, $model);
}
?>

    <div class="form-group">
        <?php 
echo Html::submitButton('Search', ['class' => 'btn btn-primary']);
?>
        <?php 
示例#5
0
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="text-left">
    <p style="display: inline;">

    <?php $form = \yii\bootstrap\ActiveForm::begin([
        'action'  => ['analitico-vale'],
        'id'      => 'pesquisa-Data',
        'method'  => 'get',
        'options' => ['class' => 'form-inline', 'style' => 'display: inline;']

    ]); ?>

    <div class="form-group">
        <?= $form->field($searchModel, 'dataVale', ['template' => '{input}'])->widget(DateRangePicker::classname(), ['pluginOptions' => ['format' => 'YYYY-MM-DD']]) ?>
        <? if(Yii::$app->user->identity->perfil == 'Administrador'): ?>
            <?= $form->field($searchModel, 'lojaId',['template' => '{input}'])->dropDownList(\app\models\Loja::map(),['prompt'=>\Yii::t('app', 'Selecione a loja')]) ?>
        <? endif;?>
    </div>

    <div class="form-group">
        <?= Html::submitButton("<span class='glyphicon glyphicon-search'>", ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>
    </p>
</div>

<?php Pjax::begin(); ?>
	<?= DynaGrid::widget([
示例#6
0
?>

    <?php 
echo $form->field($model, 'categories')->widget(Select2::classname(), ['value' => $model->isNewRecord ? [] : \common\models\Category::find()->select(['category.id'])->joinWith('posts')->where(['post.id' => $model->id])->asArray()->all(), 'data' => \yii\helpers\ArrayHelper::map(\common\models\Category::find()->where(['is not', 'parent_id', null])->select(['id', 'title'])->asArray()->all(), 'id', 'title'), 'options' => ['placeholder' => 'Categories', 'multiple' => true], 'pluginOptions' => ['tags' => true, 'allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'poster')->fileInput();
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'published_at', ['options' => ['class' => 'drp-container form-group']])->widget(DateRangePicker::classname(), ['model' => $model, 'attribute' => 'published_at', 'convertFormat' => true, 'pluginOptions' => ['timePicker' => true, 'timePickerIncrement' => 15, 'locale' => ['format' => 'Y-m-d H:i:s'], 'singleDatePicker' => true, 'showDropdowns' => true]]);
?>

    <?php 
echo $form->field($model, 'body')->widget(MarkdownEditor::className(), []);
?>

    <?php 
echo $form->field($model, 'is_lts')->widget(SwitchBox::className(), ['clientOptions' => ['size' => 'medium', 'onColor' => 'success', 'offColor' => 'danger']]);
?>

    <?php 
echo $form->field($model, 'keyword')->textInput(['maxlength' => true]);
?>

    <?php 
示例#7
0
<style>
    .search .form-control{ width:300px;}
    .search .form-group{ margin:0 10px;}
</style>
<?php 
use kartik\widgets\ActiveForm;
use kartik\helpers\Html;
$form = ActiveForm::begin(['method' => 'get', 'type' => ActiveForm::TYPE_INLINE, 'options' => ['class' => 'search']]);
if ($model->render == 'reg-user') {
    echo $form->field($model, 'userId');
}
//echo $form->field($model, 'filter_limit');
echo $form->field($model, 'regdate', [])->widget(\kartik\daterange\DateRangePicker::classname(), ['attribute' => "regdate", 'model' => $model, 'convertFormat' => true, 'pluginOptions' => ['timePicker' => true, 'timePickerIncrement' => 15, 'timePicker24Hour' => true, 'locale' => ['separator' => ' 至 ', 'format' => 'Y-m-d H:i:s'], 'opens' => 'right']]);
?>
<div style="display: inline-block">
<?php 
echo \kartik\widgets\Select2::widget(['name' => 'filter_limit', 'value' => \yii::$app->request->get('filter_limit', 50), 'data' => [20 => 20, 50 => 50, 100 => 100, 200 => 200], 'options' => ['placeholder' => '每页条数']]);
?>
</div>
<?php 
echo Html::submitButton("搜索", ['class' => 'btn btn-success', 'name' => Html::getInputName($model, 'do'), 'value' => 'search']);
//echo "&nbsp;&nbsp;";
//echo Html::submitButton("更新", [
//    'class' => 'btn btn-info',
//    'name' =>Html::getInputName($model,'do'),
//    'value'=>'update'
//]);
ActiveForm::end();
示例#8
0
}
\kartik\depdrop\DepDropAsset::register($this);
\kartik\depdrop\DepDropExtAsset::register($this);
$form = ActiveForm::begin();
echo $form->field($registraciya, 'fizLicoId')->hiddenInput()->label(false);
echo $form->field($registraciya, 'status')->hiddenInput()->label(false);
echo $form->field($registraciya, 'id')->hiddenInput()->label(false);
echo $form->field($registraciya, 'dolzhnost')->dropDownList($registraciya->getDolzhnostiFizLicaToSelect($registraciya->fizLicoId) + [-1 => 'добавить'], ['placeholder' => 'Выберите должность', 'id' => 'registraciya-dolzhnost', 'data-fizlicoid' => $registraciya->fizLicoId, 'onchange' => 'onChangeDolzhnost(this)']);
echo '<div class="panel panel-default">
  <div class="panel-heading"><b>Действующий аттестационный лист</b></div>
  <div class="panel-body">';
echo '<div class="col-md-3 no-left-padding">';
echo $form->field($registraciya, 'attestacionnyListKategoriya')->dropDownList(KategoriyaPedRabotnika::namesMap(), ['placeholder' => 'Выберите категорию', 'onChange' => 'onChangeCurrentCategoriya()', 'id' => 'attestacionnyListKategoriya']);
echo '</div>';
echo '<div id="preiod_dejstviya" class="col-md-3">';
echo $form->field($registraciya, 'attestacionnyListPeriodDejstviya', ['options' => ['class' => 'drp-container form-group', 'placeholder' => 'Выберите Период действия аттестации']])->widget(DateRangePicker::classname(), ['value' => date('d.m.Y') . ' - ' . date('d.m.Y'), 'useWithAddon' => true, 'language' => 'ru', 'hideInput' => true, 'pluginOptions' => ['format' => 'DD.MM.YYYY', 'separator' => ' - ', 'opens' => 'right']]);
echo '</div>';
echo '<div id="copiya_lista" class="col-md-3 no-right-padding">';
echo $form->field($registraciya, 'attestacionnyListPeriodFajl')->widget(\app\widgets\Files2Widget::className(), [])->label('Копия');
echo '</div>';
echo '<div id="data_okonchaniya_attestacii" class="col-md-3 no-right-padding">';
echo $form->field($registraciya, 'attestaciyaDataOkonchaniyaDejstviya')->widget(\kartik\widgets\DatePicker::className(), ['pluginOptions' => ['format' => 'dd.mm.yyyy']]);
echo '</div>';
echo '</div>
</div>';
echo $form->field($registraciya, 'kategoriya')->dropDownList(KategoriyaPedRabotnika::namesOnlyPositive(), ['placeholder' => 'Выберите категорию', 'onchange' => 'onChangeKategoriya(\'' . Html::getInputId($registraciya, 'kategoriya') . '\')', 'id' => 'registraciya-kategoriya']);
//echo '<div id="varIspytanie2Div">';
//echo $form->field($registraciya,'varIspytanie2')->dropDownList(
//    \app\entities\AttestacionnoeVariativnoeIspytanie_2::find()
//        ->formattedAll(EntityQuery::DROP_DOWN,'nazvanie')
//);
示例#9
0
?>

    <?php 
echo $form->field($model, 'password_hash')->passwordInput();
?>

    <?php 
echo $form->field($model, 'status')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Status'], 'hideSearch' => false, 'data' => [10 => 'Active', 20 => 'Banned'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'flag_multiple')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Multiple Login'], 'hideSearch' => false, 'data' => [0 => 'No', 1 => 'Yes'], 'pluginOptions' => ['allowClear' => true]]);
?>
    
    <?php 
echo $form->field($model, 'active_date', ['addon' => ['prepend' => ['content' => '<i class="glyphicon glyphicon-calendar"></i>']], 'options' => ['class' => 'drp-container form-group', 'readonly' => 'readonly']])->widget(DateRangePicker::classname(), ['useWithAddon' => true, 'convertFormat' => true, 'pluginOptions' => ['singleDatePicker' => true, 'locale' => ['format' => 'Y-m-d']]]);
?>

    <?php 
echo $form->field($model, 'rtries_count')->textInput();
?>

    <?php 
echo $form->field($model, 'passage1')->textInput();
?>

    <?php 
echo $form->field($model, 'passage2')->textInput();
?>
    <?php 
$data = AuthItem::find('distinct description')->where(['not', ['description' => 'is null']])->asArray()->all();