diff --git a/src/messenger/webim/locales/en/properties b/src/messenger/webim/locales/en/properties index 6976aeae..bb1a717e 100644 --- a/src/messenger/webim/locales/en/properties +++ b/src/messenger/webim/locales/en/properties @@ -402,6 +402,9 @@ report.byoperator.2=Chat Threads report.byoperator.3=Messages report.byoperator.4=Average message length (in chars) report.byoperator.title=Threads by operator +report.bypage.1=Page +report.bypage.2=Chat threads +report.bypage.title=Chat threads by page report.no_items=Not enough data report.total=Total: resetpwd.changed.title=Your password has been changed! diff --git a/src/messenger/webim/locales/ru/properties b/src/messenger/webim/locales/ru/properties index 56c1967a..6b860ee0 100644 --- a/src/messenger/webim/locales/ru/properties +++ b/src/messenger/webim/locales/ru/properties @@ -400,6 +400,9 @@ report.byoperator.2= report.byoperator.3=Сообщений report.byoperator.4=Средняя длина сообщения (в символах) report.byoperator.title=Статистика по операторам +report.bypage.1=Страница +report.bypage.2=Диалогов +report.bypage.title=Статистика по страницам report.no_items=Мало данных report.total=Итого: restore.back_to_login=Вернуться на главную diff --git a/src/messenger/webim/operator/statistics.php b/src/messenger/webim/operator/statistics.php index 1cd2dc03..0c2a91dd 100644 --- a/src/messenger/webim/operator/statistics.php +++ b/src/messenger/webim/operator/statistics.php @@ -80,6 +80,8 @@ $page['reportByAgent'] = select_multi_assoc("select vclocalename as name, COUNT( "from ${mysqlprefix}chatmessage, ${mysqlprefix}chatoperator " . "where agentId = operatorid AND unix_timestamp(dtmcreated) >= $start AND unix_timestamp(dtmcreated) < $end group by operatorid", $link); +$page['reportByPage'] = select_multi_assoc("SELECT COUNT(threadid) as chattimes, referer FROM ${mysqlprefix}chatthread WHERE unix_timestamp(dtmcreated) >= $start AND unix_timestamp(dtmcreated) < $end GROUP BY referer", $link); + $page['showresults'] = count($errors) == 0; close_connection($link); diff --git a/src/messenger/webim/view/statistics.php b/src/messenger/webim/view/statistics.php index 1e21761f..ff8050cc 100644 --- a/src/messenger/webim/view/statistics.php +++ b/src/messenger/webim/view/statistics.php @@ -126,7 +126,7 @@ require_once('inc_errors.php'); -
++ + | + + |
---|---|
+ | + |
+ + | +