Beispiel #1
0
<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title"><?php 
echo Yii::t('writesdown', 'Publish');
?>
</h3>

        <div class="box-tools pull-right">
            <button data-widget="collapse" class="btn btn-box-tool"><i class="fa fa-minus"></i></button>
        </div>
    </div>

    <div class="box-body">

        <?php 
echo $form->field($model, 'post_date', ['template' => '{input}'])->widget(DateTimePicker::className(), ['size' => 'sm', 'template' => '{reset}{button}{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'options' => ['value' => $model->isNewRecord ? date('M d, Y h:i:s') : Yii::$app->formatter->asDatetime($model->post_date, 'php:M d, Y h:i:s')], 'clientOptions' => ['autoclose' => true, 'format' => 'M dd, yyyy hh:ii:ss', 'todayBtn' => true]]);
?>

        <?php 
echo $form->field($model, 'post_status', ['template' => "{input}"])->dropDownList(Yii::$app->user->can('author') ? $model->getPostStatus() : [$model::POST_STATUS_REVIEW => 'Review'], ['class' => 'form-control input-sm']);
?>

        <?php 
echo $form->field($model, 'post_password', ['template' => "{input}"])->textInput(['maxlength' => 255, 'placeholder' => 'Password', 'class' => 'form-control input-sm']);
?>

    </div>

    <div class="box-footer">

        <?php 
Beispiel #2
0
        <span>姓名:</span>
        <?php 
echo HTML::activeTextInput($model, "chinese", ['class' => 'form-control']);
?>
    </div>

    <div class="col-md-12">
        <span>性别:</span>
        <?php 
echo HTML::activeRadioList($model, "gender", ['男' => '男', '女' => '女']);
?>
    </div>
    <div class="col-md-12">
        <span>出生日期:</span>
    <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'birthdate', 'language' => 'en-US', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d', 'todayBtn' => true]]);
?>
        </div>
    <div class="col-md-12">
        <span>联系电话:</span>
        <?php 
echo HTML::activeTextInput($model, "phone", ['class' => 'form-control']);
?>
    </div>
    <div class="col-md-12">
        <span>家庭住址:</span>
        <?php 
echo HTML::activeTextInput($model, "address", ['class' => 'form-control']);
?>
    </div>
    <div class="col-md-12">
Beispiel #3
0
<div class="mir-mgz-form">
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-6">
                        <?php 
echo $this->render('flash');
?>
                            <?php 
$form = ActiveForm::begin();
?>
                            <div class="col-lg-4 row">
                                <?php 
echo $form->field($model, 'mgz_year')->textInput(['placeholder' => '请点击'])->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy', 'weekStart' => 1, 'minView' => 4, 'startView' => 4, 'forceParse' => false]]);
?>
                            </div>
                            <div class="col-lg-4 row">
                                <?php 
echo $form->field($model, 'mgz_num')->dropDownList(['1' => 1, '2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6], ['style' => 'margin-left:10px']);
?>
                            </div>
                            <div class="col-lg-6 row">
                                <?php 
echo $form->field($model, 'mgz_znum')->textInput(['style' => 'margin-left:20px']);
?>
                            </div>  
                                <?php 
echo $form->field($model, 'mgz_page')->textInput();
?>
Beispiel #4
0
<div class="events-form">

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

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

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

    <?php 
echo $form->field($model, 'date')->widget(DateTimePicker::className(), ['language' => 'en', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startView' => 2, 'minView' => 0, 'maxView' => 1, 'autoclose' => true, 'format' => 'dd-mm-yyyy HH:ii', 'todayBtn' => true]]);
?>

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

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

    <?php 
echo $form->field($model, 'author_id')->dropDownList($items, $params);
?>

    <?php 
Beispiel #5
0
    ?>
           

                    <?php 
    echo $form->field($model, 'description', ['template' => '{label}<div class="help-block help-block-info">Краткое описание задачи. Если имеет место быть нестандартный размер - помещать информацию здесь, либо ниже под отмеченной галочкой другое. Нестандартный тип задачи описывать здесь же.</div>{input}{hint}{error}'])->textArea(['rows' => 6]);
    ?>
            

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

                    <div class="form-group">
                    <label class="control-label" for="contactrequest-duedate">Дата готовности и время готовности *</label>
                    <?php 
    echo DateTimePicker::widget(['model' => $model, 'attribute' => 'duedate', 'language' => 'ru', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'dd-mm-yyyy HH:ii', 'todayBtn' => true]]);
    ?>
                    <div class="help-block help-block-info">Пример: 03.05.2013 15:30</div>
                    </div>   

                    <?php 
    echo $form->field($model, 'proofs', ['template' => '{label}<div class="help-block help-block-info">Ссылки на образцы (если это необходимо) и изображения для работы. <!--Drag and Drop поможет перености ссылки в текстовом виде.--></div>{input}{hint}{error}'])->textArea(['rows' => 6]);
    ?>

                    <?php 
    echo $form->field($model, 'attachments[]')->widget(\dosamigos\fileinput\BootstrapFileInput::className(), ['options' => ['accept' => 'image/*', 'multiple' => true], 'clientOptions' => ['previewFileType' => 'text', 'browseClass' => 'btn btn-success', 'uploadClass' => 'btn btn-info', 'removeClass' => 'btn btn-danger', 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i> ']]);
    ?>

                    <div class="form-group">
                        <?php 
    echo Html::submitButton('Готово', ['class' => 'btn btn-primary', 'name' => 'contact-button']);
echo $form->field($model, 'job_id', ['inputOptions' => ['class' => 'form-control Cronjob-job_id']])->dropDownList($model->job_ids);
?>
    

    <?php 
//<?= $form->field($model, 'start_at')->textInput()
?>
		<?php 
echo $form->field($model, 'start_at')->widget(DateTimePicker::className(), ['language' => 'nl', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startView' => 2, 'minView' => 0, 'maxView' => 4, 'autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:00']]);
?>
		
    <?php 
//<?= $form->field($model, 'end_at')->textInput()
?>
		<?php 
echo $form->field($model, 'end_at')->widget(DateTimePicker::className(), ['language' => 'nl', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startView' => 4, 'minView' => 0, 'maxView' => 4, 'autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:00']]);
?>

    <?php 
//<?= $form->field($model, 'run_at')->textInput()
?>
		
		<?php 
echo $form->field($model, 'weight')->dropDownList($model->weights);
?>
	
	
    <?php 
//<?= $form->field($model, 'created_at')->textInput()
?>
Beispiel #7
0
    <div class="media-update">
        <div class="row">
            <div class="col-md-8">
                <?php 
echo $this->render('_form', ['model' => $model, 'form' => $form, 'metadata' => $metadata]);
?>
            </div>
            <div class="col-md-4">
                <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', ['attribute' => 'media_author', 'value' => $model->mediaAuthor->username], ['attribute' => 'media_post_id', 'format' => 'raw', 'value' => $model->media_post_id ? Html::a($model->mediaPost->post_title, ['/content/post/update', 'id' => $model->mediaPost->id]) : Yii::t('content', 'Unattached')], ['attribute' => 'media_date', 'value' => Html::a(Yii::$app->formatter->asDatetime($model->media_date, 'php:M d, Y H:i:s') . ' <i class="fa fa-pencil"></i>', '#', ['data-toggle' => 'modal', 'id' => 'media-date-link', 'data-target' => '#modal-for-date']), 'format' => 'raw'], 'media_modified', 'media_mime_type', ['attribute' => 'media_comment_count', 'format' => 'raw', 'value' => Html::a($model->media_comment_count, ['/content/media-comment/index', 'media_id' => $model->id])]]]);
?>


                <?php 
echo !$model->isNewRecord ? Html::a(Yii::t('content', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-wd-post btn-sm btn-flat btn-danger', 'data' => ['confirm' => Yii::t('content', 'Are you sure you want to delete this item?')]]) : '';
?>

            </div>
        </div>
    </div>

<?php 
Modal::begin(['header' => '<i class="glyphicon glyphicon-time"></i> ' . Yii::t('content', 'Change Media Date') . '', 'id' => 'modal-for-date']);
echo $form->field($model, 'media_date', ['template' => "{label}\n{input}"])->widget(DateTimePicker::className(), ['template' => '{reset}{button}{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'options' => ['value' => date('M d, Y H:i:s', strtotime($model->media_date))], 'clientOptions' => ['autoclose' => true, 'format' => 'M dd, yyyy hh:ii:ss', 'todayBtn' => true]]);
Modal::end();
ActiveForm::end();
$this->registerJs('
    $("#modal-for-date").on("hidden.bs.modal", function () {
        $("#media-date-link").html($("#media-media_date").val() + \' <i class="fa fa-pencil"></i>\');
    });
');
Beispiel #8
0
<div class="order-form">

    <?php 
$form = ActiveForm::begin(['options' => ['class' => 'form-horizontal', 'id' => 'save-order-form'], 'fieldConfig' => ['template' => '{label}<div class="col-sm-6">{input}</div><div class="col-sm-4">{error}</div>', 'labelOptions' => ['class' => 'col-sm-2 control-label']]]);
?>
    <div class="row">
        <div class="col-xs-8">
            <?php 
echo $form->field($model, 'order_name')->textInput(['maxlength' => true]);
?>
        </div>
    </div>
   <div class="row">
        <div class="col-xs-8">
            <?php 
echo $form->field($model, 'order_date')->widget(DateTimePicker::className(), ['size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'dd MM yyyy - HH:ii P', 'todayBtn' => true]]);
?>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-8">
            <?php 
echo $form->field($model, 'order_guests')->textInput();
?>
        </div>
        <div class="col-xs-8">
            <?php 
echo $form->field($model, 'order_location')->dropDownList($locations, ['prompt' => "Select Location"]);
?>
        </div>
    </div>
Beispiel #9
0
?>

     <?php 
echo $form->field($model, 'proggres_id')->hiddenInput()->label(false);
?>

    <?php 
echo $form->field($model, 'keterangan')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'basic']);
?>

    <?php 
echo $form->field($model, 'start_data')->widget(DateTimePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>

    <?php 
echo $form->field($model, 'end_date')->widget(DateTimePicker::className(), ['template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>


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

    <?php 
echo $form->field($model, 'status')->dropDownList(['1' => '1', '2' => '2'], ['prompt' => '--Pilih Status--']);
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
Beispiel #10
0
    $model->promote_start_date = '';
}
?>
            <?php 
echo $form->field($model, 'promote_start_date')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 5, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd', 'format' => 'yyyy-mm-dd', 'todayBtn' => false]])->label(null, ['class' => 'col-sm-2 control-label']);
?>

            <?php 
if ($model->promote_end_date > 0) {
    $model->promote_end_date = date('Y-m-d', $model->promote_end_date);
} else {
    $model->promote_end_date = '';
}
?>
            <?php 
echo $form->field($model, 'promote_end_date')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 5, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd', 'format' => 'yyyy-mm-dd', 'todayBtn' => false]])->label(null, ['class' => 'col-sm-2 control-label']);
?>

            <?php 
echo $form->field($model, 'goods_img')->fileInput(['style' => 'margin-top:7px'])->label(null, ['class' => 'col-sm-2 control-label']);
?>
            <?php 
if ($model->goods_img) {
    ?>
                <div class="col-xs-offset-2 show_goods_image" style="margin-bottom: 5px">
                    <?php 
    echo Html::activeHiddenInput($model, 'goods_img');
    ?>
                    <span class="word-btn"></span>
                    <?php 
    echo Html::img('@web/' . $model->goods_img, ['width' => 50, 'height' => 50]);
Beispiel #11
0
echo $form->field($model, 'meeting_loc_e')->textInput(['maxlength' => true]);
?>
                                
                                <?php 
echo $form->field($model, 'meeting_pic')->textInput(['id' => 'pic', 'readonly' => true]);
?>

                                <?php 
echo Uploadify::widget(['targetId' => 'pic', 'multi' => 'false']);
?>
                                
                                <?php 
echo $form->field($model, 'meeting_bdate')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy/mm/dd', 'todayBtn' => true]]);
?>
                                <?php 
echo $form->field($model, 'meeting_edate')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy/mm/dd', 'todayBtn' => true]]);
?>
                            </div>
                            <div class="col-xs-10">
                                <div class="form-group" style="">
                                    <label>文章内容</label>
                                    <textarea id="editor" style="height:350px;background-color:#ccc;" name="<?php 
echo $model->formName();
?>
[meeting_mem]" ><?php 
echo $model->meeting_mem;
?>
</textarea>
                                    <?php 
echo Ueditor::widget(['obj' => 'editor']);
?>
?>
-->

  <?php 
echo $form->field($event, 'venue')->textInput(['maxlength' => 100]);
?>

  
   <?php 
echo $form->field($event, 'start_date_time')->widget(DateTimePicker::className(), ['language' => 'english', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['autoclose' => true, 'linkFormat' => 'HH:ii P', 'todayBtn' => false]]);
?>


   
    <?php 
echo $form->field($event, 'end_date_time')->widget(DateTimePicker::className(), ['language' => 'english', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['autoclose' => true, 'linkFormat' => 'HH:ii P', 'todayBtn' => false]]);
?>

   <?php 
echo $form->field($event, 'type')->dropDownList(['Wedding' => 'Wedding', 'Party' => 'Party', 'Meeting' => 'Meeting', 'Religious event' => 'Religious event', 'Other' => 'Other'], ['prompt' => '']);
?>
  
   



    <?php 
echo $form->field($model, 'item_1')->dropDownList(ArrayHelper::map(Item::find()->all(), 'type', 'type'), ['prompt' => 'Select item']);
?>
   
Beispiel #13
0
use dosamigos\datetimepicker\DateTimePicker;
/* @var $this yii\web\View */
/* @var $model frontend\models\MeetingTime */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="meeting-time-form">

  <div class="row">
    <div class="col-md-4">
    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'start', 'language' => 'pl', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'MM dd, yyyy HH:ii P', 'todayBtn' => true, 'minuteStep' => 15, 'pickerPosition' => 'bottom-left']]);
?>
   
    </div>
  </div>  
  <div class="clearfix"><p></div>
  <div class="row">
      <div class="col-md-4">
     <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('frontend', 'Add') : Yii::t('frontend', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
    </div>
  </div>
    <?php 
Beispiel #14
0
echo Html::activeTextInput($accLogErr, 'error_status', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="sqllogsearch-sqltext">来源:</label>
                                                            <?php 
echo Html::activeTextInput($accLogErr, 'source', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="sqllogsearch-sqltext">类型:</label>
                                                            <?php 
echo Html::activeTextInput($accLogErr, 'log_type', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="exampleInputEmail2">请求时间:</label>
                                                            <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $accLogErr, 'attribute' => 'request_time', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'template' => '{input}{button}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayBtn' => true]]);
?>
                                                            <button type="submit" class="btn btn-default btn-primary btn-sm">查询</button>
                                                        </div>
                                                    </div>
                                                </div>
                                                <?php 
ActiveForm::end();
?>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                                <div class="summary">第<b><?php 
echo $begin . '-' . $end;
?>
Beispiel #15
0
use dosamigos\tinymce\TinyMce;
use dosamigos\datetimepicker\DateTimePicker;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $model app\models\Articles */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="Articles-form">

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

    <?php 
echo $form->field($model, 'date')->widget(DateTimePicker::className(), ['size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['linkFormat' => 'yyyy-mm-dd hh:ii:ss', 'todayBtn' => true]]);
?>

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

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

    <?php 
echo $form->field($model, 'author')->textInput();
?>
                <div class="dis-con">
                    <?php 
$form = ActiveForm::begin(['id' => 'add-activity-form', 'action' => Yii::$app->urlManager->createUrl([\common\widgets\Variable::$editActivity_url, 'id' => Tool::echoEncodeString($activityModel->id)]), 'method' => 'post', 'options' => ['enctype' => 'multipart/form-data']]);
?>
                    <?php 
echo $form->field($model, 'name')->textInput()->label('活动名称');
?>
                    <?php 
echo $form->field($model, 'description')->textarea()->label('活动简介');
?>

                    <?php 
echo $form->field($model, 'startTime', ['options' => ['class' => 'col-lg-6 paddingLeft']])->label('开始时间')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}{reset}{button}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startView' => 4, 'minView' => 1, 'maxView' => 4, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd H:ii:ss', 'format' => 'yyyy-mm-dd H:ii:ss', 'todayBtn' => true]]);
?>
                    <?php 
echo $form->field($model, 'endTime', ['options' => ['class' => 'col-lg-6 paddingLeft']])->label('结束时间')->widget(DateTimePicker::className(), ['language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}{reset}{button}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startView' => 4, 'minView' => 1, 'maxView' => 4, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd H:ii:ss', 'format' => 'yyyy-mm-dd H:ii:ss', 'todayBtn' => true]]);
?>
                    <?php 
echo $form->field($model, 'rule')->label('活动规则')->widget(UEditor::className(), ['clientOptions' => ['initialFrameHeight' => '200', 'lang' => 'en', 'toolbars' => [['fullscreen', 'source', 'undo', 'redo', '|', 'fontsize', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', '|', 'lineheight', '|', 'indent', '|']]]]);
?>
                    <?php 
echo $form->field($model, 'wapUrl')->textInput()->label('移动端活动链接');
?>
                    <?php 
echo $form->field($model, 'pcUrl')->textInput()->label('PC端活动链接');
?>
                    <?php 
echo $form->field($model, 'status', ['options' => ['class' => 'form-group  paddingLeft']])->dropDownList(GlobalArray::$activityStatusArray, ['prompt' => '请选择活动状态'])->label('活动状态');
?>
                    <?php 
echo $form->field($model, 'isShow', ['options' => ['class' => 'form-group  paddingLeft']])->dropDownList(GlobalArray::$activityIsShowArray, ['prompt' => '请选择活动展示介质'])->label('活动展示');
Beispiel #17
0
 

    <?php 
echo $form->field($model, 'lost_id')->dropDownList(ArrayHelper::map(Lost::find()->all(), 'id', 'id'), ['promt' => 'Select Category']);
?>

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

    <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'start_date', 'language' => 'en', 'size' => 'ms', 'inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd - HH:ii:ss P', 'todayBtn' => true]]);
?>

	<?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'end_date', 'language' => 'en', 'size' => 'ms', 'inline' => true, 'template' => '<div class="well well-sm" style="background-color: #fff; width:250px">{input}</div>', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd - HH:ii:ss P', 'todayBtn' => true]]);
?>

    

    

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

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Beispiel #18
0
            </div>  
            
        </td>
    </tr>
    <tr>
        <td class="col-day" >
            <?php 
echo $form->field($model, 'end_day', ['template' => '<div class="col-sm-12">{input}</div>'])->widget(DateTimePicker::className(), ['id' => 'event-end-date', 'language' => 'pt', 'template' => '{input}', 'inline' => false, 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 3, 'autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayBtn' => true]]);
?>
        </td>
        <td class="col-time <?php 
echo $model->all_day ? 'hidden' : '';
?>
">
            <?php 
echo $form->field($model, 'end_time', ['template' => '<div class="col-sm-12">{input}</div>'])->textInput(['id' => 'event-end-time'])->widget(DateTimePicker::className(), ['id' => 'event-end-time', 'language' => 'pt', 'template' => '{input}', 'inline' => false, 'clientOptions' => ['startView' => 1, 'minView' => 0, 'maxView' => 1, 'autoclose' => true, 'format' => 'hh:ii', 'todayBtn' => false]]);
?>

        </td>
        <td class="col-allday">         
            <div class="checkbox">
                <label for="calendarevent-recurrence">
                    <input type="hidden" name="CalendarEvent[recurrence]" value="0">
                    <input type="checkbox" id="calendarevent-recurrence" name="CalendarEvent[recurrence]" value="1"  <?php 
echo $model->recurrence ? "checked" : "";
?>
 onclick="recurrenceClick();">
                    <span>Repetir</span>
                </label>
            </div>                      
        </td>
Beispiel #19
0
}));
?>

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

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

    <?php 
echo $form->field($model, 'date_start')->widget(DateTimePicker::className(), ['language' => 'th', 'template' => '{addon}{input}', 'clientOptions' => ['format' => 'yyyy-mm-dd HH:ii:00', 'startDate' => date("Y-m-d H:i:s")]]);
?>

    <?php 
echo $form->field($model, 'date_end')->widget(DateTimePicker::className(), ['language' => 'th', 'template' => '{addon}{input}', 'clientOptions' => ['format' => 'yyyy-mm-dd HH:ii:00', 'startDate' => date("Y-m-d H:i:s")]]);
?>

    <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>
Beispiel #20
0
    <?php 
$form = ActiveForm::begin();
?>

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

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


    <?php 
echo $form->field($model, 'expireDatetime')->widget(DateTimePicker::className(), ['language' => 'en', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'inline' => false, 'clientOptions' => ['startDate' => date("Y-m-d"), 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd hh:ii:ss']]);
?>

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

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

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>
Beispiel #21
0
                                                    <?php 
echo Html::activeTextInput($searchModel, 'end_sqlusedtime', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                    <label for="sqlattacksearch-sqltext">类型:</label>
                                                    <?php 
echo Html::activeDropDownList($searchModel, 'databasetype', SqlAttackService::getSqlTraceDbType(), ['class' => 'form-control']);
?>

                                                    <label for="exampleInputEmail2">执行时间:</label>
                                                    <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $searchModel, 'attribute' => 'start_date', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'template' => '{input}{button}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss', 'todayBtn' => true]]);
?>
                                                    <label for="exampleInputEmail2">至</label>
                                                    <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $searchModel, 'attribute' => 'end_date', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'template' => '{input}{button}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd hh:ii:ss', 'todayBtn' => true]]);
?>
                                                    <button type="submit" class="btn btn-default btn-primary btn-sm">查询</button>
                                                </div>
                                            </div>
                                        </div>
                                        <?php 
ActiveForm::end();
?>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="summary">第<b><?php 
echo $begin . '-' . $end;
?>
Beispiel #22
0
echo Html::dropDownList('action', isset($_GET['action']) ? $_GET['action'] : '', ['选择动作...', 'add' => '新增', 'edit' => '编辑', 'delete' => '删除'], ['style' => 'float: left; margin-top: 3px; margin-left: 2px']);
?>
            <?php 
if ($time = Yii::$app->request->get('UserLog')) {
    $model->first_time = $time['first_time'];
    $model->last_time = $time['last_time'];
}
?>
            <div style="float: left; width: 120px; margin-left: 3px; margin-top: -4px">
            <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'first_time', 'language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 5, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd', 'format' => 'yyyy-mm-dd', 'todayBtn' => false]]);
?>
            </div>
            <div style="float: left; width: 120px; margin-left: 3px; margin-top: -4px">
            <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'last_time', 'language' => 'zh-CN', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['startView' => 2, 'minView' => 2, 'maxView' => 5, 'autoclose' => true, 'linkFormat' => 'yyyy-mm-dd', 'format' => 'yyyy-mm-dd', 'todayBtn' => false]]);
?>
            </div>&nbsp;

            <input type="submit" onclick="query('<?php 
echo Yii::$app->urlManager->createUrl(['userlog/index']);
?>
')" value=" 搜索 " class="button">

        </form>

    </div>

    <?php 
Pjax::begin();
?>
Beispiel #23
0
    <?php 
echo $form->field($model, 'amount')->textInput();
?>


    <div class="form-group field-thirdproduct-start_at required" style="width: 300px">
        <label class="control-label" for="thirdproduct-amount">起始时间</label>
        <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'start_at', 'language' => 'zh-CN', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'linkFormat' => 'yyyy-mm-dd  HH:ii', 'todayBtn' => true]]);
?>
    </div>
    <div class="form-group field-thirdproduct-end_at required" style="width: 300px">
        <label class="control-label" for="thirdproduct-amount">结束时间</label>
        <?php 
echo DateTimePicker::widget(['model' => $model, 'attribute' => 'end_at', 'language' => 'zh-CN', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'linkFormat' => 'yyyy-mm-dd  HH:ii ', 'todayBtn' => true]]);
?>
    </div>
    <?php 
echo $form->field($model, 'rate')->textInput();
?>

    <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();
?>
Beispiel #24
0
    <?php 
// $form->field($model, 'deskripsi')->textarea(['rows' => 6])
?>
    <?php 
echo $form->field($model, 'deskripsi')->widget(CKEditor::className(), ['options' => ['rows' => 6], 'preset' => 'standard']);
?>
    <?php 
echo $form->field($model, 'author', ['template' => "{label}{input}\n{hint}\n{error}"])->dropDownList(ArrayHelper::map(User::getAuthor(), 'id', 'nama_depan'), ['prompt' => '-- Pilih --']);
?>

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

    <?php 
echo $form->field($model, 'schedule_date')->widget(DateTimePicker::className(), ['language' => 'en', 'size' => 'ms', 'template' => '{input}', 'pickButtonIcon' => 'glyphicon glyphicon-time', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-dd hh:ii', 'todayBtn' => true]]);
?>
    <?php 
echo Html::activeLabel($model, 'tag');
?>
    <?php 
echo SelectizeTextInput::widget(['model' => $model->tag, 'name' => 'Artikel[tag]', 'id' => 'artikel-tag', 'value' => $model->isNewRecord ? '' : $model->tag, 'clientOptions' => ['plugins' => ['remove_button'], 'delimiter' => ',', 'persist' => false, 'create' => 'function(input){
                    return {
                        value   :   input,
                        text    :   input
                    }
                }']]);
?>
    <?php 
echo $form->field($model, 'status', ['template' => "{label}{input}\n{hint}\n{error}"])->dropDownList(Artikel::getStatus(), ['prompt' => '-- Pilih --']);
?>