if ($model->isNewRecord) { ?> <?php echo $form->field($model, 'nik')->input('number', ['min' => '0'])->label('Empat Digit Terakhir *'); ?> <?php echo $form->field($model, 'nama')->textInput(); ?> <?php echo $form->field($model, 'tempat_lahir')->textInput(); ?> <?php echo $form->field($model, 'tanggal_lahir')->widget(DatePicker::className(), ['clientOptions' => ['format' => 'DD-MM-YYYY']]); ?> <?php echo $form->field($model, 'jenis_kelamin')->radioList(array('1' => 'Laki-laki', '2' => 'Perempuan')); ?> <?php echo $form->field($model, 'golongan_darah')->radioList(array('o' => 'O', 'a' => 'A', 'b' => 'B', 'ab' => 'AB')); ?> <?php echo $form->field($model, 'tanggal_diterbitkan')->input('hidden')->label(false); ?> <?php
<div class="report-index"> <div class="service-menu"> <?php echo $this->render('../parts/menu'); ?> </div> <br style="clear: both;" /> <div class="row session-finder"> <div class="col-md-6"> <form action="" method="get"> <p>Выберите сессию:</p> <?php echo DatePicker::widget(['name' => 'date', 'addon' => false, 'value' => $date, 'size' => 'sm', 'language' => 'ru', 'options' => ['class' => 'get-sessions-by-date', 'href' => Url::toRoute(['/service/report/get-sessions'])], 'placeholder' => yii::t('order', 'Date from'), 'clientOptions' => ['format' => 'L', 'minDate' => '2015-01-01', 'maxDate' => date('Y-m-d')], 'dropdownItems' => [['label' => 'Yesterday', 'url' => '#', 'value' => \Yii::$app->formatter->asDate('-1 day')], ['label' => 'Tomorrow', 'url' => '#', 'value' => \Yii::$app->formatter->asDate('+1 day')], ['label' => 'Some value', 'url' => '#', 'value' => 'Special value']]]); ?> <ul> <?php foreach ($sessions as $sessionList) { ?> <li><a <?php if ($session && $sessionList->id == $sessionId) { echo 'style="font-weight: bold;"'; } ?> href="<?php echo Url::toRoute(['/service/report/index', 'sessionId' => $sessionList->id]); ?> "><?php
?> " /> <p><small><?php echo yii::t('order', 'Date from'); ?> : <?php echo Html::encode($timeStart); ?> </small></p> <?php } ?> </div> <div class="col-md-6"> <?php echo DatePicker::widget(['name' => 'date_stop', 'addon' => false, 'value' => $dateStop, 'size' => 'sm', 'placeholder' => yii::t('order', 'Date to'), 'language' => 'ru', 'clientOptions' => ['format' => 'L', 'minDate' => '2015-01-01', 'maxDate' => date('Y-m-d')], 'dropdownItems' => [['label' => yii::t('order', 'Yesterday'), 'url' => '#', 'value' => \Yii::$app->formatter->asDate('-1 day')], ['label' => yii::t('order', 'Tomorrow'), 'url' => '#', 'value' => \Yii::$app->formatter->asDate('+1 day')], ['label' => yii::t('order', 'Some value'), 'url' => '#', 'value' => 'Special value']]]); ?> <?php if ($timeStop && !yii::$app->request->get('OrderSearch')) { ?> <input type="hidden" name="time_stop" value="<?php echo Html::encode($timeStop); ?> " /> <p><small><?php echo yii::t('order', 'Date to'); ?> : <br /><?php echo Html::encode($timeStop); ?> </small></p>
<!-- Custom tabs (Charts with tabs)--> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title">Statistik</h3> </div><!-- /.box-header --> <div class="box-body"> <div class="row"> <?php $form = ActiveForm::begin(['layout' => 'horizontal']); ?> <?php echo $form->field($model, 'dari')->widget(DatePicker::className(), ['size' => 'sm', 'readonly' => true, 'value' => \Yii::$app->formatter->asDate('-1 month', 'php:d-M-Y'), 'language' => 'id', 'clientOptions' => ['format' => 'YYYY']]); ?> <?php echo $form->field($model, 'sampai')->widget(DatePicker::className(), ['size' => 'sm', 'readonly' => true, 'value' => \Yii::$app->formatter->asDate('-1 month', 'php:d-M-Y'), 'language' => 'id', 'clientOptions' => ['format' => 'YYYY']]); ?> <div class="col-md-12"> <div class="col-sm-3"></div> <div class="col-sm-6"> <div class="form-group"> <?php echo Html::submitButton('OK', ['class' => 'btn btn-primary']); ?> </div> </div> </div> <?php ActiveForm::end(); ?> </div>