1 <table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center">
3 <th colspan="2" class="cyan"><small class="bigspacer"><?php
4 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
5 echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
6 <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
7 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
8 echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
11 if (($this->num_days == 0) || ($this->empty)) {
13 echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
16 require(AT_INCLUDE_PATH.'footer.inc.php');
21 <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
22 <td class="row1"><?php echo $this->total_logins; ?></td>
24 <tr><td height="1" class="row2" colspan="2"></td></tr>
26 <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
27 <td class="row1"><?php echo $this->max_total_logins; ?></td>
29 <tr><td height="1" class="row2" colspan="2"></td></tr>
32 <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
33 <td class="row1"><?php
34 if ($this->min_total_logins < 99999999) {
35 echo $this->min_total_logins;
40 <tr><td height="1" class="row2" colspan="2"></td></tr>
42 <td class="row1" valign="top" align="right"><strong><?php echo _AT('average'); ?>:</strong></td>
43 <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php echo _AT('per_day'); ?></td>
45 <tr><td height="1" class="row2" colspan="2"></td></tr>
48 <td class="row1" valign="top" align="right"><strong><?php echo _AT('graph'); ?>:</strong></td>
50 <table border="0" cellspacing="0" cellpadding="0">
52 <td valign="top" class="graph1"><small><?php echo $this->max_total_logins; ?></small></td>
55 foreach ($this->days as $day => $logins) {
57 echo '<td valign="bottom" class="graph"><img src="images/clr.gif" height="'.(($this->max_total_logins*$multiplyer_height) % $block_height + $block_height).'" width="10" alt="" /><br /><img src="images/blue.gif" height="'.($logins[0]*$multiplyer_height).'" width="9" alt="'.$logins[0].' '._AT('guests').' ('.($logins[0]+$logins[1]).' '._AT('total').')" /><br /><img src="images/red.gif" height="'.($logins[1]*$multiplyer_height).'" width="9" alt="'.$logins[1].' '._AT('members').' ('.($logins[1]+$logins[0]).' '._AT('total').')" /><br /><small>'.$dd.' </small></td>';
59 } while ($row = mysql_fetch_array($this->result));
64 <td valign="top"><small>0</small></td>
68 <small><?php echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php echo _AT('members'); ?>,
69 <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>
72 <tr><td height="1" class="row2" colspan="2"></td></tr>
74 <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
75 <td class="row1" align="center">
77 <table class="data static" summary="" rules="cols">
80 <th scope="col"><?php echo _AT('date'); ?></th>
81 <th scope="col"><?php echo _AT('guests'); ?></th>
82 <th scope="col"><?php echo _AT('members'); ?></th>
86 <?php $short_name = $month_name_con['en'][$month-1]; ?>
87 <?php foreach ($this->days as $day => $logins):?>
89 <td><?php echo $short_name.' '.$day; ?></td>
90 <td><?php echo $logins[0]; ?></td>
91 <td><?php echo $logins[1]; ?></td>