Skip to content

Commit

Permalink
Split template
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jun 12, 2017
1 parent a06fb76 commit fced0fc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@
<td><?php echo $totalMessagesCount-$systemMessagesCount-$totalVisitorsMessagesCount?></td>
</tr>
</table>

<h2><?php include(erLhcoreClassDesign::designtpl('lhstatistic/tabs/titles/operators_statistic_top_100_by_chats_number.tpl.php'));?></h2>
<?php $operators = erLhcoreClassChatStatistic::getTopTodaysOperators(100,0,$filter24); ?>

<?php $operators = erLhcoreClassChatStatistic::getTopTodaysOperators(100,0,$filter24); ?>
<table class="table">
<thead>
<tr>
Expand All @@ -161,16 +161,5 @@
<td><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','Last activity');?></td>
</tr>
</thead>
<?php foreach ($operators as $operator) : ?>
<tr>
<td><?php echo htmlspecialchars((string)$operator)?></td>
<td><?php echo $operator->statistic_total_chats?></td>
<td><?php echo $operator->statistic_total_messages?></td>
<td>
<span class="up-voted"><i class="material-icons up-voted">thumb_up</i><?php echo $operator->statistic_upvotes?></span>
<span class="down-voted"><i class="material-icons down-voted">thumb_down</i><?php echo $operator->statistic_downvotes?></span>
</td>
<td><?php echo $operator->lastactivity_ago?> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','ago');?></td>
</tr>
<?php endforeach;?>
</table>
<?php include(erLhcoreClassDesign::designtpl('lhstatistic/tabs/part/top_24_operators.tpl.php'));?>
</table>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php foreach ($operators as $operator) : ?>
<tr>
<td><?php echo htmlspecialchars((string)$operator)?></td>
<td><?php echo $operator->statistic_total_chats?></td>
<td><?php echo $operator->statistic_total_messages?></td>
<td>
<span class="up-voted"><i class="material-icons up-voted">thumb_up</i><?php echo $operator->statistic_upvotes?></span>
<span class="down-voted"><i class="material-icons down-voted">thumb_down</i><?php echo $operator->statistic_downvotes?></span>
</td>
<td><?php echo $operator->lastactivity_ago?> <?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/statistic','ago');?></td>
</tr>
<?php endforeach;?>

0 comments on commit fced0fc

Please sign in to comment.