#1443: Правки по сайту 25.10.2016

parent 57e9f329
...@@ -72,7 +72,7 @@ class Session extends \common\components\ActiveRecordModel ...@@ -72,7 +72,7 @@ class Session extends \common\components\ActiveRecordModel
'PHPSESSID' => 'Сессия', 'PHPSESSID' => 'Сессия',
'user_id' => 'Пользователь', 'user_id' => 'Пользователь',
'ip' => 'IP', 'ip' => 'IP',
'created_at' => 'Дата добавления', 'created_at' => 'Дата создания сессии',
'time' => 'Общее время просмотра' 'time' => 'Общее время просмотра'
]; ];
} }
......
...@@ -17,7 +17,13 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -17,7 +17,13 @@ $this->params['breadcrumbs'][] = $this->title;
'filterModel' => $searchModel, 'filterModel' => $searchModel,
'columns' => [ 'columns' => [
// ['class' => 'yii\grid\SerialColumn'], // ['class' => 'yii\grid\SerialColumn'],
[
'attributes' => 'created_at',
'value' => function($model) {
return date('d.m.Y H:i:s', $model->created_at);
}
],
[ [
'attribute' => 'session_id', 'attribute' => 'session_id',
'value' => function($model) 'value' => function($model)
......
...@@ -18,7 +18,13 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -18,7 +18,13 @@ $this->params['breadcrumbs'][] = $this->title;
'filterModel' => $searchModel, 'filterModel' => $searchModel,
'columns' => [ 'columns' => [
// ['class' => 'yii\grid\SerialColumn'], // ['class' => 'yii\grid\SerialColumn'],
[
'attributes' => 'created_at',
'value' => function($model) {
return date('d.m.Y H:i:s', $model->created_at);
}
],
'PHPSESSID', 'PHPSESSID',
[ [
'attribute' => 'user_id', 'attribute' => 'user_id',
......
...@@ -78,7 +78,7 @@ $(document).ready(function() { ...@@ -78,7 +78,7 @@ $(document).ready(function() {
$.ajax({ $.ajax({
url: "/sessions/default/update" url: "/sessions/default/update"
}); });
}, 1000 * 60 * 5); }, 1000 * 15);
$('form#error-testing-form').on('beforeSubmit', function(e) { $('form#error-testing-form').on('beforeSubmit', function(e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment