Changeset 928

Show
Ignore:
Timestamp:
06/05/10 16:50:27 (20 months ago)
Author:
deniart
Message:

fix statistics performance

Location:
trunk/templates/skin
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/templates/skin/developer/css/style.css

    r923 r928  
    369369 
    370370 
    371  
    372  
    373  
    374  
    375  
    376  
    377  
    378  
    379  
     371/* -------------------------------------------------------------- 
     372        !STAT 
     373-------------------------------------------------------------- */ 
     374.stat-performance { padding: 20px; background: #f0f7fd; border-top: 1px solid #d1e7f9; color: #333; } 
     375.stat-performance table { margin-top: 15px; } 
     376.stat-performance table td { width: 200px; vertical-align: top; } 
     377.stat-performance h4 { font-weight: bold; color: #81B2DB; } 
     378 
     379 
     380 
     381 
     382 
     383 
  • trunk/templates/skin/developer/statistics_performance.tpl

    r926 r928  
    11{if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()} 
    2 <fieldset> 
    3 <legend>Statistics performance</legend> 
    4 <table> 
    5         <tr align="top"> 
    6                 <td align="top"> 
    7                 <ul> 
    8         <li> 
    9         <b>MySql</b> <br> 
    10         &nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.sql.count}<br> 
    11         &nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.sql.time}<br><br><br> 
    12         </li> 
    13         </ul> 
    14                 </td> 
    15                 <td> 
    16                 <ul> 
    17         <li> 
    18         <b>Cache</b> <br> 
    19         &nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.cache.count}<br> 
    20         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set: {$aStatsPerformance.cache.count_set}<br> 
    21         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get: {$aStatsPerformance.cache.count_get}<br> 
    22         &nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.cache.time} 
    23         </li> 
    24         </ul> 
    25                 </td> 
    26                 <td align="top"> 
    27                 <ul> 
    28         <li> 
    29         <b>PHP</b> <br>  
    30         &nbsp;&nbsp;&nbsp;time load modules:{$aStatsPerformance.engine.time_load_module}<br> 
    31         &nbsp;&nbsp;&nbsp;full time:{$iTimeFullPerformance}<br><br><br> 
    32         </li> 
    33         </ul> 
    34                 </td> 
    35         </tr> 
    36 </table> 
    37 </fieldset> 
     2        <div class="stat-performance"> 
     3                <h2>Statistics performance</h2> 
     4                 
     5                <table> 
     6                        <tr> 
     7                                <td> 
     8                                        <h4>MySql</h4> 
     9                                        query: <strong>{$aStatsPerformance.sql.count}</strong><br /> 
     10                                        time: <strong>{$aStatsPerformance.sql.time}</strong> 
     11                                </td> 
     12                                <td> 
     13                                        <h4>Cache</h4> 
     14                                        query: <strong>{$aStatsPerformance.cache.count}</strong><br /> 
     15                                        &mdash; set: <strong>{$aStatsPerformance.cache.count_set}</strong><br /> 
     16                                        &mdash; get: <strong>{$aStatsPerformance.cache.count_get}</strong><br /> 
     17                                        time: <strong>{$aStatsPerformance.cache.time}</strong> 
     18                                </td> 
     19                                <td> 
     20                                        <h4>PHP</h4>     
     21                                        time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br /> 
     22                                        full time: <strong>{$iTimeFullPerformance}</strong> 
     23                                </td> 
     24                        </tr> 
     25                </table> 
     26        </div> 
    3827{/if} 
  • trunk/templates/skin/developer/topic.tpl

    r924 r928  
    3030                {if $oTopic->getType()=='question'} 
    3131                        <div id="topic_question_area_{$oTopic->getId()}" class="poll"> 
    32                                 {if !$oTopic->getUserQuestionIsVote()} {* ����� � �������� *}    
     32                                {if !$oTopic->getUserQuestionIsVote()} 
    3333                                        <ul class="poll-vote"> 
    3434                                                {foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer} 
  • trunk/templates/skin/new/css/style.css

    r831 r928  
    819819 
    820820 
    821  
    822  
    823  
    824  
    825  
    826  
    827  
    828  
    829  
    830  
    831  
     821/* Stat 
     822-------------------------------------------------------------------*/  
     823.stat-performance { padding: 20px; background: #f0f7fd; border-top: 1px solid #d1e7f9; color: #333; } 
     824.stat-performance table { margin-top: 15px; } 
     825.stat-performance table td { width: 200px; vertical-align: top; } 
     826.stat-performance h4 { font-weight: bold; color: #81B2DB; } 
     827 
     828 
     829 
     830 
     831 
     832 
     833 
     834 
     835 
     836 
     837 
  • trunk/templates/skin/new/statistics_performance.tpl

    r926 r928  
    11{if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()} 
    2 <fieldset> 
    3 <legend>Statistics performance</legend> 
    4 <table> 
    5         <tr align="top"> 
    6                 <td align="top"> 
    7                 <ul> 
    8         <li> 
    9         <b>MySql</b> <br> 
    10         &nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.sql.count}<br> 
    11         &nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.sql.time}<br><br><br> 
    12         </li> 
    13         </ul> 
    14                 </td> 
    15                 <td> 
    16                 <ul> 
    17         <li> 
    18         <b>Cache</b> <br> 
    19         &nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.cache.count}<br> 
    20         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set: {$aStatsPerformance.cache.count_set}<br> 
    21         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get: {$aStatsPerformance.cache.count_get}<br> 
    22         &nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.cache.time} 
    23         </li> 
    24         </ul> 
    25                 </td> 
    26                 <td align="top"> 
    27                 <ul> 
    28         <li> 
    29         <b>PHP</b> <br>  
    30         &nbsp;&nbsp;&nbsp;time load modules:{$aStatsPerformance.engine.time_load_module}<br> 
    31         &nbsp;&nbsp;&nbsp;full time:{$iTimeFullPerformance}<br><br><br> 
    32         </li> 
    33         </ul> 
    34                 </td> 
    35         </tr> 
    36 </table> 
    37 </fieldset> 
     2        <div class="stat-performance"> 
     3                <h2>Statistics performance</h2> 
     4                 
     5                <table> 
     6                        <tr> 
     7                                <td> 
     8                                        <h4>MySql</h4> 
     9                                        query: <strong>{$aStatsPerformance.sql.count}</strong><br /> 
     10                                        time: <strong>{$aStatsPerformance.sql.time}</strong> 
     11                                </td> 
     12                                <td> 
     13                                        <h4>Cache</h4> 
     14                                        query: <strong>{$aStatsPerformance.cache.count}</strong><br /> 
     15                                        &mdash; set: <strong>{$aStatsPerformance.cache.count_set}</strong><br /> 
     16                                        &mdash; get: <strong>{$aStatsPerformance.cache.count_get}</strong><br /> 
     17                                        time: <strong>{$aStatsPerformance.cache.time}</strong> 
     18                                </td> 
     19                                <td> 
     20                                        <h4>PHP</h4>     
     21                                        time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br /> 
     22                                        full time: <strong>{$iTimeFullPerformance}</strong> 
     23                                </td> 
     24                        </tr> 
     25                </table> 
     26        </div> 
    3827{/if}