1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-20 17:58:24 +03:00

fix statistics performance

This commit is contained in:
Denis Shakhov 2010-06-05 12:50:27 +00:00
parent 5806062c94
commit 4a4f93ccb0
5 changed files with 64 additions and 76 deletions

View file

@ -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; }

View file

@ -1,38 +1,27 @@
{if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()} {if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()}
<fieldset> <div class="stat-performance">
<legend>Statistics performance</legend> <h2>Statistics performance</h2>
<table>
<tr align="top"> <table>
<td align="top"> <tr>
<ul> <td>
<li> <h4>MySql</h4>
<b>MySql</b> <br> query: <strong>{$aStatsPerformance.sql.count}</strong><br />
&nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.sql.count}<br> time: <strong>{$aStatsPerformance.sql.time}</strong>
&nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.sql.time}<br><br><br> </td>
</li> <td>
</ul> <h4>Cache</h4>
</td> query: <strong>{$aStatsPerformance.cache.count}</strong><br />
<td> &mdash; set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
<ul> &mdash; get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
<li> time: <strong>{$aStatsPerformance.cache.time}</strong>
<b>Cache</b> <br> </td>
&nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.cache.count}<br> <td>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set: {$aStatsPerformance.cache.count_set}<br> <h4>PHP</h4>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get: {$aStatsPerformance.cache.count_get}<br> time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
&nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.cache.time} full time: <strong>{$iTimeFullPerformance}</strong>
</li> </td>
</ul> </tr>
</td> </table>
<td align="top"> </div>
<ul>
<li>
<b>PHP</b> <br>
&nbsp;&nbsp;&nbsp;time load modules:{$aStatsPerformance.engine.time_load_module}<br>
&nbsp;&nbsp;&nbsp;full time:{$iTimeFullPerformance}<br><br><br>
</li>
</ul>
</td>
</tr>
</table>
</fieldset>
{/if} {/if}

View file

@ -29,7 +29,7 @@
<div class="content"> <div class="content">
{if $oTopic->getType()=='question'} {if $oTopic->getType()=='question'}
<div id="topic_question_area_{$oTopic->getId()}" class="poll"> <div id="topic_question_area_{$oTopic->getId()}" class="poll">
{if !$oTopic->getUserQuestionIsVote()} {* Если пользователь еще не участвовал в голосовании *} {if !$oTopic->getUserQuestionIsVote()}
<ul class="poll-vote"> <ul class="poll-vote">
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer} {foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
<li><label><input type="radio" id="topic_answer_{$oTopic->getId()}_{$key}" name="topic_answer_{$oTopic->getId()}" value="{$key}" onchange="$('topic_answer_{$oTopic->getId()}_value').setProperty('value',this.value);" /> {$aAnswer.text|escape:'html'}</label></li> <li><label><input type="radio" id="topic_answer_{$oTopic->getId()}_{$key}" name="topic_answer_{$oTopic->getId()}" value="{$key}" onchange="$('topic_answer_{$oTopic->getId()}_value').setProperty('value',this.value);" /> {$aAnswer.text|escape:'html'}</label></li>

View file

@ -818,6 +818,12 @@ table.admin_page td { /* IE: */ border-left: expression(previousSibling == nul
.hidden {display: none;} .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; }

View file

@ -1,38 +1,27 @@
{if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()} {if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()}
<fieldset> <div class="stat-performance">
<legend>Statistics performance</legend> <h2>Statistics performance</h2>
<table>
<tr align="top"> <table>
<td align="top"> <tr>
<ul> <td>
<li> <h4>MySql</h4>
<b>MySql</b> <br> query: <strong>{$aStatsPerformance.sql.count}</strong><br />
&nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.sql.count}<br> time: <strong>{$aStatsPerformance.sql.time}</strong>
&nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.sql.time}<br><br><br> </td>
</li> <td>
</ul> <h4>Cache</h4>
</td> query: <strong>{$aStatsPerformance.cache.count}</strong><br />
<td> &mdash; set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
<ul> &mdash; get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
<li> time: <strong>{$aStatsPerformance.cache.time}</strong>
<b>Cache</b> <br> </td>
&nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.cache.count}<br> <td>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set: {$aStatsPerformance.cache.count_set}<br> <h4>PHP</h4>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get: {$aStatsPerformance.cache.count_get}<br> time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
&nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.cache.time} full time: <strong>{$iTimeFullPerformance}</strong>
</li> </td>
</ul> </tr>
</td> </table>
<td align="top"> </div>
<ul>
<li>
<b>PHP</b> <br>
&nbsp;&nbsp;&nbsp;time load modules:{$aStatsPerformance.engine.time_load_module}<br>
&nbsp;&nbsp;&nbsp;full time:{$iTimeFullPerformance}<br><br><br>
</li>
</ul>
</td>
</tr>
</table>
</fieldset>
{/if} {/if}