Exemplo n.º 1
0
Arquivo: _form.php Projeto: poykub/wph
echo $form->field($model, 'amount', ['inputOptions' => ['class' => 'form-control', 'placeholder' => 'จำนวนที่รับเข้าระบบ', 'autocomplete' => 'off']])->textInput(['maxlength' => 10]);
?>
                                </div>
                                <div class="col-md-4">
                                    <?php 
echo $form->field($model, 'serial', ['inputOptions' => ['class' => 'form-control', 'placeholder' => 'SN:0123456789', 'autocomplete' => 'off']])->textInput(['maxlength' => 45]);
?>
                                </div>
                                <div class="col-md-4">
                                    <?php 
echo $form->field($model, 'warranty')->widget(Select2::classname(), ['data' => ArrayHelper::map(Comwarranty::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'การรับประกัน...'], 'pluginOptions' => ['allowClear' => true]]);
?>
                                </div>
                                <div class="col-md-4">
                                    <?php 
echo $form->field($model, 'addToSystem')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'เลือกวันที่ ...'], 'language' => 'th', 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>
                                </div>
                                <div class="col-md-4">
                                    <?php 
echo $form->field($model, 'dealer')->widget(Select2::classname(), ['data' => ArrayHelper::map(Comdealer::find()->all(), 'id', 'dealerName'), 'options' => ['placeholder' => 'ร้านค้า/ผู้จำหน่าย...'], 'pluginOptions' => ['allowClear' => true]]);
?>
                                </div>
                                <div class="col-md-3">
                                    <?php 
echo $form->field($model, 'location')->widget(Select2::classname(), ['data' => ArrayHelper::map(Section::find()->all(), 'id', 'name'), 'options' => ['placeholder' => 'หน่วยงาน/ฝ่าย/แผนก...'], 'pluginOptions' => ['allowClear' => true]]);
?>
                                </div>
                                <div class="col-md-5">
                                    <?php 
echo $form->field($model, 'status')->inline(true)->radiolist(['1' => 'กำลังใช้งาน', '2' => 'พร้อมใช้งาน', '3' => 'ส่งซ่อม', '4' => 'ชำรุด', '5' => 'จำหน่ายออก']);
?>
        <?php 
echo $profile->profile_image . '<br>';
//echo $form->field($profile, 'profile_image');
echo $form->field($profile, 'profile_image')->widget(NewWidget::className(), ['uploadUrl' => Url::toRoute(['/user/user-profile/uploadphoto']), 'previewUrl' => $profile->module->ProfileImagePathPreview, 'tempPreviewUrl' => $profile->module->ProfileImageTempPathPreview, 'width' => 200, 'height' => 200]);
?>

        <?php 
echo $form->field($profile, 'first_name');
?>
        <?php 
echo $form->field($profile, 'last_name');
?>
        <?php 
echo $form->field($profile, 'gender')->dropDownList(['1' => 'Male', '2' => 'Female']);
?>
        <?php 
echo $form->field($profile, 'birth_date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter birth date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy/mm/dd']]);
?>
        <div class="form-group">
            <?php 
echo Html::submitButton('Update', ['class' => 'btn btn-primary']);
?>
        </div>
        <?php 
ActiveForm::end();
?>
    </div>
</div>

Exemplo n.º 3
0
?>

        <?php 
$template = '<div><p class="nikkes">{{value}}</p></div>';
echo $form->field($model, 'nikkes')->widget(Typeahead::classname(), ['options' => ['placeholder' => 'Ketik NIKKES yang diinginkan'], 'pluginOptions' => ['highlight' => true], 'dataset' => [['datumTokenizer' => "Bloodhound.tokenizers.obj.whitespace('value')", 'display' => 'value', 'templates' => ['notFound' => '<div class="text-danger" style="padding:0 8px"> Nikkes tidak terdaftar </div>', 'suggestion' => new JsExpression("Handlebars.compile('{$template}')")], 'remote' => ['url' => Url::to(['peserta/get-nikkes-list']) . '?q=%QUERY', 'wildcard' => '%QUERY'], 'limit' => 10]]]);
?>
        

        

        <?php 
echo $form->field($model, 'hak_kacamata_id')->widget(Select2::classname(), ['data' => $model->hakkacamataList, 'options' => ['placeholder' => 'Please Choose One', 'disabled' => true], 'pluginOptions' => ['allowClear' => true]]);
?>

        <?php 
echo $form->field($model, 'tgl_ambil')->widget(\kartik\widgets\DatePicker::classname(), ['options' => ['placeholder' => 'Choose Tanggal Pengambilan'], 'type' => \kartik\widgets\DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-M-yyyy']]);
?>


        <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>
Exemplo n.º 4
0
?>

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

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

    <?php 
echo $form->field($model, 'bairro_id')->dropDownList(ArrayHelper::map(\frontend\models\Bairro::find()->orderBy(['nome' => SORT_ASC])->all(), 'id', 'nome'), ['prompt' => 'Selecione']);
?>

    <?php 
echo $form->field($model, 'datanascimento')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Coloque a data...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

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

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

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

    <?php 
Exemplo n.º 5
0
// 	'data' => $dropparentkategori
// ]);
//
// echo $form->field($model, 'CUST_KTG')->widget(DepDrop::classname(), [
// 	'options' => [//'id'=>'customers-cust_ktg',
// 	'placeholder' => 'Select Customers kategory'],
// 	'type' => DepDrop::TYPE_SELECT2,
// 	'select2Options'=>['pluginOptions'=>['allowClear'=>true]],
// 	'pluginOptions'=>[
// 		'depends'=>['customers-cust_type'],
// 		'url' => Url::to(['/master/customers/lisdata']),
// 	  'loadingText' => 'Loading data ...',
// 	]
// ]);
echo $form->field($model, 'PIC', $config)->widget(LabelInPlace::classname());
echo $form->field($model, 'JOIN_DATE')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Dari  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy'], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
// echo $form->field($model, 'KD_DISTRIBUTOR')->widget(Select2::classname(), [
// 	     'data' => $dropdis,
//       'options' => [
//       'placeholder' => 'Pilih Distributor ...'],
//       'pluginOptions' => [
//           'allowClear' => true
//            ],
//
//   ]);
if (!$model->isNewRecord) {
    echo $form->field($model, 'STATUS')->dropDownList(['' => ' -- Silahkan Pilih --', '0' => 'Tidak Aktif', '1' => 'Aktif']);
}
?>

    <div class="form-group">
Exemplo n.º 6
0
    <?php 
echo $form->field($model, 'PRINCIPAL_KD')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Nama Principal ...'], 'data' => $data_corp]);
?>

    <?php 
echo $form->field($model, 'DIST_KD')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Nama Distributor ...'], 'data' => $data_distributor]);
?>


   <?php 
echo $form->field($model, 'PERIOD_START')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Term Dibuat'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

        <?php 
echo $form->field($model, 'PERIOD_END')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Term Berakhir'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

    <?php 
echo $form->field($model, 'BUDGET_AWAL')->widget(MaskMoney::classname(), ['pluginOptions' => ['allowNegative' => false]]);
?>

    <?php 
if (!$model->IsNewRecord) {
    echo $form->field($model, 'STATUS')->dropDownList(['' => ' -- Silahkan Pilih --', '0' => 'Tidak Aktif', '1' => 'Aktif']);
}
?>


    <div class="form-group">
        <?php 
Exemplo n.º 7
0
/* @var $model lukisongroup\master\models\Kota */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="kota-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>

    <?php 
echo $form->field($model, 'KODE_REF')->textInput(['value' => $model->KD_SO, 'readonly' => true]);
?>

     <?php 
echo $form->field($model, 'TGL_KIRIM')->widget(DatePicker::classname(), ['options' => ['placeholder' => ' pilih ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd'], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>

    <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>

Exemplo n.º 8
0
        'placeholder' => 'Pilih kota ...'],
        'pluginOptions' => [
            'allowClear' => true,
             ],


    ]);?>
     -->


     <?php 
echo $form->field($model, 'PIC', $config)->widget(LabelInPlace::classname());
?>

 <?php 
echo $form->field($model, 'JOIN_DATE')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date ...'], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>


  <?php 
echo $form->field($model, 'KD_DISTRIBUTOR')->widget(Select2::classname(), ['data' => $dropdis, 'options' => ['placeholder' => 'Pilih Distributor ...'], 'pluginOptions' => ['allowClear' => true]]);
?>


     <!-- $form->field($model, 'ALAMAT', $config)->widget(LabelInPlace::classname());?> -->

    <?php 
echo $form->field($model, 'WEBSITE', $config)->widget(LabelInPlace::classname());
?>

    <?php 
Exemplo n.º 9
0
use yii\web\JsExpression;
use yii\bootstrap\Modal;
use yii\helpers\Url;
use kartik\widgets\TouchSpin;
?>

<div class="sop-sales-header-form">

    <?php 
$form = ActiveForm::begin(['id' => $model->formName(), 'enableClientValidation' => true]);
?>

     <!-- $form->field($model, 'TGL')->textInput() ?> -->

    <?php 
echo $form->field($model, 'TGL')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date start ...'], 'pluginOptions' => ['todayHighlight' => true, 'autoclose' => true, 'format' => 'yyyy-m-dd'], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

     <!-- $form->field($model, 'STT_DEFAULT')->textInput() ?> -->

     <?php 
echo $form->field($model, 'SCORE_RSLT')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select...'], 'data' => $score]);
?>


     <?php 
echo $form->field($model, 'SCORE_PERCENT_MIN')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'Enter rating 0 to 100...'], 'pluginOptions' => ['postfix' => '%']]);
?>

        <?php 
echo $form->field($model, 'SCORE_PERCENT_MAX')->widget(TouchSpin::classname(), ['options' => ['placeholder' => 'Enter rating 0 to 100...'], 'pluginOptions' => ['postfix' => '%']]);
Exemplo n.º 10
0
?>

    <?php 
echo $form->field($model, 'triagem_id')->widget(Select2::classname(), ['data' => ArrayHelper::map($triagens, 'id', 'nome'), 'options' => ['placeholder' => 'Selecione o Interessado ...'], 'pluginOptions' => ['allowClear' => true]]);
?>

    <?php 
echo $form->field($model, 'tipo')->dropdownList(['divorcio' => 'Divórcio', 'dissolucao' => 'Dissolução de uniões estáveis', 'guardaentrepais' => 'Guarda entre pais', 'modificacaoguarda' => 'Modificação de guarda entre pais', 'alimentos' => 'Alimentos', 'regulamentacaovisitas' => 'Regulamentação de visitas e companhia', 'investigacaopaternidade' => 'Investigação de paternidade', 'reconhecimentovoluntariopaternidade' => 'Reconhecimento voluntário de paternidade'], ['prompt' => 'Selecione']);
?>


    <?php 
echo $form->field($model, 'descricao')->textArea(['maxlength' => true, 'rows' => 6, 'cols' => 30]);
?>

    <?php 
echo $form->field($model, 'date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Agendar a data da Audiencia...'], 'pluginOptions' => ['autoclose' => true]]);
?>

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

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

</div>
Exemplo n.º 11
0
  <?php 
Pjax::begin(['id' => 'pembelian-form-pjax', 'enablePushState' => false]);
?>
      <?php 
$form = ActiveForm::begin(['id' => 'pembelian-form', 'options' => ['data-pjax' => true], 'enableClientValidation' => false]);
?>

    <div class="row">
      <div class="col-xs-6 col-sm-3">
      <?php 
echo $form->field($model, 'NOMOR')->textInput(['maxlength' => true, 'readonly' => true, 'style' => 'text-align:center;']);
?>
      </div>
      <div class="col-xs-6 col-sm-3 col-sm-offset-6 ">
      <?php 
echo $form->field($model, 'TGL')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Tgl Transaksi ...'], 'readonly' => true, 'removeButton' => false, 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-M-yyyy', 'autoclose' => true]]);
?>
      </div>
    </div>

    <div class="row">
      <div class="col-xs-6 col-sm-3">
        <?php 
$data = ArrayHelper::map(Emiten::find()->select(['KODE', 'NAMA', 'DERIVED' => 'CONCAT(KODE," - ",NAMA)'])->asArray()->all(), 'KODE', 'KODE');
echo $form->field($model, 'EMITEN_KODE')->widget(Select2::classname(), ['data' => $data, 'options' => ['placeholder' => 'Pilih Emiten ...', 'onchange' => '
              //var id = Aes.Ctr.encrypt($(this).val(), "123456", 256);
              var id = $(this).val()
              $.post( "' . Url::to(['get-emiten']) . '?id="+id, function( data ) {
                $( "#emiten-name" ).val( data.data.NAMA );
                $( "#emiten-name" ).focus();
              });
Exemplo n.º 12
0
?>

            <?php 
echo $form->field($model, 'org_type')->dropDownList(Lookup::items('OrganizationType'));
?>

            <?php 
echo $form->field($model, 'work_domain')->dropDownList(Lookup::items('WorkDomain'));
?>

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

            <?php 
echo $form->field($model, 'found_date')->widget(DatePicker::classname(), ['pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

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

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

            <?php 
ActiveForm::end();
?>
Exemplo n.º 13
0
    <?php 
$form = ActiveForm::begin();
?>

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

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

    
    <?php 
echo $form->field($model, 'alun_data_nascimento')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Selecione uma data ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']]);
?>

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

    <?php 
echo $form->field($model, 'alun_observacao')->textarea(['rows' => 6]);
?>
    
    <?php 
$rows = \app\models\Estado::find()->all();
$estado = \yii\helpers\ArrayHelper::map($rows, 'esta_codigo', 'esta_nome');
echo $form->field($model, 'esta_codigo')->dropDownList($estado, ['prompt' => 'Selecione um estado', 'onchange' => '
                    $.get( "' . Url::toRoute('/aluno/municipio') . '", { id: $(this).val() } )
Exemplo n.º 14
0
?>

                <?php 
echo $form->field($model, 'loc_id')->widget(GooglePlacesAutoComplete::className(), ['autocompleteOptions' => []]);
?>

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

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

                <?php 
echo $form->field($model, 'update_time', ['feedbackIcon' => ['default' => 'calendar', 'success' => 'ok', 'error' => 'exclamation-sign', 'defaultOptions' => ['class' => 'text-primary']]])->widget(DatePicker::classname(), ['name' => 'operation_time', 'language' => 'sr', 'value' => date('d-M-Y H:i A', strtotime('+2 days')), 'options' => ['placeholder' => 'Select operating time ...']]);
?>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-9">
                    <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
                </div>                
            </div>            
        </fieldset>
    <?php 
ActiveForm::end();
?>
Exemplo n.º 15
0
?>

    <?php 
echo $form->field($model, 'IS_ACTIVE')->dropDownList(['TRUE' => 'TRUE', 'FALSE' => 'FALSE'], ['prompt' => '']);
?>

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

    <?php 
echo $form->field($model, 'PASSWORD')->passwordInput(['maxlength' => 60]);
?>

    <?php 
echo $form->field($model, 'JOINED_DATE')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter birth date ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>


    

    <?php 
echo $form->field($model, 'COMPANY_ID')->dropDownList(ArrayHelper::map(COMPANIES::find()->all(), 'COMPANY_ID', 'COMPANY_NAME'), ['prompt' => '-Choose a Company-']);
//This works WITHOUT $model
//      Html::dropDownList('COMPANY_ID', null,ArrayHelper::map(COMPANIES::find()->all(), 'COMPANY_ID', 'COMPANY_NAME'),['prompt' => '---- Choose a Company ----']);
//This works with $model, but the CSS is off
//      Html::activeDropDownList($model, 'COMPANY_ID',ArrayHelper::map(COMPANIES::find()->all(), 'COMPANY_ID', 'COMPANY_NAME'));
?>
    
    
    <?php 
Exemplo n.º 16
0
// $form->field($model, 'startDate')->textInput()
?>

    <?php 
// $form->field($model, 'endDate')->textInput()
?>
    
    
    
    <?php 
echo $form->field($model, 'showTime')->textInput(['placeholder' => 'For e.g. 10:00 AM, 4:00 PM']);
?>
    
     <?php 
// Usage with model and Active Form (with no default initial value)
echo $form->field($model, 'lastEndDate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter End Date ...'], 'pluginOptions' => ['format' => 'yyyy-mm-dd', 'autoclose' => true]]);
?>
    
    <?php 
// $form->field($model, 'lastEndDate')->textInput()
?>

    <?php 
// $form->field($model, 'showTime')->textInput()
?>

    <?php 
echo $form->field($model, 'nextWeekShowTime')->textInput(['placeholder' => 'For e.g. 10:00 am, 4:00 pm']);
?>
     <?php 
echo $form->field($model, 'launguageId')->hiddenInput(['value' => ''])->label('');
Exemplo n.º 17
0
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'created_at_till')->widget(DatePicker::classname(), ['options' => ['placeholder' => ''], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]);
?>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'updated_at_from')->widget(DatePicker::classname(), ['options' => ['placeholder' => ''], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]);
?>
        </div>
        <div class="col-lg-6">
            <?php 
echo $form->field($model, 'updated_at_till')->widget(DatePicker::classname(), ['options' => ['placeholder' => ''], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]);
?>
        </div>
    </div>

    <div class="form-group row text-center">
        <div class="col-lg-12">
            <?php 
echo Html::submitButton('<i class="glyphicon glyphicon-search"></i> ' . Yii::t('document', 'Найти'), ['class' => 'btn btn-primary btn-lg']);
?>
        </div>
    </div>


    <?php 
ActiveForm::end();
Exemplo n.º 18
0
 //'required' => true,
 'pluginOptions' => [
 'autoclose' => true,
 'format' => 'yyyy-mm-dd'
 ]
 ]);
* 
*/
?>

<?php 
echo $form->field($model, 'order_date_start')->widget(\kartik\widgets\DatePicker::classname(), ['language' => 'th', 'removeButton' => false, 'options' => ['value' => date("Y-m-d"), 'readonly' => true], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>

<?php 
echo $form->field($model, 'order_date_end')->widget(\kartik\widgets\DatePicker::classname(), ['language' => 'th', 'removeButton' => false, 'options' => ['value' => date("Y-m-d"), 'readonly' => true], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayHighlight' => true]]);
?>

<?php 
echo $form->field($model, 'truck1')->dropDownList(ArrayHelper::map(\app\models\Truck::find()->where(['delete_flag' => '0'])->all(), 'id', 'license_plate'), ['id' => 'id', 'required' => 'required', 'prompt' => 'เลือกรถบรรทุก']);
?>

<?php 
echo $form->field($model, 'truck2')->dropDownList(ArrayHelper::map(\app\models\Truck::find()->where(['delete_flag' => '0'])->all(), 'id', 'license_plate'), ['id' => 'id', 'prompt' => 'เลือกรถถบรรทุก']);
?>

<?php 
$sql1 = "select id,concat(name,' ',lname) as name from driver where delete_flag = '0'";
echo $form->field($model, 'driver1')->dropDownList(ArrayHelper::map(\app\models\Driver::findBySql($sql1)->all(), 'id', 'name'), ['id' => 'id', 'required' => 'required', 'prompt' => 'เลือกคนขับ']);
?>
Exemplo n.º 19
0
    <h3>Основное</h3>
    <?php 
echo $form->field($model->info, 'firstName');
?>
    <?php 
echo $form->field($model->info, 'lastName');
?>
    <?php 
echo $form->field($model, 'email', ['inputTemplate' => '<div class="input-group"><span class="input-group-addon">@</span>{input}</div>']);
?>
    <?php 
echo $form->field($model->info, 'phone', ['inputTemplate' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-phone"></span></span>{input}</div>']);
?>
    <?php 
echo $form->field($model->info, 'birthday')->widget(DatePicker::classname());
?>

    <h3>Смена фотографии</h3>
    <?php 
echo $form->field($model, 'photo')->widget(FileInput::className());
?>

    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-6">
            <?php 
echo Html::submitButton('Сохранить', ['class' => 'btn btn-primary']);
?>
        </div>
    </div>
Exemplo n.º 20
0
?>

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

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

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

    <?php 
echo $form->field($model, 'birth_dt')->widget(DatePicker::classname(), ['pluginOptions' => ['format' => 'dd-mm-yyyy', 'todayHighlight' => true]]);
?>

    <?php 
echo $form->field($model, 'level')->dropDownList($model->getLevelsArray());
?>

    <?php 
echo $form->field($model, 'teachers')->widget(Select2::classname(), ['data' => \app\models\Teacher::getItemsList(), 'options' => ['multiple' => true], 'pluginOptions' => ['allowClear' => true, 'tags' => false, 'tokenSeparators' => [','], 'maximumInputLength' => 255]]);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Exemplo n.º 21
0
?>
			</div>
			<div class="col-lg-4">
				<?php 
echo Html::img(Yii::getAlias('@web') . '/upload/hrd/Employee/' . $model->EMP_IMG, ['width' => '130', 'height' => '130', 'align' => 'right']);
?>
			</div>
			<div class="col-lg-12">
				<?php 
/* echo $form->field($model, 'vCabID')->dropDownList($aryCbgID,[
				'id'=>'emp-cab',
				'prompt'=>$model->cabOne['CAB_NM'],
			])->label('Cabang'); */
echo $form->field($model, 'EMP_KTP')->textInput(['maxlength' => true, 'style' => ['width' => '100%']])->label('Nomer KTP');
echo $form->field($model, 'EMP_ZIP')->textInput(['maxlength' => true, 'style' => ['width' => '100%']])->label('Emp ZIP');
echo $form->field($model, 'EMP_TGL_LAHIR')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter Join date ...'], 'pluginEvents' => ['show' => "function(e) {show}"], 'pluginOptions' => ['autoclose' => true]])->label('Birth Date');
echo $form->field($model, 'EMP_GENDER')->radioList(['Male' => 'Male', 'Female' => 'Female'], ['separator' => '', 'tabindex' => 3]);
echo $form->field($model, 'EMP_EMAIL')->textInput(['maxlength' => true, 'style' => ['width' => '100%']])->label('Email');
echo $form->field($model, 'EMP_ALAMAT')->textArea(['maxlength' => true, 'style' => ['width' => '100%']])->label('Alamat');
?>
			</div>
	<div  class="col-lg-12" style="text-align: right;">
			<?php 
echo Html::submitButton('Update', ['class' => 'btn btn-primary']);
?>
		</div>

    <?php 
ActiveForm::end();
?>
	</div>
Exemplo n.º 22
0
            <div class="col-lg-6">
                <?php 
echo $form->field($model, 'email_confirm_token')->textInput(['maxlength' => true]);
?>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-6">
                <?php 
echo $form->field($model, 'password')->passwordInput();
?>
            </div>
            <div class="col-lg-6">
                <?php 
echo $form->field($model, 'birthday')->widget(DatePicker::classname(), ['options' => ['placeholder' => $model->getAttributeLabel('birthday')], 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'pluginOptions' => ['autoclose' => true, 'format' => 'dd.mm.yyyy']]);
?>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-6">
                <?php 
echo $form->field($model, 'email')->textInput(['maxlength' => true]);
?>
            </div>
            <div class="col-lg-6">
                <?php 
echo $form->field($model, 'phone')->textInput(['maxlength' => true]);
?>
            </div>
Exemplo n.º 23
0
?>

 <?php 
echo $form->field($budget, 'ID_TERM')->hiddenInput(['value' => $id])->label(false);
?>

<?php 
echo $form->field($budget, 'INVES_TYPE')->widget(Select2::classname(), ['options' => ['placeholder' => 'Select Type Investasi ...'], 'data' => $budget->data($data1, $to1, $from1)]);
?>

<?php 
echo $form->field($budget, 'PERIODE_START')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Dari  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy'], 'pluginEvents' => ['show' => "function(e) {errror}"]]);
?>

<?php 
echo $form->field($budget, 'PERIODE_END')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Sampai'], 'pluginOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy'], 'pluginEvents' => ['show' => "function(e) {error}"]]);
?>

<?php 
echo $form->field($budget, 'PROGRAM')->textArea(['options' => ['rows' => 5]]);
?>

<?php 
echo $form->field($budget, 'BUDGET_PLAN')->widget(MaskMoney::classname(), ['pluginOptions' => ['prefix' => 'Rp', 'precision' => 2, 'allowNegative' => false]]);
?>



<div class="form-group">
    <?php 
echo Html::submitButton($budget->isNewRecord ? 'Create' : 'Update', ['class' => $budget->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
Exemplo n.º 24
0
                                   
                                    <?php 
echo $form->field($person, 'nombres')->textInput(['required' => true, 'placeholder' => 'introduzca nombre persona']);
?>

                                    <?php 
echo $form->field($person, 'apellidos')->textInput(['required' => true, 'placeholder' => 'introduzca apellido persona']);
?>
                                    
                                    <?php 
echo $form->field($person, 'direccion')->textInput(['required' => true, 'placeholder' => 'introduzca direccion']);
?>
                                    
                                 
                                    <?php 
echo $form->field($person, 'fnacimiento')->widget(DatePicker::classname(), ['name' => 'fnacimiento', 'type' => DatePicker::TYPE_COMPONENT_APPEND, 'options' => ['placeholder' => 'Fecha de Nacimiento ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-dd']]);
?>
                                    
                                    
                                    
                                    <?php 
echo $form->field($person, 'tlf1')->textInput(['placeholder' => 'telefono'])->label('Telefono');
?>
                                    
                                    <?php 
echo $form->field($person, 'correoe')->textInput(['placeholder' => 'correo'])->label('Correo');
?>
                                    
                                    <?php 
echo $form->field($person, 'sexo')->radioList(array('m' => 'Masculino', 'f' => 'Femenino'));
?>
Exemplo n.º 25
0
    <?php 
echo $form->field($model, 'DESTINATION_TO')->widget(Select2::classname(), ['data' => $dropemploy, 'options' => ['placeholder' => 'Pilih Karyawan ...'], 'pluginOptions' => ['allowClear' => true]]);
$options = ['multiple' => true];
// echo $form->field($model, $attribute)->listBox($items, $options);
echo $form->field($model, 'USER_CC')->widget(DualListbox::className(), ['items' => $dropemploy, 'options' => $options, 'clientOptions' => ['moveOnSelect' => false, 'selectedListLabel' => 'Selected Items', 'nonSelectedListLabel' => 'Available Items']]);
?>
	
 

  <?php 
echo $form->field($model, 'PLAN_DATE1')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter...', 'value' => $tgl], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>


  <?php 
echo $form->field($model, 'PLAN_DATE2')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter...', 'value' => $tgl_1], 'pluginOptions' => ['autoclose' => true], 'pluginEvents' => ['show' => "function(e) {show}"]]);
?>

   


      <!--$form->field($model, 'ACTUAL_DATE2')->widget(DatePicker::classname(), [
    'options' => ['placeholder' => 'Enter date ...'],
    'pluginOptions' => [
        'autoclose'=>true
    ],
    'pluginEvents' => [
                      'show' => "function(e) {show}",
    ],
]);?>-->
Exemplo n.º 26
0
?>
            <?php 
echo $form->field($model, 'langs', ['options' => ['class' => 'sr-only']])->hiddenInput();
?>
        </div>
        <div class="col-lg-4">
            <?php 
echo $form->field($model, 'langs')->dropDownList(\app\models\tblLangs::makeDropDown(), ['style' => 'width: 140px;', 'disabled' => 'disabled', 'onchange' => 'form.submit();']);
?>
            <?php 
echo $form->field($model, 'cid')->dropDownList(Categories::makeDropDown($model->langs), ['style' => 'margin-right: 10px; width: 230px;']);
?>
            <?php 
echo $form->field($model, 'published')->widget(SwitchInput::classname(), ['pluginOptions' => ['size' => 'normal'], 'inlineLabel' => false]);
echo $form->field($model, 'startdate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'เริ่มวันที่', 'style' => 'width: 160px;'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
echo $form->field($model, 'finishdate')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'สิ้นสุดวันที่', 'style' => 'width: 160px;'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
    
        </div>
    </div>
    <?php 
if (Yii::$app->user->can('Administrator')) {
    ?>
        <div class="row">
            <div class="col-md-12">
                <?php 
    echo $form->field($model, 'upload_files[]')->widget(FileInput::classname(), ['options' => ['multiple' => true], 'pluginOptions' => ['showPreview' => true, 'showUpload' => false, 'showCaption' => false, 'uploadClass' => 'btn btn-info', 'removeClass' => 'btn btn-danger', 'elCaptionText' => '#customCaption']]);
    ?>
                <div class="file-input">
                    <div class="file-preview-thumbnails">            
                        <?php 
Exemplo n.º 27
0
<div class="col-md-offset-3 col-md-6">
<div class="panel-body">
<h2>Attendance Form</h2><br/>
<?php 
$form = ActiveForm::begin(['action' => Yii::$app->getUrlManager()->createUrl('attendance/create')]);
//$form = ActiveForm::begin(['layout' => 'horizontal'])
?>
	<div class="form-group">
		<?php 
echo $form->field($model, 'empID')->dropDownList(ArrayHelper::map($empList, 'empID', 'name'), ['prompt' => 'Select Employee']);
?>
	</div>
	<div class="form-group">
		<?php 
echo $form->field($model, 'date')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date'], 'pluginOptions' => ['todayHighlight' => true, 'todayBtn' => true, 'format' => 'dd-mm-yyyy', 'autoclose' => true]]);
?>
	</div>
  <div class="form-group">
		<?php 
echo $form->field($model, 'startTime')->widget(TimePicker::classname(), []);
?>
  </div>
  <div class="form-group">
		<?php 
echo $form->field($model, 'endTime')->widget(TimePicker::classname(), []);
?>
  </div>  
  <?php 
echo Html::submitButton('Submit', ['class' => 'btn btn-primary']);
ActiveForm::end();
<?php

/**
 * @var $attribute_name string
 * @var $form \yii\widgets\ActiveForm
 * @var $label string
 * @var $model \app\properties\AbstractModel
 * @var $multiple boolean
 * @var $property_id integer
 * @var $property_key string
 * @var $this \app\properties\handlers\Handler
 * @var $values array
 */
use kartik\widgets\DatePicker;
echo $form->field($model, $property_key . '[0]')->widget(DatePicker::classname(), ['pluginOptions' => ['autoclose' => true]]);
Exemplo n.º 29
0
?>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-12">
            <div class="form-group row">
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'released_from')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date ...'], 'pluginOptions' => ['autoclose' => true]]);
?>
                </div>
                <div class="col-md-3">
                    <?php 
echo $form->field($model, 'released_to')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Enter date ...'], 'pluginOptions' => ['autoclose' => true]]);
?>
                </div>
                <div class="col-md-3">
                    <?php 
echo Html::submitButton('Search', ['class' => 'btn btn-primary']);
?>
                </div>
            </div>
        </div>
    </div>

    <?php 
ActiveForm::end();
?>
Exemplo n.º 30
0
<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\widgets\DatePicker;
use yii\helpers\Url;
yii\widgets\Pjax::begin(['id' => 'detail-chek-tgl']);
?>
	<?php 
$form = ActiveForm::begin(['id' => $model->formName() . 'detail', 'enableClientValidation' => false, 'enableAjaxValidation' => true, 'validationUrl' => Url::toRoute('/master/review-visit/ambil-tanggal-issue'), 'action' => ['/master/review-visit/index']]);
?>
	
	<?php 
echo $form->field($model, 'tgl_detail')->widget(DatePicker::classname(), ['options' => ['placeholder' => 'Pilih  ...'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])->label('Tanggal');
?>
		
		<div style="text-align: right;"">
			<?php 
//echo Html::submitButton('Submit',['class' => 'btn btn-primary']);
?>
		</div>

    
	<?php 
ActiveForm::end();
?>
	
<?php 
yii\widgets\Pjax::end();
?>