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:
parent
5806062c94
commit
4a4f93ccb0
|
@ -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; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 />
|
||||||
query: {$aStatsPerformance.sql.count}<br>
|
time: <strong>{$aStatsPerformance.sql.time}</strong>
|
||||||
time: {$aStatsPerformance.sql.time}<br><br><br>
|
</td>
|
||||||
</li>
|
<td>
|
||||||
</ul>
|
<h4>Cache</h4>
|
||||||
</td>
|
query: <strong>{$aStatsPerformance.cache.count}</strong><br />
|
||||||
<td>
|
— set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
|
||||||
<ul>
|
— get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
|
||||||
<li>
|
time: <strong>{$aStatsPerformance.cache.time}</strong>
|
||||||
<b>Cache</b> <br>
|
</td>
|
||||||
query: {$aStatsPerformance.cache.count}<br>
|
<td>
|
||||||
set: {$aStatsPerformance.cache.count_set}<br>
|
<h4>PHP</h4>
|
||||||
get: {$aStatsPerformance.cache.count_get}<br>
|
time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
|
||||||
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>
|
|
||||||
time load modules:{$aStatsPerformance.engine.time_load_module}<br>
|
|
||||||
full time:{$iTimeFullPerformance}<br><br><br>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</fieldset>
|
|
||||||
{/if}
|
{/if}
|
|
@ -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>
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 />
|
||||||
query: {$aStatsPerformance.sql.count}<br>
|
time: <strong>{$aStatsPerformance.sql.time}</strong>
|
||||||
time: {$aStatsPerformance.sql.time}<br><br><br>
|
</td>
|
||||||
</li>
|
<td>
|
||||||
</ul>
|
<h4>Cache</h4>
|
||||||
</td>
|
query: <strong>{$aStatsPerformance.cache.count}</strong><br />
|
||||||
<td>
|
— set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
|
||||||
<ul>
|
— get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
|
||||||
<li>
|
time: <strong>{$aStatsPerformance.cache.time}</strong>
|
||||||
<b>Cache</b> <br>
|
</td>
|
||||||
query: {$aStatsPerformance.cache.count}<br>
|
<td>
|
||||||
set: {$aStatsPerformance.cache.count_set}<br>
|
<h4>PHP</h4>
|
||||||
get: {$aStatsPerformance.cache.count_get}<br>
|
time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
|
||||||
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>
|
|
||||||
time load modules:{$aStatsPerformance.engine.time_load_module}<br>
|
|
||||||
full time:{$iTimeFullPerformance}<br><br><br>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</fieldset>
|
|
||||||
{/if}
|
{/if}
|
Loading…
Reference in a new issue