当前位置: 首页>>代码示例>>PHP>>正文


PHP DatePicker::widget方法代码示例

本文整理汇总了PHP中dosamigos\datepicker\DatePicker::widget方法的典型用法代码示例。如果您正苦于以下问题:PHP DatePicker::widget方法的具体用法?PHP DatePicker::widget怎么用?PHP DatePicker::widget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dosamigos\datepicker\DatePicker的用法示例。


在下文中一共展示了DatePicker::widget方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderFilterCellContent

 protected function renderFilterCellContent()
 {
     return DatePicker::widget([
         'model' => $this->grid->filterModel,
         'attribute' => $this->dateColumn,
         'template' => '{addon}{input}',
         'clientOptions' => [
             'autoclose' => true,
             'format' => 'yyyy-mm-dd',
             'disableEntry'=>true,
         ],
         'options' => [
             'data-pjax' => '0',
         ]
     ]);
 }
开发者ID:harish-reglobbe,项目名称:Auction,代码行数:16,代码来源:DatePickerColumn.php

示例2: function

<div class="project-index">

    <h1><?php 
    echo Html::encode($this->title);
    ?>
</h1>
    <?php 
    $gridColums = [['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'class' => 'kartik\\grid\\SerialColumn'], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'projectname', 'value' => 'projectname', 'filterInputOptions' => ['style' => 'width:140px;']], ['class' => 'kartik\\grid\\ExpandRowColumn', 'value' => function ($model, $key, $index, $column) {
        return GridView::ROW_COLLAPSED;
    }, 'detail' => function ($model, $key, $index, $column) {
        $searchModel = new PicSearch();
        $searchModel->id = $model->pic_id;
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
        return Yii::$app->controller->renderPartial('_picView', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
    }], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'pic_id', 'value' => 'pic.pic_fullName', 'filterType' => GridView::FILTER_SELECT2, 'filter' => ArrayHelper::map(Pic::find()->asArray()->all(), 'pic_fullName', 'pic_fullName'), 'filterWidgetOptions' => ['pluginOptions' => ['allowClear' => true]], 'filterInputOptions' => ['placeholder' => 'Choose Person', 'style' => 'width:140px;']], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'status', 'value' => 'status', 'filterType' => GridView::FILTER_SELECT2, 'filter' => ['FOR SITE SURVEY' => 'FOR SITE SURVEY', 'FOR DESIGNING' => 'FOR DESIGNING', 'FOR REVISION' => 'FOR REVISION', 'FOR REVIEW' => 'FOR REVIEW', 'FOR COSTING' => 'FOR COSTING', 'FOR NEGOTATION' => 'FOR NEGOTATION', 'CANCELED' => 'CANCELED', 'FOR PHILCOM PROPOSAL' => 'FOR PHILCOM PROPOSAL', 'PROPOSAL SENT/WAITING P.O' => 'PROPOSAL SENT/WAITING P.O', 'FOR MOBILAZATION' => 'FOR MOBILAZATION', 'ON-GOING' => 'ON-GOING', 'PHYSICALLY COMPLETED' => 'PHYSICALLY COMPLETED', 'ACCEPTED' => 'ACCEPTED'], 'filterWidgetOptions' => ['pluginOptions' => ['allowClear' => true]], 'filterInputOptions' => ['placeholder' => 'Choose Status', 'style' => 'width:180px;']], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'contractor', 'value' => 'contractor', 'filterInputOptions' => ['style' => 'width:140px;']], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'date_of_flob', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_of_flob', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'date_of_completion', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_of_completion', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'label' => '% of Completion', 'attribute' => 'percentage_of_completion', 'value' => 'percentage_of_completion', 'filterInputOptions' => ['style' => 'width:100px;']], ['contentOptions' => ['style' => 'font-size:13px; text-align:center;'], 'attribute' => 'remarks', 'value' => 'remarks', 'filterInputOptions' => ['style' => 'width:150px;']], ['contentOptions' => ['style' => 'font-size:12px; text-align:center;'], 'attribute' => 'logs0.milestone', 'value' => 'logs0.milestoneFull'], ['class' => 'kartik\\grid\\ExpandRowColumn', 'value' => function ($model, $key, $index, $column) {
        return GridView::ROW_COLLAPSED;
    }, 'detail' => function ($model, $key, $index, $column) {
        $searchModel = new LogsSearch();
        $searchModel->project_id = $model->projectcode;
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
        return Yii::$app->controller->renderPartial('_logsView2', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
    }]];
    ?>

 
	
   <?php 
    echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'pjax' => true, 'columns' => $gridColums, 'responsive' => true, 'hover' => true]);
    ?>
 
开发者ID:seans888,项目名称:Proj-PhilCom,代码行数:29,代码来源:index.php

示例3:

$this->title = 'Customer Records';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="customer-record-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
if (Yii::$app->user->can('manager')) {
    ?>
            <?php 
    echo Html::a('Create Customer Record', ['create'], ['class' => 'btn btn-success']);
    ?>
        <?php 
}
?>
    </p>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'name', ['attribute' => 'birth_date', 'format' => ['date', 'dd-MMMM-Y'], 'options' => ['style' => 'width:240px'], 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'birth_date', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['attribute' => 'phones.number'], ['class' => 'yii\\grid\\ActionColumn', 'header' => 'Actions', 'template' => Yii::$app->user->can('manager') ? '{view} {update} {delete}' : '{view}']]]);
?>

</div>
开发者ID:andhikayuana,项目名称:latyii2,代码行数:30,代码来源:index.php

示例4: function

echo Html::encode($this->title);
?>
</h1>
   <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>
   <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'username', 'label' => 'Mentee Name', 'format' => 'raw', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'value' => function ($data) {
    $url = Yii::$app->params['application_base'] . 'admin/user/' . $data->user_id;
    return Html::a($data->username, $url);
}, 'headerOptions' => ['width' => '17%', 'style' => 'text-align:center']], ['attribute' => 'service', 'label' => 'Service Name', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'headerOptions' => ['width' => '16%', 'style' => 'text-align:center']], ['attribute' => 'mentorname', 'label' => 'Mentor Name', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'format' => 'raw', 'value' => function ($data) {
    $url = Yii::$app->params['application_base'] . 'admin/mentor/' . $data->mentor_id;
    return Html::a($data->mentorname, $url);
}, 'headerOptions' => ['width' => '17%', 'style' => 'text-align:center']], ['attribute' => 'date', 'label' => 'Date', 'filterInputOptions' => ['class' => 'form-control', 'prompt' => 'Date'], 'value' => function ($data) {
    return date('Y-m-d', strtotime($data->date));
}, 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date', 'template' => '{input}{addon}', 'options' => ['placeholder' => 'Search'], 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-0m-dd']]), 'headerOptions' => ['width' => '15%', 'style' => 'text-align:center']], ['attribute' => 'time', 'label' => 'Time', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'format' => 'raw', 'value' => function ($data) {
    return date('h:i:s', strtotime($data->time));
}, 'headerOptions' => ['width' => '10%', 'style' => 'text-align:center']], ['attribute' => 'booking_hrs', 'label' => 'Hours', 'filterInputOptions' => ['class' => 'form-control', 'placeholder' => 'Search'], 'headerOptions' => ['width' => '10%', 'style' => 'text-align:center'], 'format' => 'raw'], ['attribute' => 'status', 'label' => 'Status', 'filterInputOptions' => ['class' => 'form-control', 'prompt' => 'All'], 'format' => 'raw', 'headerOptions' => ['width' => '10%', 'style' => 'text-align:center'], 'value' => function ($data) {
    if ($data->status == 'P') {
        return 'Pending';
    } else {
        if ($data->status == 'A') {
            return 'Approved';
        } else {
            if ($data->status == 'R') {
                return 'Rejected';
            } else {
                if ($data->status == 'D') {
                    return 'Due';
                } else {
                    if ($data->status == 'I') {
开发者ID:GAjay,项目名称:Yii2,代码行数:31,代码来源:view.php

示例5:

<?php

use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\Pjax;
use yii\helpers\Url;
use frontend\models\Project;
use dosamigos\datepicker\DatePicker;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\LogsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
//$this->title = 'Project-Milestones';
//$this->params['breadcrumbs'][] = $this->title;
?>
<div class="logs-index">

	<?php 
$gridColumns = [['class' => 'yii\\grid\\SerialColumn'], 'logs_employee_name', 'milestone', ['attribute' => 'milestone_date', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'milestone_date', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])]];
?>
	
	
	 <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => $gridColumns, 'responsive' => true, 'hover' => true]);
?>

</div>
开发者ID:seans888,项目名称:Proj-PhilCom,代码行数:26,代码来源:_logsView2.php

示例6: function

}, 'attribute' => 'create_time'], ['class' => 'yii\\grid\\DataColumn', 'value' => function ($data) {
    if ($data->pay_time) {
        return date('Y-m-d H:i:s', $data->pay_time);
        // 如果是数组数据则为 $data['name'] ,例如,使用 SqlDataProvider 的情形。
    }
}, 'attribute' => 'pay_time', 'filter' => DatePicker::widget(['addon' => '', 'language' => 'zh-CN', 'name' => 'pay_time

                    ', 'value' => Yii::$app->request->get('pay_time'), 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['class' => 'yii\\grid\\DataColumn', 'value' => function ($data) {
    if ($data->finish_time) {
        return $data->finish_time;
        //                        return Yii::$app->formatter->asDate($data->finish_time, 'yyyy-MM-dd'); // 如果是数组数据则为 $data['name'] ,例如,使用 SqlDataProvider 的情形。
    } else {
        return '交易进行中';
    }
}, 'attribute' => 'finish_time'], 'address', ['class' => 'yii\\grid\\DataColumn', 'attribute' => 'gostatus', 'label' => '订单状态', 'value' => function ($model) {
    return \app\models\Gorder::get_gostatus1($model->gostatus);
}, 'filter' => \app\models\Gorder::get_gostatus()], ['class' => 'yii\\grid\\ActionColumn', 'controller' => 'my', 'template' => '{view}', 'header' => '查看订单详情'], ['class' => 'yii\\grid\\ActionColumn', 'header' => '操作']]]);
?>

<?php 
echo DatePicker::widget(['name' => '', 'value' => '', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']]);
?>
</div>

<script>
//    用户可点击复选框来选择网格中的一些行。被选择的行可通过调用下面的JavaScript代码来获得:

    var keys = $('#grid').yiiGridView('getSelectedRows');  //为什么提示 $不存在
    // keys 为一个由与被选行相关联的键组成的数组
</script>
开发者ID:lipengyihao,项目名称:yii2-basic-advanced,代码行数:30,代码来源:index.php

示例7:

        <?php 
echo $form->field($model, 'author')->textInput(['maxlength' => true]);
?>
        <?php 
echo \common\widgets\Plupload::widget(['model' => $model, 'attribute' => 'cover_img', 'url' => '/file/upload', 'path' => Yii::$app->request->hostInfo]);
?>

        <?php 
echo $form->field($model, 'status')->radioList([Article::STATUS_DISPLAY => '可用', Article::STATUS_HIDDEN => '禁用']);
?>

        <?php 
echo Html::activeLabel($model, 'publish_at');
?>
        <?php 
echo DatePicker::widget(['model' => $model, 'attribute' => 'publish_at', 'template' => '{input} {addon}', 'language' => 'zh-CN', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'weekStart' => '1']]);
?>
        <?php 
if (Yii::$app->controller->action->id == 'create') {
    ?>
        <?php 
    echo $form->field($model, 'tag')->textInput()->hint('多个标签用;隔开');
    ?>
        <?php 
} else {
    ?>
            <?php 
    echo Html::activeLabel($model, 'tag');
    ?>
            <?php 
    echo Html::activeTextInput($model, 'tag', ['value' => $tag, 'disabled' => true]);
开发者ID:specialnote,项目名称:myYii,代码行数:31,代码来源:_form.php

示例8: function

use dosamigos\datepicker\DatePicker;
use common\models\ScholarsSearch;
/* @var $this yii\web\View */
/* @var $searchModel common\models\AllowanceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Allowances';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="allowance-index">
<font color=red>Red</font> means the allowance is unsettled<br>
<font color=Blue>Blue</font> means the allowance is settled
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'rowOptions' => function ($model) {
    if ($model->allowance_payStatus == 'not paid') {
        return ['class' => 'danger'];
    } else {
        if ($model->allowance_payStatus == 'paid') {
            return ['class' => 'success'];
        }
    }
}, 'columns' => [['class' => 'kartik\\grid\\SerialColumn'], 'allowance_amount', ['attribute' => 'allowance_paidDate', 'value' => 'allowance_paidDate', 'format' => 'raw', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'allowance_paidDate', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], 'uploaded_by', 'updated_by', 'checked_by', 'checked_remark', ['class' => 'kartik\\grid\\ActionColumn', 'template' => '{view} {update} {check} {delete}', 'buttons' => ['update' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url, ['title' => Yii::t('yii', 'Update')]);
}, 'check' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-check"></span>', $url, ['title' => Yii::t('yii', 'Check')]);
}, 'delete' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-trash"></span>', $url, ['title' => Yii::t('yii', 'Delete'), 'data-confirm' => Yii::t('kvgrid', 'Are you sure to delete this item?'), 'data-method' => 'post', 'data-pjax' => '0']);
}]]]]);
?>

</div>
开发者ID:seans888,项目名称:SMF-Project,代码行数:30,代码来源:_allowancerecords.php

示例9: function

    <?php 
Modal::begin(['header' => '<h1>Crear Eventos</h1>', 'id' => 'modal', 'size' => 'modal-lg']);
echo "<div id='modalContent'></div>";
Modal::end();
?>
    


    <?php 
Pjax::begin();
?>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'rowOptions' => function ($model) {
    if ($model->STATUS_EVENT == 'cancelado') {
        return ['class' => 'danger'];
    } else {
        if ($model->STATUS_EVENT == 'realizado') {
            return ['class' => 'success'];
        } else {
            if ($model->STATUS_EVENT == 'por realizar') {
                return ['class' => 'warning'];
            }
        }
    }
}, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'NAME_EVENT', 'TYPE_EVENT', ['attribute' => 'DATE_EVENT', 'value' => 'DATE_EVENT', 'filter' => DatePicker::widget(['model' => $searchModel, 'language' => 'es', 'attribute' => 'DATE_EVENT', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])], 'PLACE_EVENT', 'STATUS_EVENT', ['class' => 'yii\\grid\\ActionColumn']]]);
Pjax::end();
?>
</div>

<!-- 
http://localhost/PROYECTOFINALDESARROLLO/basic/web/index.php?r=perfil-evento/index -->
开发者ID:godzukison,项目名称:PROYECTOFINALDESARROLLO,代码行数:31,代码来源:index.php

示例10: function

    <?php 
echo $this->render('_search', ['model' => $searchModel]);
?>

    <?php 
// Pjax::begin();
?>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'summary' => false, 'headerRowOptions' => ['class' => 'books_table_header'], 'tableOptions' => ['class' => 'table table-striped table-bordered books_table'], 'columns' => [['attribute' => 'id', 'filterOptions' => ['class' => 'filter_id']], ['attribute' => 'name'], ['attribute' => 'preview', 'format' => 'raw', 'value' => function ($model) {
    return Html::a(Html::img("/backend/web/img/small/" . $model->preview, ['alt' => $model->name, 'style' => 'height:50px;']), "/backend/web/img/original/" . $model->preview, ['title' => $model->name, 'rel' => 'fancybox']);
}, 'contentOptions' => ['class' => 'books_table_img']], ['attribute' => 'author', 'value' => function ($model) {
    return $model->author_fullname ? $model->author_fullname : Yii::t('app', 'UNKNOWN author');
}], ['attribute' => 'date', 'format' => ['date', 'php:d F Y'], 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date', 'addon' => '', 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']])], ['attribute' => 'date_create', 'value' => function ($model) {
    return $model->getBooksRelativeDate($model->date_create);
}, 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'date_create', 'addon' => '', 'language' => 'ru', 'clientOptions' => ['autoclose' => true, 'format' => 'dd/mm/yyyy']])], ['class' => 'yii\\grid\\ActionColumn', 'header' => Yii::t('app', 'Action buttons'), 'contentOptions' => ['class' => 'books_table_action'], 'template' => '<table class="books_action_detail">
                                    <tbody>
                                        <tr>
                                            <td>{update}</td>
                                            <td>{view}</td>
                                            <td>{delete}{link}</td>
                                        </tr>
                                    </tbody>
                                </table>', 'buttons' => ['view' => function ($url, $model, $key) {
    return '<a href="' . $url . '" title="' . Yii::t('app', 'Button view') . '" aria-label="' . Yii::t('app', 'Button view') . '" data-pjax="0" data-toggle="modal" data-target="#view_modal_' . $key . '">
                                    <span class="glyphicon glyphicon-eye-open"></span>
                                </a>
                                <div class="modal fade" id="view_modal_' . $key . '" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                  <div class="modal-dialog"><div class="modal-content"></div></div>
                                </div>';
}, 'update' => function ($url, $model, $key) {
开发者ID:krausweb,项目名称:yiibooks,代码行数:30,代码来源:index.php

示例11: function

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Create Companies', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
Pjax::begin();
?>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'rowOptions' => function ($model) {
    if ($model->company_status == 'inactive') {
        return ['class' => 'danger'];
    }
}, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'company_name', 'company_email:email', 'company_address', 'company_created_date', ['attribute' => 'company_start_date', 'value' => 'company_start_date', 'format' => 'raw', 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'company_start_date', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['class' => 'yii\\grid\\ActionColumn']]]);
?>
    <?php 
Pjax::end();
?>

</div>
开发者ID:reza-id,项目名称:yii2learn,代码行数:29,代码来源:index.php

示例12:

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

    <div class="form-group field-thirdproduct-start_at required" style="width: 300px">
        <label class="control-label" for="thirdproduct-amount">有效期开始时间</label>
        <?php 
echo DatePicker::widget(['model' => $model, 'attribute' => 'use_start_at', 'language' => 'zh-CN', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', 'todayBtn' => true]]);
?>
    </div>

    <div class="form-group field-thirdproduct-start_at required" style="width: 300px">
        <label class="control-label" for="thirdproduct-amount">有效期结束时间</label>
        <?php 
echo DatePicker::widget(['model' => $model, 'attribute' => 'use_out_at', 'language' => 'zh-CN', 'size' => 'ms', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd', '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>
开发者ID:wuwenhan,项目名称:huoqiwang,代码行数:29,代码来源:_form.php

示例13:

?>
  
    <?php 
echo $form->field($model, 'logis_bail', ['labelOptions' => ['label' => '物品保证金(元)<span>(必填)</span>', 'class' => 'field-title contactNameField'], 'inputOptions' => ['class' => 'contactField requiredField']]);
?>
  
    <?php 
echo $form->field($model, 'logis_fee', ['labelOptions' => ['label' => '佣金<span>(必填)</span>', 'class' => 'field-title contactNameField'], 'inputOptions' => ['class' => 'contactField requiredField']]);
?>
    <?php 
echo $form->field($model, 'to_user_id', ['labelOptions' => ['label' => '收货用户<span>(必填)</span>', 'class' => 'field-title contactNameField']])->dropDownList($model->showUsername());
?>
    <div class="form-group">
        <label class="field-title contactNameField">限制到达时间<span>(必填)</span></label>
        <?php 
echo DatePicker::widget(['model' => $model, 'attribute' => 'logis_arrivetime', 'language' => 'zh-CN', 'template' => '{addon}{input}', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-dd']]);
?>
    </div>
    <?php 
echo $form->field($model, 'logis_description', ['labelOptions' => ['label' => '物品简介<span>(必填)</span>', 'class' => 'field-title contactNameField']])->textArea(['class' => 'contactTextarea requiredField']);
?>


    <?php 
if (!isset($p_param['id'])) {
    ?>
        <?php 
    echo Html::submitButton('发布物流信息', ['class' => 'buttonWrap button button-red contactSubmitButton', 'name' => 'submit-button']);
    ?>
    <?php 
} else {
开发者ID:wxzuan,项目名称:wxzuan,代码行数:31,代码来源:publishlogistics.php

示例14: function

                <li><a href="export">Download Data Penjualan Motor</a></li>
            </ul>
        </div>
        <!--
        <div class="col-md-2">
            <p>
                <a href="chart"><button type="button" class="btn btn-primary" style="margin-left: 10px;">
                        <span class="glyphicon glyphicon-stats" aria-hidden="true"></span> Grafik Penjualan Motor
                    </button></a>

                <a href="export"><button type="button" class="btn btn-primary" style="margin-left: 10px;">
                        <span class="glyphicon glyphicon-print" aria-hidden="true"></span> Download Data Penjualan Motor
                    </button></a>

            </p>
        </div>-->
        </div>

    <div class="table-responsive">
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-striped table-bordered'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', ['attribute' => 'jenisMotor0.nama', 'value' => 'motor0.jenisMotor0.nama', 'filter' => Html::activeDropDownList($searchModel, 'nama', \yii\helpers\ArrayHelper::map(\app\models\JenisMotor::find()->select('nama')->distinct()->all(), 'nama', 'nama'), ['class' => 'form-control', 'prompt' => 'Semua'])], ['attribute' => 'nama_lengkap', 'value' => 'pembeli0.nama_lengkap'], 'tipe_pembayaran', 'harga', ['attribute' => 'tgl', 'value' => 'tgl', 'format' => 'raw', 'contentOptions' => ['style' => 'width: 150px;'], 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'tgl', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-mm-dd']])], ['attribute' => 'foto_nota', 'format' => 'html', 'value' => function ($data) {
    return Html::img(Yii::getAlias('@web') . '/uploads/nota/' . $data['foto_nota'], ['width' => '70px']);
}], ['attribute' => 'foto_ktp', 'format' => 'html', 'value' => function ($data) {
    return Html::img(Yii::getAlias('@web') . '/uploads/ktp/' . $data['foto_ktp'], ['width' => '70px']);
}], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {delete}', 'buttons' => ['update' => function ($url, $model) {
    return Html::a('<span class="glyphicon glyphicon-pencil"></span>', $url);
}]]]]);
?>
</div>
</div>
开发者ID:yudistirasukma32,项目名称:global_lestari,代码行数:30,代码来源:index.php

示例15:

    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::button('Create Medical Certificate', ['value' => Url::to('index.php?r=medical-certificate/create'), 'class' => 'btn btn-success', 'id' => 'modalButton']);
?>
    </p>

    <?php 
Modal::begin(['header' => '<h4>Medical Certificate</h4>', 'id' => 'modal', 'size' => 'modal-lg']);
echo "<div id='modalContent'></div>";
Modal::end();
?>

    

    <?php 
Pjax::begin();
?>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'mc_serial', ['attribute' => 'student_id', 'label' => 'Student Matrix', 'value' => 'student.student_matrix'], 'student.student_name', ['attribute' => 'mc_startdate', 'value' => 'mc_startdate', 'contentOptions' => ['style' => 'width:160px'], 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'mc_startdate', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']]), 'format' => 'date'], ['attribute' => 'mc_enddate', 'value' => 'mc_enddate', 'contentOptions' => ['style' => 'width:160px'], 'filter' => DatePicker::widget(['model' => $searchModel, 'attribute' => 'mc_enddate', 'clientOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']]), 'format' => 'date'], ['class' => 'yii\\grid\\ActionColumn']]]);
?>

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

</div>
开发者ID:rxz135cc,项目名称:yii2webApp,代码行数:31,代码来源:index.php


注:本文中的dosamigos\datepicker\DatePicker::widget方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。