From 4a4f93ccb04287591844adaf7f76d78d6f989b5e Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Sat, 5 Jun 2010 12:50:27 +0000 Subject: [PATCH] fix statistics performance --- templates/skin/developer/css/style.css | 10 ++- .../skin/developer/statistics_performance.tpl | 61 ++++++++----------- templates/skin/developer/topic.tpl | 2 +- templates/skin/new/css/style.css | 6 ++ templates/skin/new/statistics_performance.tpl | 61 ++++++++----------- 5 files changed, 64 insertions(+), 76 deletions(-) diff --git a/templates/skin/developer/css/style.css b/templates/skin/developer/css/style.css index 9803a502..e7cbb881 100644 --- a/templates/skin/developer/css/style.css +++ b/templates/skin/developer/css/style.css @@ -368,9 +368,13 @@ p { margin-bottom: 18px; } - - - +/* -------------------------------------------------------------- + !STAT +-------------------------------------------------------------- */ +.stat-performance { padding: 20px; background: #f0f7fd; border-top: 1px solid #d1e7f9; color: #333; } +.stat-performance table { margin-top: 15px; } +.stat-performance table td { width: 200px; vertical-align: top; } +.stat-performance h4 { font-weight: bold; color: #81B2DB; } diff --git a/templates/skin/developer/statistics_performance.tpl b/templates/skin/developer/statistics_performance.tpl index ff46d3b3..7c133fbd 100644 --- a/templates/skin/developer/statistics_performance.tpl +++ b/templates/skin/developer/statistics_performance.tpl @@ -1,38 +1,27 @@ {if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()} -
-Statistics performance - - - - - - -
-
    -
  • - MySql
    -    query: {$aStatsPerformance.sql.count}
    -    time: {$aStatsPerformance.sql.time}


    -
  • -
-
-
    -
  • - Cache
    -    query: {$aStatsPerformance.cache.count}
    -             set: {$aStatsPerformance.cache.count_set}
    -             get: {$aStatsPerformance.cache.count_get}
    -    time: {$aStatsPerformance.cache.time} -
  • -
-
-
    -
  • - PHP
    -    time load modules:{$aStatsPerformance.engine.time_load_module}
    -    full time:{$iTimeFullPerformance}


    -
  • -
-
-
+
+

Statistics performance

+ + + + + + + +
+

MySql

+ query: {$aStatsPerformance.sql.count}
+ time: {$aStatsPerformance.sql.time} +
+

Cache

+ query: {$aStatsPerformance.cache.count}
+ — set: {$aStatsPerformance.cache.count_set}
+ — get: {$aStatsPerformance.cache.count_get}
+ time: {$aStatsPerformance.cache.time} +
+

PHP

+ time load modules: {$aStatsPerformance.engine.time_load_module}
+ full time: {$iTimeFullPerformance} +
+
{/if} \ No newline at end of file diff --git a/templates/skin/developer/topic.tpl b/templates/skin/developer/topic.tpl index 2a346118..31a086b2 100644 --- a/templates/skin/developer/topic.tpl +++ b/templates/skin/developer/topic.tpl @@ -29,7 +29,7 @@
{if $oTopic->getType()=='question'}
- {if !$oTopic->getUserQuestionIsVote()} {* Если пользователь еще не участвовал в голосовании *} + {if !$oTopic->getUserQuestionIsVote()}
    {foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
  • diff --git a/templates/skin/new/css/style.css b/templates/skin/new/css/style.css index 6c6167a5..4f63b56c 100644 --- a/templates/skin/new/css/style.css +++ b/templates/skin/new/css/style.css @@ -818,6 +818,12 @@ table.admin_page td { /* IE: */ border-left: expression(previousSibling == nul .hidden {display: none;} +/* Stat +-------------------------------------------------------------------*/ +.stat-performance { padding: 20px; background: #f0f7fd; border-top: 1px solid #d1e7f9; color: #333; } +.stat-performance table { margin-top: 15px; } +.stat-performance table td { width: 200px; vertical-align: top; } +.stat-performance h4 { font-weight: bold; color: #81B2DB; } diff --git a/templates/skin/new/statistics_performance.tpl b/templates/skin/new/statistics_performance.tpl index ff46d3b3..7c133fbd 100644 --- a/templates/skin/new/statistics_performance.tpl +++ b/templates/skin/new/statistics_performance.tpl @@ -1,38 +1,27 @@ {if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()} -
    -Statistics performance - - - - - - -
    -
      -
    • - MySql
      -    query: {$aStatsPerformance.sql.count}
      -    time: {$aStatsPerformance.sql.time}


      -
    • -
    -
    -
      -
    • - Cache
      -    query: {$aStatsPerformance.cache.count}
      -             set: {$aStatsPerformance.cache.count_set}
      -             get: {$aStatsPerformance.cache.count_get}
      -    time: {$aStatsPerformance.cache.time} -
    • -
    -
    -
      -
    • - PHP
      -    time load modules:{$aStatsPerformance.engine.time_load_module}
      -    full time:{$iTimeFullPerformance}


      -
    • -
    -
    -
    +
    +

    Statistics performance

    + + + + + + + +
    +

    MySql

    + query: {$aStatsPerformance.sql.count}
    + time: {$aStatsPerformance.sql.time} +
    +

    Cache

    + query: {$aStatsPerformance.cache.count}
    + — set: {$aStatsPerformance.cache.count_set}
    + — get: {$aStatsPerformance.cache.count_get}
    + time: {$aStatsPerformance.cache.time} +
    +

    PHP

    + time load modules: {$aStatsPerformance.engine.time_load_module}
    + full time: {$iTimeFullPerformance} +
    +
    {/if} \ No newline at end of file