1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-10 12:58:21 +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()}
<fieldset>
<legend>Statistics performance</legend>
<table>
<tr align="top">
<td align="top">
<ul>
<li>
<b>MySql</b> <br>
&nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.sql.count}<br>
&nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.sql.time}<br><br><br>
</li>
</ul>
</td>
<td>
<ul>
<li>
<b>Cache</b> <br>
&nbsp;&nbsp;&nbsp;query: {$aStatsPerformance.cache.count}<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set: {$aStatsPerformance.cache.count_set}<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get: {$aStatsPerformance.cache.count_get}<br>
&nbsp;&nbsp;&nbsp;time: {$aStatsPerformance.cache.time}
</li>
</ul>
</td>
<td align="top">
<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>
<div class="stat-performance">
<h2>Statistics performance</h2>
<table>
<tr>
<td>
<h4>MySql</h4>
query: <strong>{$aStatsPerformance.sql.count}</strong><br />
time: <strong>{$aStatsPerformance.sql.time}</strong>
</td>
<td>
<h4>Cache</h4>
query: <strong>{$aStatsPerformance.cache.count}</strong><br />
&mdash; set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
&mdash; get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
time: <strong>{$aStatsPerformance.cache.time}</strong>
</td>
<td>
<h4>PHP</h4>
time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
full time: <strong>{$iTimeFullPerformance}</strong>
</td>
</tr>
</table>
</div>
{/if}

View file

@ -29,7 +29,7 @@
<div class="content">
{if $oTopic->getType()=='question'}
<div id="topic_question_area_{$oTopic->getId()}" class="poll">
{if !$oTopic->getUserQuestionIsVote()} {* Если пользователь еще не участвовал в голосовании *}
{if !$oTopic->getUserQuestionIsVote()}
<ul class="poll-vote">
{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>

View file

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

View file

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