<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, 'image')->fileInput(); ?> <?php echo $form->field($model, 'date')->widget(yii\jui\DatePicker::classname(), ['language' => Yii::$app->language, 'dateFormat' => 'yyyy-MM-dd']); ?> <?php echo $form->field($model, 'author_id')->dropDownList(ArrayHelper::map(Authors::find()->all(), 'id', function ($model) { return $model->firstname . ' ' . $model->lastname; })); ?> <div class="form-group"> <?php echo Html::submitButton($model->isNewRecord ? 'Сохранить' : 'Обновить', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?> </div> <?php
} else { $action = ['create']; } ?> <?php $form = ActiveForm::begin(['id' => 'national-holidays-form', 'action' => $action, 'enableAjaxValidation' => true]); ?> <div class="col-sm-6"> <?php echo $form->field($model, 'national_holiday_name', ['inputOptions' => ['class' => 'form-control', 'placeholder' => Yii::t('app', 'National Holiday')]])->textInput(['maxlength' => 50])->label(false); ?> </div> <div class="col-sm-6"> <?php echo $form->field($model, 'national_holiday_date')->widget(yii\jui\DatePicker::className(), ['options' => ['placeholder' => Yii::t('app', 'Holiday Date')], 'clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'buttonImage' => Yii::$app->homeUrl . "images/calendar.png", 'htmlOptions' => ['style' => 'width:250px;', 'class' => 'form-control']]])->label(false); ?> </div> <div class="col-sm-12"> <?php echo $form->field($model, 'national_holiday_remarks', ['inputOptions' => ['class' => 'form-control', 'placeholder' => Yii::t('app', 'Remarks')]])->textInput(['maxlength' => 100])->label(false); ?> </div> <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding edusecArLangCss"> <div class="col-xs-6"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-block btn-success' : 'btn btn-block btn-info']); ?> </div>
use yii\helpers\Html; use yii\bootstrap\Modal; use kartik\grid\GridView; use johnitvn\ajaxcrud\CrudAsset; use johnitvn\ajaxcrud\BulkButtonWidget; use kartik\date\DatePicker; use app\yourmodule\AppAsset; /* @var $this yii\web\View */ /* @var $searchModel app\modules\unicred\models\AnswerListSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ /* @var $statusList array */ $this->title = 'Управление опросами'; $this->params['breadcrumbs'][] = ['label' => 'Система опросов', 'url' => ['/unicred/']]; $this->params['breadcrumbs'][] = $this->title; CrudAsset::register($this); yii\jui\DatePicker::widget(['language' => 'ru']); $js = ' jQuery(document).ready(function(){ $( "input[name=\'AnswerListSearch[date_from]\']" ).datepicker({ dateFormat: "yy-mm-dd" ,language:"ru"}); $( "input[name=\'AnswerListSearch[date_to]\']" ).datepicker({ dateFormat: "yy-mm-dd" }); }); '; $this->registerJs($js); ?> <div class="answer-list-index"> <div id="ajaxCrudDatatable"> <?php echo GridView::widget(['id' => 'crud-datatable', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'pjax' => false, 'columns' => require __DIR__ . '/_columns.php', 'toolbar' => [['content' => Html::a('<i class="glyphicon glyphicon-plus">Назначить</i>', ['create'], ['role' => 'modal-remote', 'title' => 'Назначить опросный лист отделению', 'class' => 'btn btn-default']) . Html::a('<i class="glyphicon glyphicon-repeat"></i>', [''], ['data-pjax' => 1, 'class' => 'btn btn-default', 'title' => 'Обновить']) . '{toggleData}' . '{export}']], 'striped' => true, 'condensed' => true, 'responsive' => true, 'panel' => ['type' => 'primary', 'heading' => '<i class="glyphicon glyphicon-list"></i> Конструктор опросов', 'before' => '<em>* Потяните за границу колонки, чтобы изменить ее размер.</em>', 'after' => BulkButtonWidget::widget(['buttons' => Html::a('<i class="glyphicon glyphicon-trash"></i> Удалить Все', ["bulk-delete"], ["class" => "btn btn-danger btn-xs", 'role' => 'modal-remote-bulk', 'data-confirm' => false, 'data-method' => false, 'data-request-method' => 'post', 'data-confirm-title' => 'Вы уверены?', 'data-confirm-message' => 'Вы уверены, что хотите удалить выделенные записи?'])]) . '<div class="clearfix"></div>']]); ?> </div>
?> </div> </div> <div class="row"> <div class="col-md-12"> <?php echo $form->field($user, 'tags')->textInput(['placeholder' => Yii::t('TourModule.views_tour_welcome', 'Your skills, knowledge and experience (comma seperated)')]); ?> </div> </div> <div class="row"> <div class="col-md-6"> <?php echo $form->field($user->profile, 'birthday')->widget(yii\jui\DatePicker::className(), ['dateFormat' => \humhub\modules\user\models\fieldtype\Birthday::DATEPICKER_FORMAT, 'clientOptions' => [], 'options' => ['class' => 'form-control']]); ?> </div> <div class="col-md-6"> <br><br> <?php echo $form->field($user->profile, 'birthday_hide_year')->checkbox(['label' => Yii::t('TourModule.views_tour_welcome', 'Hide my year of birth')]); ?> </div> </div> <div class="row"> <div class="col-md-12"> <hr> </div> </div>
echo $form->field($model, 'notice_description')->textArea(['maxlength' => 255, 'placeholder' => 'Enter Description']); ?> <?php echo $form->field($model, 'notice_user_type')->radioList(["S" => 'Student', "E" => 'Employee', '0' => 'General'], ['item' => function ($index, $label, $name, $checked, $value) { $return = '<label class="left-padding">'; $return .= Html::radio($name, $checked, ['value' => $value]); $return .= '<i></i>'; $return .= '<span> ' . ucwords($label) . '</span>'; $return .= '</label>'; return $return; }])->label('User Type'); ?> <?php echo $form->field($model, 'notice_date')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true], 'options' => ['class' => 'form-control', 'placeholder' => 'Select Date']]); ?> <?php echo $form->field($model, 'notice_file_path')->fileInput(); ?> <?php echo $form->field($model, 'is_status')->checkBox(['value' => 0, 'uncheck' => 1], true); ?> <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding"> <div class="col-xs-6"> <?php echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-block btn-success' : 'btn btn-block btn-info']); ?>
/* @var $model app\models\Books */ /* @var $form yii\widgets\ActiveForm */ ?> <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, 'date_create')->widget(yii\jui\DatePicker::className(), ['language' => 'ru', 'dateFormat' => 'yyyy-MM-dd']); ?> <?php echo $form->field($model, 'preview')->fileInput(); ?> <?php if ($model->getPreviewUrl()) { ?> <?php echo Html::img($model->getPreviewUrl(), ['width' => 150]); ?> <?php } ?>
?> </div> </div> <div class="row"> <div class="col-md-12"> <?php echo $form->field($user, 'tags')->textInput(['placeholder' => Yii::t('TourModule.views_tour_welcome', 'Your skills, knowledge and experience (comma seperated)')]); ?> </div> </div> <div class="row"> <div class="col-md-6"> <?php echo $form->field($user->profile, 'birthday')->widget(yii\jui\DatePicker::className(), ['clientOptions' => [], 'options' => ['class' => 'form-control', 'placeholder' => Yii::t('TourModule.views_tour_welcome', 'mm/dd/yyyy')]]); ?> </div> <div class="col-md-6"> <br><br> <?php echo $form->field($user->profile, 'birthday_hide_year')->checkbox(['label' => Yii::t('TourModule.views_tour_welcome', 'Hide my year of birth')]); ?> </div> </div> <div class="row"> <div class="col-md-12"> <hr> </div> </div>
/* @var $searchModel app\models\UsersSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = '面试者管理'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="users-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <p> <?php echo Html::a('Create Users', ['create'], ['class' => 'btn btn-success']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'user_name', 'idcard', 'mobile', 'score', ['attribute' => 'create_time', 'value' => function ($model) { return date('Y/m/d H:i:s', $model->create_time); }, 'filter' => function ($model) { return yii\jui\DatePicker::widget(['name' => 'create_time']); }], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div>
<div class='well'> <!--h4><i class="icon fa fa-bar-chart"></i> รายการความเสี่ยงทั้งหมด</h4--> <form method="POST"> <div class="row"> <div class="col-md-3"> <?php echo yii\jui\DatePicker::widget(['name' => 'date1', 'value' => $date1, 'language' => 'th', 'dateFormat' => 'yyyy-MM-dd', 'options' => ['placeholder' => '', 'class' => 'form-control', 'changeMonth' => true, 'changeYear' => true, 'yearRange' => '1996:2099', 'showOn' => 'button', 'buttonImageOnly' => true, 'buttonText' => 'Select date']]); ?> <!-- /input-group --> </div> <!-- /.col-lg-3 --> <div class="col-md-3"> <?php echo yii\jui\DatePicker::widget(['name' => 'date2', 'value' => $date2, 'language' => 'th', 'dateFormat' => 'yyyy-MM-dd', 'options' => ['placeholder' => '', 'class' => 'form-control', 'changeMonth' => true, 'changeYear' => true, 'yearRange' => '1996:2099', 'showOn' => 'button', 'buttonImageOnly' => true, 'buttonText' => 'Select date']]); ?> <!-- /input-group --> </div> <!-- /.col-lg-3 --> <div class="col-md-3"> <?php $list = yii\helpers\ArrayHelper::map(app\models\Hospname::find()->all(), 'id', 'hospname'); echo yii\helpers\Html::dropDownList('hospcode', $hospcode, $list, ['prompt' => 'เลือกสถานพยาบาล', 'class' => 'form-control']); ?> </div> <div class="col-md-3"> <div class="input-group"> <button class='btn btn-success'>ประมวลผล</button> </div>
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel bariew\postModule\models\SearchItem */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('modules/post', 'Items'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="item-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <p> <?php echo Html::a(Yii::t('modules/post', 'Create Item'), ['create'], ['class' => 'btn btn-success']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', 'title', 'is_active:boolean', ['attribute' => 'created_at', 'format' => 'datetime', 'filter' => yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'created_at', 'dateFormat' => 'php:Y-m-d', 'options' => ['class' => 'form-control']])], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div>
<?php use yii\helpers\Html; use yii\grid\GridView; /** * @var yii\web\View $this * @var yii\data\ActiveDataProvider $dataProvider * @var bariew\userModule\models\UserSearch $searchModel */ $this->title = Yii::t('modules/user', 'Users'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <p> <?php echo Html::a(Yii::t('modules/user', 'Create User'), ['create'], ['class' => 'btn btn-success']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['id', 'email:email', 'username', ['attribute' => 'created_at', 'format' => 'datetime', 'filter' => yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'created_at', 'dateFormat' => 'php:Y-m-d', 'options' => ['class' => 'form-control']])], ['class' => 'yii\\grid\\ActionColumn']]]); ?> </div>
</div> <div class="row"> <div class="col-md-3"> <div class="form-group from_date"> <label for="from_date" class="control-label">Дата выхода книги:</label> <?php echo yii\jui\DatePicker::widget(['model' => $model, 'attribute' => 'from_date', 'language' => 'ru', 'dateFormat' => 'yyyy-MM-dd', 'options' => ['class' => 'form-control']]); ?> </div> </div> <div class="col-md-3"> <div class="form-group from_date"> <label for="from_date" class="control-label">до:</label> <?php echo yii\jui\DatePicker::widget(['model' => $model, 'attribute' => 'to_date', 'language' => 'ru', 'dateFormat' => 'yyyy-MM-dd', 'options' => ['class' => 'form-control']]); ?> </div> </div> <div class="col-md-6"> <div class="form-group"> <?php echo Html::submitButton('Search', ['class' => 'btn btn-primary']); ?> </div> </div> </div> <?php ActiveForm::end(); ?>
<?php echo $form->field($task, 'assignedUserGuids')->textInput(['id' => 'assignedUserGuids']); ?> <?php // attach mention widget to it echo humhub\modules\user\widgets\UserPicker::widget(array('model' => $task, 'inputId' => 'assignedUserGuids', 'attribute' => 'assignedUserGuids', 'userSearchUrl' => $this->context->contentContainer->createUrl('/space/membership/search', array('keyword' => '-keywordPlaceholder-')), 'maxUsers' => 10, 'placeholderText' => Yii::t('TasksModule.views_task_edit', 'Assign users'))); ?> </div> <div class="col-md-4"> <div class="form-group"> <?php echo $form->field($task, 'deadline')->widget(yii\jui\DatePicker::className(), ['dateFormat' => Yii::$app->params['formatter']['defaultDateFormat'], 'clientOptions' => [], 'options' => ['class' => 'form-control', 'placeholder' => Yii::t('TasksModule.views_task_edit', 'Deadline')]]); ?> </div> </div> </div> <br> <div class="row"> <div class="col-md-12"> <?php echo \humhub\widgets\AjaxButton::widget(['label' => Yii::t('TasksModule.views_task_edit', 'Save'), 'ajaxOptions' => ['type' => 'POST', 'beforeSend' => new yii\web\JsExpression('function(){ setModalLoader(); }'), 'success' => new yii\web\JsExpression('function(html){ $("#globalModal").html(html); }'), 'url' => $task->content->container->createUrl('/tasks/task/edit', ['id' => $task->id])], 'htmlOptions' => ['class' => 'btn btn-primary']]); ?> <button type="button" class="btn btn-primary" data-dismiss="modal"><?php
use app\modules\business\models\CustomerDetails; use kartik\widgets\DepDrop; use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $model app\modules\business\models\Trips */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="trips-form"> <?php $form = ActiveForm::begin(); ?> <?php echo $form->field($model, 'date_of_travel')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'yearRange' => '1900:' . (date('Y') + 1)], 'options' => ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('date_of_travel'), 'style' => 'width:500px']]); ?> <?php echo $form->field($model, 'merchant')->dropDownList(ArrayHelper::map(CustomerDetails::find()->where(['status' => 1, 'customer_type' => 1])->all(), 'id', 'name'), ['prompt' => 'Select Merchant', 'style' => 'width:500px', 'onChange' => 'merchantAmount();']); ?> <?php echo $form->field($model, 'buyer')->dropDownList(ArrayHelper::map(CustomerDetails::find()->where(['status' => 1, 'customer_type' => 2])->all(), 'id', 'name'), ['prompt' => 'Select Buyer', 'style' => 'width:500px', 'onChange' => 'buyerAmount();']); ?> <?php echo $form->field($model, 'vehicle_id')->dropDownList(ArrayHelper::map(VehicleDetails::find()->where(['status' => 1])->all(), 'id', 'name'), ['prompt' => 'Select Vehicle', 'style' => 'width:500px', 'id' => 'vehicle-id', 'onChange' => 'calculateKMA();']); ?>
<div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'fees_collect_start_date')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'yearRange' => '1900:' . (date('Y') + 1)], 'options' => ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_start_date')]]); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'fees_collect_end_date')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'yearRange' => '1900:' . (date('Y') + 1)], 'options' => ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_end_date')]]); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'fees_collect_due_date')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'yearRange' => '1900:' . (date('Y') + 1)], 'options' => ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_due_date')]]); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php if (Yii::$app->controller->action->id === 'create') { echo $form->field($model, 'fees_collect_batch_id[]')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name'), ['multiple' => "multiple", 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_batch_id')]); } else { echo $form->field($model, 'fees_collect_batch_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name'), ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_batch_id')]); } ?> </div> <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding edusecArLangCss"> <div class="col-xs-6">
echo $sql; ?> </div> <div class='well'> <form method="POST"> ระหว่างวันที่: <div class="row"> <div class="col-xs-4 col-sm-4 col-md-5"> <?php echo yii\jui\DatePicker::widget(['name' => 'date1', 'value' => $date1, 'language' => 'th', 'dateFormat' => 'yyyy-MM-dd', 'clientOptions' => ['changeMonth' => true, 'changeYear' => true], 'options' => ['class' => 'form-control']]); ?> ถึงวันที่: <?php echo yii\jui\DatePicker::widget(['name' => 'date2', 'value' => $date2, 'language' => 'th', 'dateFormat' => 'yyyy-MM-dd', 'clientOptions' => ['changeMonth' => true, 'changeYear' => true], 'options' => ['class' => 'form-control']]); ?> </div> <div class="col-xs-4 col-sm-4 col-md-2"> <button class='btn btn-danger'>ประมวลผล</button> </div> </div> </form> </div> <?php Pjax::begin(); ?> <?php echo \kartik\grid\GridView::widget(['dataProvider' => $dataProvider, 'formatter' => ['class' => 'yii\\i18n\\Formatter', 'nullDisplay' => '-'], 'responsive' => TRUE, 'hover' => true, 'floatHeader' => FALSE, 'panel' => ['heading' => 'รายการสอบเทียบค่ามาตรฐาน', 'before' => '', 'type' => \kartik\grid\GridView::TYPE_INFO], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'วันที่สอบเทียบ', 'attribute' => 'caldate', 'headerOptions' => ['class' => 'text-center']], ['label' => 'รายการ', 'attribute' => 'name_list', 'headerOptions' => ['class' => 'text-center']], ['label' => 'เลขครุภัณฑ์', 'attribute' => 'numberpas', 'headerOptions' => ['class' => 'text-center'], 'contentOptions' => ['class' => 'text-center']], ['label' => 'แผนก', 'attribute' => 'dep', 'headerOptions' => ['class' => 'text-center']], ['label' => 'ผลสอบเทียบ', 'attribute' => 'result', 'headerOptions' => ['class' => 'text-center']], ['label' => 'หมายเหตุ', 'attribute' => 'cuase', 'headerOptions' => ['class' => 'text-center']]]]);
?> </div> </div> <div class="row"> <div class="col-md-12"> <?php echo $form->field($user, 'tags')->textInput(['placeholder' => Yii::t('TourModule.views_tour_welcome', 'Your skills, knowledge and experience (comma seperated)')]); ?> </div> </div> <div class="row"> <div class="col-md-6"> <?php echo $form->field($user->profile, 'birthday')->widget(yii\jui\DatePicker::className(), ['dateFormat' => Yii::$app->params['formatter']['defaultDateFormat'], 'clientOptions' => [], 'options' => ['class' => 'form-control']]); ?> </div> <div class="col-md-6"> <br><br> <?php echo $form->field($user->profile, 'birthday_hide_year')->checkbox(['label' => Yii::t('TourModule.views_tour_welcome', 'Hide my year of birth')]); ?> </div> </div> <div class="row"> <div class="col-md-12"> <hr> </div> </div>