Exemple #1
0
                                        <div class="content form-inline" style="padding-top: 40px">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <label for="sqllogsearch-sqltext">耗时:</label>
                                                    <?php 
echo Html::activeTextInput($searchModel, 'start_sqlusedtime', ['class' => 'form-control', 'style' => 'width:100px']);
?>
至
                                                    <?php 
echo Html::activeTextInput($searchModel, 'end_sqlusedtime', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                    <label for="sqllogsearch-sqltext">类型:</label>
                                                    <?php 
echo Html::activeDropDownList($searchModel, 'databasetype', SqlTraceService::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 
Exemple #2
0
                                        <tr>
                                            <td colspan="3">
                                                <?php 
$form = ActiveForm::begin(['action' => ['/sql/longtimesql'], 'method' => 'get']);
?>
                                                <div class="content form-inline">
                                                    <div class="row">
                                                        <div class="col-md-12">
                                                            <label for="sqllogsearch-sqltext">耗时:</label>
                                                            <?php 
echo Html::activeTextInput($accLogErr, 'sqlusedtime', ['class' => 'form-control', 'style' => 'width:100px']);
?>

                                                            <label for="sqllogsearch-sqltext">数据库:</label>
                                                            <?php 
echo Html::activeDropDownList($accLogErr, 'databasetype', \backend\services\SqlTraceService::getSqlTraceDbType(), ['class' => 'form-control']);
?>

                                                            <label for="exampleInputEmail2">执行时间:</label>
                                                            <?php 
echo DateTimePicker::widget(['language' => 'zh-CN', 'model' => $accLogErr, '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' => $accLogErr, '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