예제 #1
0
?>

    <?php 
echo $form->field($searchModel, 'dateFrom')->widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd']);
?>
    <?php 
echo $form->field($searchModel, 'dateTo')->widget(DatePicker::className(), ['dateFormat' => 'yyyy-MM-dd']);
?>

    <?php 
echo \yii\bootstrap\Button::widget(['label' => 'Submit', 'options' => ['class' => 'btn-primary']]);
ActiveForm::end();
?>
<div id="keys-activity-area" class="keys-activity-area clearfix"></div>
<div id="keys-activity" class="keys-activity clearfix"></div>
<div id="color-strip" class="color-strip clearfix"></div>
<div id="color-strip-clusters" class="color-strip clearfix"></div>
<div id="tasks" class="tasks-list"></div>
<div id="sunburst" class="clearfix"></div>
<div id="sunburst-clusters" class="clearfix"></div>
<div id="sunburst-task" class="clearfix"></div>


<div style="margin: 1em;" class="clearfix"><strong>Total activity:</strong> <?php 
echo Helper::formatTimeDuration($totalActivity / 1000);
?>
</div>
<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'columns' => ['id', 'process.screenName', ['attribute' => 'title', 'visible' => $searchModel->groupBy == 'title', 'value' => function ($model, $key, $index, $column) {
    return \yii\helpers\Html::a($model->title, ['window/view', 'id' => $model->id]);
}, 'format' => 'html'], 'formattedDuration', 'motions', 'motions_filtered', 'clicks', 'scrolls', 'keys']]);
예제 #2
0
 public function getFormattedDuration()
 {
     return Helper::formatTimeDuration($this->time / 1000);
 }