source: OWR/Includes/Themes/Original/tpl/blocks/stats.html @ 6f7b2e

Revision 6f7b2e, 2.2 KB checked in by pierre-alain <pierre-alain@…>, 4 years ago (diff)

adding stat on dead/unavailable streams

  • Property mode set to 100644
Line 
1<div class="stats">
2    <table id="stats" class="stats">
3        <caption><?php echo $this->_utilities->_('Statistiques');?></caption>
4        <thead>
5            <tr>
6                <th class="full_rounded"><?php echo $this->_utilities->_('Type');?></th>
7                <th class="full_rounded"><?php echo $this->_utilities->_('Total');?></th>
8            </tr>
9        </thead>
10        <tbody>
11            <tr>
12                <td class="full_rounded"><?php echo $this->_utilities->_('Categories');?></td>
13                <td class="full_rounded"><?php echo $nbCategories;?></td>
14            </tr>
15            <tr>
16                <td class="full_rounded"><?php echo $this->_utilities->_('Streams');?></td>
17                <td class="full_rounded"><?php echo $nbStreams . ' (-' . $nbDeadStreams . ')';?></td>
18            </tr>
19            <tr>
20                <td class="full_rounded"><?php echo $this->_utilities->_('News');?></td>
21                <td class="full_rounded"><?php echo $nbNews;?></td>
22            </tr>
23            <tr>
24                <td class="full_rounded"><?php echo $this->_utilities->_('Unreads news');?></td>
25                <td class="full_rounded"><?php echo $nbUnreads;?></td>
26            </tr>
27            <tr>
28                <td class="full_rounded"><?php echo $this->_utilities->_('Tags');?></td>
29                <td class="full_rounded"><?php echo $nbTags;?></td>
30            </tr>
31<?php if(isset($nbUsers)) {?>
32            <tr>
33                <td class="full_rounded"><?php echo $this->_utilities->_('Users');?></td>
34                <td class="full_rounded"><?php echo $nbUsers;?></td>
35            </tr>
36<?php }
37      if(isset($nbTotalStreams)) {?>
38            <tr>
39                <td class="full_rounded"><?php echo $this->_utilities->_('Total streams');?></td>
40                <td class="full_rounded"><?php echo $nbTotalStreams . ' (-' . $nbTotalDeadStreams . ')';?></td>
41            </tr>
42<?php }
43      if(isset($nbTotalNews)) {?>
44            <tr>
45                <td class="full_rounded"><?php echo $this->_utilities->_('Total news');?></td>
46                <td class="full_rounded"><?php echo $nbTotalNews;?></td>
47            </tr>
48<?php }?>
49        </tbody>
50    </table>
51</div>
Note: See TracBrowser for help on using the repository browser.