Пример #1
0
echo $form->field($model, 'FileUpload')->fileInput();
?>
		     </div>
    
    		<div class="clearfix"></div>
    
    
   			 <div class="col-sm-8" style="padding:0px;">
				  <div class="col-sm-4">
					     <?php 
echo $form->field($model, 'offerStartDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter offerStartDate ...', 'style' => 'width:100px'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]]);
?>
					 </div>
					 <div class="col-sm-4">
					     <?php 
echo $form->field($model, 'offerEndDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter offerEndDate ...', 'style' => 'width:100px'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]]);
?>
					</div>
    			</div>
				<div class="col-sm-8" style="padding:0px;">
				    <div class="col-sm-4">
				    	<?php 
echo $form->field($model, 'isStoreOffer')->checkbox(array('placeholder' => 'isStoreOffer', 'id' => 'isStoreOffer'))->label(false);
?>
				    </div>
				    <div class="col-sm-4">
				 		<?php 
echo $form->field($model, 'offer')->textInput(array('placeholder' => 'offer', 'style' => 'width:150px', 'id' => 'offer'))->label(false);
?>
				   </div>
			    </div>
Пример #2
0
            
            
             
            
            
            
            
             <div class="form-group col-sm-5 btnWithTooltip" data-placement="bottom" 
            data-original-title="Name & address details will help us to send  gifts on app rewards and other gifts" 
            data-html="true"  placeholder=" Middle Name">
             
            
             
             
             <?php 
echo $form->field($model, 'purchaseDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Purchase date ...'], 'name' => 'from_date', 'value' => $model->purchaseDate, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]])->label(false);
?>
            
            <i class="fa fa-question-circle btnWithTooltip Qty-symbol-tooltip" data-placement="bottom" 
            data-original-title="Name & address details will help us to send  gifts on app rewards and other gifts" 
            data-html="true" ></i>
                    <span style="float: right;font-size: 10px; font-family:font-family: Arial; color:#CCC;">charcters length 25</span> 
                    </div>
                    
                    
                    
                  <div class=" form-group col-sm-5 btnWithTooltip" data-placement="bottom" 
            data-original-title="Name & address details will help us to send  gifts on app rewards and other gifts" 
            data-html="true"   placeholder="Last Name">
                   
            
Пример #3
0
/* @var $model app\models\Brood */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="brood-form">

    <?php 
$form = ActiveForm::begin();
?>

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

    <?php 
echo $form->field($model, 'date')->widget(DatePicker::classname(), ['options' => ['placeholder' => Yii::t('app', 'Enter birth date ...')], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'removeButton' => false, 'language' => \app\models\Lang::getCurrent()['local']]);
?>

    <?php 
echo $form->field($model, 'breed_id')->dropDownList(\app\models\Breed::getAll());
?>

    <?php 
echo $form->field($model, 'common_status_id')->dropDownList(\app\models\CommonStatus::getAll());
?>

    <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>
Пример #4
0
    <?php 
echo $form->field($model, 'oborud1')->widget(Select2::className(), ['options' => ['placeholder' => 'Выберите оборудование...', 'multiple' => true], 'pluginOptions' => ['allowClear' => true]]);
?>





    <?php 
echo $form->field($model, 'id_client')->dropDownList(ArrayHelper::map($client, 'id', 'name_client'), ['prompt' => 'Выберите клиента']);
?>


    <?php 
echo $form->field($model, 'date_event')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Выберите дату ...'], 'language' => 'ru-RU', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

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



    <?php 
echo $form->field($model, 'time_n')->widget(TimePicker::classname(), ['pluginOptions' => ['showSeconds' => false, 'showMeridian' => false, 'minuteStep' => 5]]);
?>



    <?php 
Пример #5
0
<div class="posts-form">

    <?php 
$form = ActiveForm::begin();
?>

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

    <?php 
echo $form->field($model, 'text')->widget(Widget::className(), ['settings' => ['lang' => 'ru', 'minHeight' => 200, 'plugins' => ['clips', 'fullscreen']]]);
?>
    <div id="datepicker-stg2">
        <?php 
echo $form->field($model, 'strDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Click and choose date ...', 'value' => $model->isNewRecord ? '' : date('d-M-Y', $model->date)], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-M-yyyy']]);
?>
    </div>

    <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();
?>

</div>
Пример #6
0
$form = ActiveForm::begin();
?>

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

    <?php 
echo $form->field($model, 'baomingshijian')->widget(DatePicker::classname(), ['options' => ['placeholder' => '选择报名时间'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
    <?php 
echo $form->field($model, 'jiezhishijian')->widget(DatePicker::classname(), ['options' => ['placeholder' => '选择报名时间'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

    <?php 
echo $form->field($model, 'kaoshishijian')->widget(DatePicker::classname(), ['options' => ['placeholder' => '选择报名时间'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
    <?php 
echo $form->field($model, 'ord')->textInput(['placeholder' => '数字越小越靠前,默认可不填写']);
?>

    <?php 
echo $form->field($model, 'is_reminder')->dropDownList(['否', '是']);
?>


    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? '添加' : '修改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Пример #7
0
        }

        $("#imgInp").change(function(){
            readURL(this);
        });
    </script>

    <?php 
echo $form->field($model, 'content')->widget(CKEditor::className(), ['options' => ['rows' => 10], 'preset' => 'full', 'clientOptions' => ['filebrowserUploadUrl' => '/daitech-admin/project/upload']]);
?>


    <?php 
echo $form->field($model, 'start_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Start date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]);
?>
    <?php 
echo $form->field($model, 'end_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'End date ...'], 'convertFormat' => true, 'pluginOptions' => ['format' => 'yyyy-MM-dd']]);
?>

    <div class="form-control">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

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

</div>
Пример #8
0
?>

        <?php 
echo $this->render('partials/_chunkInput', ['model' => $model, 'form' => $form, 'attribute' => 'imageLpr', 'type' => EvidenceFileType::TYPE_IMAGE_LPR, 'uploadUrl' => $uploadUrl, 'acceptMimeTypes' => $acceptMimeTypes, 'maxFileSize' => $maxFileSize, 'maxChunkSize' => $maxChunkSize, 'dropZone' => $dropZone, 'handleUrl' => $handleUrl]);
?>

        <?php 
echo $this->render('partials/_chunkInput', ['model' => $model, 'form' => $form, 'attribute' => 'imageOverviewCamera', 'type' => EvidenceFileType::TYPE_IMAGE_OVERVIEW_CAMERA, 'uploadUrl' => $uploadUrl, 'acceptMimeTypes' => $acceptMimeTypes, 'maxFileSize' => $maxFileSize, 'maxChunkSize' => $maxChunkSize, 'dropZone' => $dropZone, 'handleUrl' => $handleUrl]);
?>

<!--            --><?php 
//var_dump($model->infraction_date); die;
?>

                <?php 
echo $form->field($model, 'infraction_date')->widget(DatePicker::classname(), ['layout' => '{input}{picker}', 'options' => ['placeholder' => 'Enter infraction date ...'], 'pluginOptions' => ['format' => Yii::$app->params['date.view.format']]]);
?>

        <?php 
echo $form->field($model, 'lat')->widget(MaskedInput::classname(), ['mask' => '9[9[9]]\\º 9[9[9]]\' 9[9].9[9[9]]\\" a'])->hint('If the current value less than mask value, please use space key(on the keyboard) in order to move cursor to the next sub field! Latitude example 49º 59\' 36.6" N');
?>
        <?php 
echo $form->field($model, 'lng')->widget(MaskedInput::classname(), ['mask' => '9[9[9]]\\º 9[9[9]]\' 9[9].9[9[9]]\\" a'])->hint('If the current value less than mask value, please use space key(on the keyboard) in order to move cursor to the next sub field! Longitude example 36º 13\' 49.378" E');
?>

        <?php 
echo $form->field($model, 'state_id')->dropDownList(States::listData());
?>
        <?php 
echo $form->field($model, 'license')->textInput(['maxlength' => true]);
?>
Пример #9
0
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'DIVISION_ID')->widget(DepDrop::classname(), ['data' => ArrayHelper::map(app\models\EfDivision::find()->where(['DIVISION_ID' => $model->DIVISION_ID])->all(), 'DIVISION_ID', 'DIVISION_NAME'), 'type' => DepDrop::TYPE_SELECT2, 'select2Options' => ['pluginOptions' => ['allowClear' => false]], 'options' => ['disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['depends' => $mode == 'view' ? [''] : ['efproject-unit_id'], 'initialize' => $model->isNewRecord ? false : true, 'url' => Url::to(['/common/ajax/get-efdivision-list']), 'loadingText' => 'Loading ...', 'placeholder' => 'เลือก สำนัก/กอง ก่อน']]);
?>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'START_DATE')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'value' => $model->START_DATE, 'disabled' => $mode == 'view' ? true : false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'END_DATE')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_APPEND, 'value' => $model->END_DATE, 'disabled' => $mode == 'view' ? true : false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'BUDGET_TYPE_ID')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map(app\models\EfBudgetType::find()->all(), 'BUDGET_TYPE_ID', 'BUDGET_TYPE_NAME'), 'options' => ['placeholder' => 'กรุณาเลือก', 'disabled' => $mode == 'view' ? true : false], 'pluginOptions' => ['allowClear' => false]]);
?>
								</div>
								<div class="col-md-6">
									<?php 
echo $form->field($model, 'BUDGET_RECEIVE')->textInput(['disabled' => $mode == 'view' ? true : false]);
?>
								</div>
							</div>
Пример #10
0
    <?php 
echo $form->field($model, 'name', ["options" => ["class" => "col-lg-3"]])->textInput(['placeholder' => 'Название книги'])->label(false);
?>
    <div class="clearfix"></div>

    <div class="pull-left col-lg-12">

        <div class="pull-left"><label>Дата выхода книги:</label></div>
        <?php 
echo $form->field($model, 'date_from', ["options" => ["class" => "col-lg-2"]])->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99/99/9999'])->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['placeholder' => 'Ведите дату...'], 'pluginOptions' => ['autoclose' => true]])->label(false);
?>

        <div class="pull-left"><label>до</label></div>
        <?php 
echo $form->field($model, 'date_to', ["options" => ["class" => "col-lg-2"]])->widget(\yii\widgets\MaskedInput::className(), ['mask' => '99/99/9999'])->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['placeholder' => 'Ведите дату...'], 'pluginOptions' => ['autoclose' => true]])->label(false);
?>
        <input type="hidden" name="sort" value="<?php 
echo Yii::$app->request->get('sort');
?>
">
        <div class="form-group pull-right">
            <?php 
echo Html::submitButton('Искать', ['class' => 'btn btn-primary']);
?>
        </div>

    </div>
    <div class="clearfix"></div>

    <?php 
Пример #11
0
    <div class="row">
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'author_id')->dropDownList(\app\models\Authors::map(), ['prompt' => 'автор']);
?>
        </div>
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'name')->textInput(['placeholder' => 'название книги']);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-8">
    <?php 
echo $form->field($model, 'datein', $templateDate)->textInput()->widget(DatePicker::classname(), ['value' => date('y-m-d'), 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
        </div>
        <div class="col-sm-3">
            <div class="form-group">
                <?php 
echo Html::submitButton('Поиск', ['class' => 'btn btn-primary']);
?>
                <?php 
echo Html::resetButton('Сброс', ['class' => 'btn btn-default']);
?>
            </div>
        </div>


Пример #12
0
</div>
            </div>
            <div class="row">
                <div class="col-md-6 col-xs-6"><?php 
echo $form->field($model, 'disease')->dropDownList($lib_disease);
?>
</div>
                <div class="col-md-6 col-xs-6"><?php 
echo $form->field($model, 'type')->dropDownList(['NI' => 'NI', 'CI' => 'CI']);
?>
</div>
            </div>
            <div class="row">
                <div class="col-md-6 col-xs-6">
                    <?php 
echo $form->field($model, 'infect_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'เลือกวันที่'], 'language' => 'th', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
                </div>
                <div class="col-md-6 col-xs-6"><?php 
echo $form->field($model, 'infect_ward')->dropDownList($lib_ward);
?>
</div>
                
            </div>
            <?php 
echo $form->field($model, 'hn')->hiddenInput(['maxlength' => true])->label(false);
?>

            <?php 
echo $form->field($model, 'an')->hiddenInput(['maxlength' => true])->label(false);
?>
Пример #13
0
$form = ActiveForm::begin();
?>
<div class="row">
    <div class="col-md-6">
    <?php 
echo $form->field($model2, 'id_kegiatan')->hiddenInput(['value' => $model->id_kegiatan, 'maxlength' => true])->label(false);
?>
     <?php 
$data3 = ArrayHelper::map(\common\models\Pegawai::find()->where('unit_id=132210')->asArray()->all(), 'nip', 'nama');
echo $form->field($model2, 'personil_id')->widget(Select2::classname(), ['data' => $data3, 'options' => ['placeholder' => 'Pilih Nama Pejabat'], 'pluginOptions' => ['allowClear' => true]])->label('Nama Personil');
?>
    </div>
    <div class="col-md-6">
    <br/>
    <?php 
echo $form->field($model2, 'tgl_terima')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tanggal Kirim'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Tanggal Kirim');
?>
    </div>
     <div class="row">
       <div class="col-md-12">
        &nbsp; &nbsp; &nbsp;<?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Kirim '), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
       </div>
    </div>
  </div>
    
    

  
Пример #14
0
if (!$incident->isNewRecord) {
    ?>
    
    <hr />
    <h3>Disposition</h3>
    <br />
    <div class="row">
        <div class="col-md-4">
            <?php 
    echo $form->field($incident, 'disposition')->dropDownList(['D' => 'D', 'E' => 'E', 'P' => 'P', 'R' => 'R', 'T' => 'T'], ['prompt' => '']);
    ?>
            <?php 
    echo $form->field($incident, 'disposition_date')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['value' => $incident->disposition_date ? Yii::$app->formatter->asDate($incident->disposition_date) : '', 'placeholder' => 'Select disposition date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
    ?>
            <?php 
    echo $form->field($incident, 'end_of_stay')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_INPUT, 'options' => ['value' => $incident->end_of_stay ? Yii::$app->formatter->asDate($incident->end_of_stay) : '', 'placeholder' => 'Select end of stay date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
    ?>
        </div>
        <div class="col-md-4 col-md-offset-2">
            <?php 
    echo $form->field($incident, 'released')->checkbox();
    ?>
            <hr style="border-top: 1px solid #B0B0B0; width: 180px; margin-left: 0;" />
            <?php 
    echo $form->field($incident, 'died')->checkbox();
    ?>
            <?php 
    echo $form->field($incident, 'died_48')->checkbox();
    ?>
            <?php 
    echo $form->field($incident, 'died_96')->checkbox();
<div class="body-content">
	<div class="row">
		<div class="col-lg-12">
			<h1>Copy a Team</h1>
			<p>This will copy an event and all of it's team and shifts (but not volunteers) to a new event. 
				Each shift will be moved relative to the start of the new event's date.  So a shift on the first day of the old event at 10am will be set to the first day of the new event at 10am.</p> 
            <?php 
$form = ActiveForm::begin(['id' => 'team-copy-form']);
?>

                <?php 
echo $form->field($model, 'event_id')->dropdownList($model->eventList, ['prompt' => 'Select an event to copy']);
?>

				<?php 
echo $form->field($model, 'start_time')->widget(DatePicker::classname(), ['pluginOptions' => ['defaultTime' => false, 'format' => 'M d  yyyy']]);
?>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Copy', ['class' => 'btn btn-primary', 'name' => 'copy-button']);
?>
                </div>

            <?php 
ActiveForm::end();
?>
			
		</div>
	</div>
</div>
Пример #16
0
    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>
   
    <?php 
$pluginOptions = ['showUpload' => false, 'showRemove' => false, 'overwriteInitial' => true, 'browseLabel' => "Обзор...", 'allowedFileExtensions' => ['jpg', 'gif', 'png']];
if (!$model->isNewRecord && $photo->getFileUrl()) {
    $pluginOptions['initialPreview'] = [Html::img($photo->getFileUrl())];
}
echo $form->field($model, 'photo')->widget(FileInput::classname(), ['options' => ['accept' => 'image/*', 'multiple' => false, 'class' => 'jcrop', 'data-crop-ratio' => 2 / 3], 'pluginOptions' => $pluginOptions]);
echo $form->field($model, 'cropData')->hiddenInput(['id' => 'crop-data'])->label(false);
?>

    <?php 
echo $form->field($model, 'birthday')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Выберите дату рождения'], 'removeButton' => false, 'language' => 'ru-RU', 'pluginOptions' => ['language' => 'ru', 'autoclose' => true, 'format' => 'dd.mm.yyyy']]);
?>

    <?php 
echo $form->field($model, 'position')->textInput(['maxlength' => true]);
?>
    
    <?php 
echo $form->field($model, 'notes')->widget(\vova07\imperavi\Widget::className(), ['settings' => ['lang' => 'ru', 'minHeight' => 200, 'plugins' => ['fullscreen', 'table', 'video', 'fontcolor']]]);
?>

    <?php 
echo $form->field($model, 'player_carrer')->widget(\vova07\imperavi\Widget::className(), ['settings' => ['lang' => 'ru', 'minHeight' => 200, 'plugins' => ['fullscreen', 'table', 'video', 'fontcolor']]]);
?>

    <?php 
Пример #17
0
/* @var $model common\models\User */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="row">
    <div class="col-md-7">

        <?php 
$form = ActiveForm::begin();
?>

        <?php 
echo $form->field($profile, 'gender')->radioList([Yii::t('app', 'Male'), Yii::t('app', 'Female')]);
?>

        <?php 
echo $form->field($profile, 'birthdate')->widget(DatePicker::classname(), ['options' => ['placeholder' => Yii::t('app', 'Enter birthdate ...')], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

        <?php 
echo $form->field($profile, 'signature')->textarea();
?>

        <?php 
echo $form->field($profile, 'address')->textarea();
?>

        <?php 
echo $form->field($profile, 'description')->textarea();
?>

        <div class="form-group">
Пример #18
0
    </div>
    <div class="col-md-3">
       <?php 
echo $form->field($model, 'agama_id')->dropDownList($model->listAgama(), ['prompt' => 'Select...']);
?>
    </div>
</div>
<div class="row">
    <div class="col-md-4">
        <?php 
echo $form->field($model, 'tempat_lahir')->textInput();
?>
    </div>
    <div class="col-md-4">
         <?php 
echo $form->field($model, 'tgl_lahir')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tanggal Lahir'], 'pluginOptions' => ['autoclose' => true]]);
?>
    </div>
    <div class="col-md-4">
        <!-- ?= $form->field($model, 'jenkel')->dropDownList([ 'L' => 'Laki-Laki',
         'P' => 'Perempuan', ], ['prompt' => '']) ?> -->
        <?php 
echo $form->field($model, 'jenkel')->radioList(array('L1' => 'Laki-Laki', 'P' => 'Perempuan'));
?>
    </div>
</div>
<div class="row">
    <div class="col-md-4">
        <?php 
echo $form->field($model, 'no_telp')->textInput(['maxlength' => 12]);
?>
Пример #19
0
                <?php 
echo $form->field($model, 'author')->textInput()->label(Yii::t('podium/view', 'Author'));
?>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <div class="col-sm-4 col-sm-offset-2">
                <?php 
echo $form->field($model, 'date_from')->widget(DatePicker::classname(), ['removeButton' => false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])->label(Yii::t('podium/view', 'Date from'));
?>
            </div>
            <div class="col-sm-4">
                <?php 
echo $form->field($model, 'date_to')->widget(DatePicker::classname(), ['removeButton' => false, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])->label(Yii::t('podium/view', 'Date to'));
?>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <div class="col-sm-8 col-sm-offset-2">
                <?php 
echo $form->field($model, 'forums')->dropDownList($list, ['multiple' => true, 'encode' => false])->label(Yii::t('podium/view', 'Search in Forums'));
?>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
Пример #20
0
?>
    
    <?php 
echo $form->field($model, 'firstName')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'lastName')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'middleName')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'gender')->radioList(array('Male' => 'Male', 'Female' => 'Female'));
?>
    <?php 
echo $form->field($model, 'dob')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter birth date ...'], 'name' => 'from_date', 'value' => $model->dob, 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayHighlight' => true]]);
?>
    <?php 
echo $form->field($model, 'mobile')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'mobile2')->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'address1')->textarea(array('value' => $model->address1));
?>
    <?php 
echo $form->field($model, 'address2')->textarea(array('value' => $model->address2));
?>
    
Пример #21
0
?>

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

            <?php 
echo $form->field($model, 'nombre')->textarea(['rows' => 6]);
?>

            <?php 
echo $form->field($model, 'fecha_inicio')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy', 'todayBtn' => false], 'options' => ['readonly' => true]]);
?>

            <?php 
echo $form->field($model, 'fecha_fin')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_PREPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy', 'todayBtn' => false], 'options' => ['readonly' => true]]);
?>

            <?php 
echo $form->field($model, 'estatus_proyecto')->dropDownList(ArrayHelper::map($estatus_proyecto, 'id', 'estatus'), ['prompt' => 'Seleccione']);
?>

            <?php 
echo $form->field($model, 'situacion_presupuestaria')->dropDownList(ArrayHelper::map($situacion_presupuestaria, 'id', 'situacion'), ['prompt' => 'Seleccione']);
?>

            <?php 
echo $form->field($model, 'monto_proyecto', ['inputTemplate' => '<div class="input-group"><span class="input-group-addon">Bs.</span>{input}</div>'])->input('number', ['min' => 1, 'step' => 0.01]);
?>

            <?php 
Пример #22
0
        echo $model->picture;
        ?>
" alt="currentimage"  style="max-width: 200px; max-height: 200px;">
	    				</div>
	    			</div>
	    		<?php 
    } else {
        ?>
	    			<?php 
        echo $form->field($model, 'imageFile')->fileInput();
        ?>
	    		<?php 
    }
    ?>
		    	<?php 
    echo $form->field($model, 'removal_date')->widget(DatePicker::classname(), ['type' => 1, 'options' => ['placeholder' => Yii::t('app', 'Selecteer datum')], 'pluginOptions' => ['format' => 'dd-mm-yyyy', 'todayHighlight' => true, 'autoclose' => true]]);
    ?>
		    	<?php 
    echo $form->field($model, 'remarks')->widget(\yii\redactor\widgets\Redactor::className(), ['clientOptions' => ['buttons' => ['formatting', 'bold', 'italic', 'unorderedlist', 'orderedlist', 'outdent', 'indent', 'link', 'alignment', 'horizontalrule']]]);
    ?>
		    	<?php 
    echo $form->field($model, 'direction')->dropDownList(Boxes::getDirectionOptions());
    ?>
		    	<?php 
    echo $form->field($model, 'placement_height');
    ?>
		    	<?php 
    echo $form->field($model, 'cluster')->widget(Select2::className(), ['options' => ['placeholder' => Yii::t('app', 'Selecteer een cluster')], 'pluginOptions' => ['minimumInputLength' => 2, 'tags' => true, 'tokenSeparators' => [',', ' '], 'ajax' => ['url' => Url::toRoute('boxes/ajax-get-clusters'), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term, pid:$("#boxes-project_id").val()}; }')]]]);
    ?>
	    	</div>
	        <div class="form-group">
Пример #23
0
echo $form->field($model, 'task_type_date_3', ['template' => "{label}<div class=\"col-sm-8\">{input}</div>\n{hint}", 'labelOptions' => ['class' => 'col-sm-4 control-label'], 'inputOptions' => ['class' => 'form-control input-sm']])->widget(\kartik\date\DatePicker::classname(), ['type' => \kartik\date\DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
?>
				    <div class="hr-line-dashed"></div>

				    <?php 
echo $form->field($model, 'transactions_tract_datetime', ['template' => "{label}<div class=\"col-sm-8\">{input}</div>\n{hint}", 'labelOptions' => ['class' => 'col-sm-4 control-label'], 'inputOptions' => ['class' => 'form-control input-sm']])->widget(\kartik\date\DatePicker::classname(), ['type' => \kartik\date\DatePicker::TYPE_COMPONENT_APPEND, 'disabled' => true, 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
?>
				    <div class="hr-line-dashed"></div>

				    <?php 
echo $form->field($model, 'task_type_date_1', ['template' => "{label}<div class=\"col-sm-8\">{input}</div>\n{hint}", 'labelOptions' => ['class' => 'col-sm-4 control-label'], 'inputOptions' => ['class' => 'form-control input-sm']])->widget(\kartik\date\DatePicker::classname(), ['type' => \kartik\date\DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
?>
				    <div class="hr-line-dashed"></div>

				    <?php 
echo $form->field($model, 'task_type_date_4', ['template' => "{label}<div class=\"col-sm-8\">{input}</div>\n{hint}", 'labelOptions' => ['class' => 'col-sm-4 control-label'], 'inputOptions' => ['class' => 'form-control input-sm']])->widget(\kartik\date\DatePicker::classname(), ['type' => \kartik\date\DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
?>
				    <div class="hr-line-dashed"></div>

				    <div class="form-group field-tasks-documentation">
						<label class="col-sm-4 control-label" for="tasks-documentation">Выпущенная документация</label>
						<div class="col-sm-8"><input type="file" multiple=true class="file-loading" id="tasks-documentation" name="documentation[]" value=""></div>
						<script type="text/javascript">
							//for update issue
						    var $el2 = $("#tasks-documentation");
						 
							// custom footer template for the scenario
							// the custom tags are in braces
							var footerTemplate = '<div class="file-thumbnail-footer">\n' +
							'   <div style="margin:5px 0">\n' +
							'       <input class="kv-input kv-new form-control input-sm {TAG_CSS_NEW}" style="display: none;" value="{caption}" placeholder="Название...">\n' +
Пример #24
0
            <?php 
echo $form->field($model, 'author_id')->widget(Select2::classname(), ['options' => ['placeholder' => $model->getAttributeLabel('author_id')], 'pluginOptions' => ['allowClear' => true, 'ajax' => ['url' => Url::to(['/author/index'])], 'width' => '100%'], 'initValueText' => $model->author]);
?>
        </div>

        <div class="col-md-4">
            <?php 
echo $form->field($model, 'name', ['autoPlaceholder' => false, 'inputOptions' => ['placeholder' => 'Название книги']]);
?>
        </div>
    </div>

    <div class="row">
        <div class="col-md-4">
            <?php 
echo $form->field($model, 'from', ['showLabels' => true])->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_RANGE, 'separator' => ' до ', 'attribute2' => 'to']);
?>
        </div>

        <div class="col-md-offset-4 col-md-4">
            <div class=" form-group pull-right">
                <?php 
echo Html::submitButton('Искать', ['class' => 'btn btn-primary']);
?>
            </div>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>
Пример #25
0
<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(), ['options' => ['placeholder' => 'Введите дату выхода книги ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

	<?php 
echo $form->field($model, 'author_id')->widget(Select2::classname(), ['data' => \yii\helpers\ArrayHelper::map($authors, 'id', 'lastname'), 'options' => ['placeholder' => 'Выберите автора ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <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();
?>
echo $form->field($model, 'unit_id')->hiddenInput(['rows' => 6, 'value' => $_GET['unit']])->label(false);
?>


            <?php 
$data = ArrayHelper::map(\common\models\Pegawai::find()->asArray()->all(), 'nip', 'nama_cetak');
echo $form->field($model, 'nip_bpp')->widget(Select2::classname(), ['data' => $data, 'theme' => Select2::THEME_BOOTSTRAP, 'options' => ['placeholder' => 'Pilih Nama BPP'], 'pluginOptions' => ['allowClear' => true]])->label('Pilih Nama BPP');
?>

            <div id="kota2"> 
            <?php 
echo $form->field($model, 'kota_negara')->textInput(['rows' => 6])->label('Kota Negara Tujuan');
?>
          
            <?php 
echo $form->field($model, 'renc_tgl_selesai')->widget(DatePicker::classname(), ['options' => ['value' => $result['renc_tgl_selesai'], 'placeholder' => 'Pilih Tanggal'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Sampai Keberangkatan');
?>
        
            </div>
                <?php 
switch ($result['jenis_detail_id']) {
    case "3":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-DN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
    case "4":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-DN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
    case "5":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-LN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
}
Пример #27
0
<div class="books-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')->widget(FileInput::classname(), ['options' => ['accept' => 'image/*'], 'pluginOptions' => ['showPreview' => true, 'showCaption' => true, 'showRemove' => true, 'showUpload' => false]]);
?>

    <?php 
echo $form->field($model, 'date')->widget(DatePicker::classname(), ['value' => date('Y-m-d', strtotime('today')), 'options' => ['placeholder' => Yii::t('books', 'select Date')], 'pluginOptions' => ['hideInput' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>

    <?php 
echo $form->field($model, 'author_id')->dropDownList(ArrayHelper::map(Authors::find()->all(), 'id', 'fullName'), ['prompt' => Yii::t('books', 'select Author')]);
?>

    <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 
ActiveForm::end();
?>
$data2 = ArrayHelper::map(\common\models\Angkutan::find()->asArray()->all(), 'angkutan_id', 'nama');
echo $form->field($model, 'angkutan')->widget(Select2::classname(), ['data' => $data2, 'options' => ['placeholder' => 'Pilih Angkutan'], 'pluginOptions' => ['allowClear' => true]])->label('Pilih Angkutan');
?>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <?php 
echo $form->field($model2, 'tgl_selesai')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tanggal Kembali'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Tangal Kembali');
?>
                        </div>

                 
                        <div class="form-group">
                            <?php 
echo $form->field($model, 'tgl_penugasan')->widget(DatePicker::classname(), ['options' => ['id' => 'tglsp', 'require' => true, 'placeholder' => 'Tanggal Penugasan'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Tanggl Penugasan');
?>
                        </div>
                        <div class="form-group">
                            <?php 
echo $form->field($model, 'uang_makan')->widget(TouchSpin::classname(), ['options' => ['id' => 'idmakan', 'placeholder' => 'Masukan Jumlah Uang Makan'], 'pluginOptions' => ['buttonup_class' => 'btn btn-primary', 'buttondown_class' => 'btn btn-info', 'buttonup_txt' => '<i class="glyphicon glyphicon-plus-sign"></i>', 'buttondown_txt' => '<i class="glyphicon glyphicon-minus-sign"></i>']]);
?>
                        </div>
                    </div>
                </div>
            </div>
            <div id="step-2">
                <br/>
                <h2 class="StepTitle">Input Data Pembiayaan</h2>
                <br/>
                <table width="1000px" class="table table-striped table-bordered">
Пример #29
0
?>
    <?php 
echo $form->field($model, 'marital_status', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$maritalStatus);
?>
    <?php 
echo $form->field($model, 'identification_number', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'social_security_number', ['options' => ['class' => 'col-xs-6']])->widget(MaskedInput::className(), ['mask' => '999-99-9999']);
?>

    <?php 
echo $form->field($model, 'identification_state', ['options' => ['class' => 'col-xs-6 padding-right0']])->widget(Select2::classname(), ['data' => ArrayHelper::map(State::find()->all(), 'abbreviation', 'abbreviation'), 'options' => ['placeholder' => 'Select a state ...'], 'pluginOptions' => ['allowClear' => true]]);
?>
    <?php 
echo $form->field($model, 'identification_expiration_date', ['options' => ['class' => 'col-xs-6']])->label('ID Expiration Date')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_PREPEND, 'removeButton' => false, 'options' => ['value' => $model->identification_expiration_date ? date('m/d/Y', $model->identification_expiration_date) : ''], 'pluginOptions' => ['autoclose' => true, 'format' => 'mm/dd/yyyy']]);
?>
    <?php 
echo $form->field($model, 'occupation', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'employer', ['options' => ['class' => 'col-xs-6']])->textInput(['maxlength' => true]);
?>
    <?php 
echo $form->field($model, 'total_annual_income', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$totalAnnualIncome);
?>
    <?php 
echo $form->field($model, 'years_with_advisor', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$yearsWithAdvisor);
?>
    <?php 
echo $form->field($model, 'net_worth', ['options' => ['class' => 'col-xs-6']])->radioList(DictApplicant::$netWorth);
Пример #30
0
?>

    <?php 
echo $form->field($model, 'will_charge_fee')->radioList($model::$willChargeFee);
?>

    <?php 
echo $form->field($model, 'trained')->radioList(['0' => 'Yes', '1' => 'No']);
?>

    <?php 
echo $form->field($model, 'approved')->radioList(['0' => 'Yes', '1' => 'No']);
?>

    <?php 
echo $form->field($model, 'train_date')->widget(DatePicker::classname(), ['type' => DatePicker::TYPE_COMPONENT_PREPEND, 'removeButton' => false, 'options' => ['value' => date('m/d/Y')], 'pluginOptions' => ['autoclose' => true, 'format' => 'mm/dd/yyyy']]);
?>

<div class="form-group">
	<div class="col-sm-2"></div>
        	<div class="col-sm-10">
        		<?php 
echo Html::button(Yii::t('app', 'Add Group'), ['class' => 'fa fa-plus btn btn-success "', 'data-toggle' => 'modal', 'data-target' => '#myModal']);
?>
            	<?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        	</div>
    	</div>

<?php