1 <?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
2 <table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center">
4 <th colspan="2" class="cyan"><small class="bigspacer"><?php
5 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
6 echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
7 <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
8 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
9 echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
12 if (($this->num_days == 0) || ($this->empty)) {
14 echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
17 require(AT_INCLUDE_PATH.'footer.inc.php');
22 <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
23 <td class="row1"><?php echo $this->total_logins; ?></td>
25 <tr><td height="1" class="row2" colspan="2"></td></tr>
27 <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
28 <td class="row1"><?php echo $this->max_total_logins; ?></td>
30 <tr><td height="1" class="row2" colspan="2"></td></tr>
33 <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
34 <td class="row1"><?php
35 if ($this->min_total_logins < 99999999) {
36 echo $this->min_total_logins;
41 <tr><td height="1" class="row2" colspan="2"></td></tr>
43 <td class="row1" valign="top" align="right"><strong><?php echo _AT('average'); ?>:</strong></td>
44 <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php echo _AT('per_day'); ?></td>
46 <tr><td height="1" class="row2" colspan="2"></td></tr>
49 <td class="row1" valign="top" align="right" <strong><?php echo _AT('graph'); ?>:</strong></td>
51 <table border="0" cellspacing="0" cellpadding="0">
53 <td valign="top" class="graph1"><small><?php echo $this->max_total_logins; ?></small></td>
56 foreach ($this->days as $day => $logins) {
58 echo '<td valign="bottom" class="graph"><img src="images/clr.gif" height="'.(($this->max_total_logins*$this->multiplyer_height) % $this->block_height + $this->block_height).'" width="10" alt="" /><br /><img src="images/blue.gif" height="'.($logins[0]*$this->multiplyer_height).'" width="9" alt="'.$logins[0].' '._AT('guests').' ('.($logins[0]+$logins[1]).' '._AT('total').')" /><br /><img src="images/red.gif" height="'.($logins[1]*$this->multiplyer_height).'" width="9" alt="'.$logins[1].' '._AT('members').' ('.($logins[1]+$logins[0]).' '._AT('total').')" /><br /><small>'.$dd.' </small></td>';
60 } while ($row = mysql_fetch_array($this->result));
65 <td valign="top"><small>0</small></td>
69 <small><?php echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php echo _AT('members'); ?>,
70 <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>
73 <tr><td height="1" class="row2" colspan="2"></td></tr>
75 <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
76 <td class="row1" align="center">
78 <table class="data static" summary="" rules="cols">
81 <th scope="col"><?php echo _AT('date'); ?></th>
82 <th scope="col"><?php echo _AT('guests'); ?></th>
83 <th scope="col"><?php echo _AT('members'); ?></th>
87 <?php $short_name = $month_name_con['en'][$month-1]; ?>
88 <?php foreach ($this->days as $day => $logins):?>
90 <td><?php echo $short_name.' '.$day; ?></td>
91 <td><?php echo $logins[0]; ?></td>
92 <td><?php echo $logins[1]; ?></td>
102 <?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
104 <table style="width: 100%" cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center" frame="box" >
106 <th colspan="2" class="cyan"><small class="bigspacer"><?php
107 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
108 echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
109 <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
110 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
111 echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
114 if (($this->num_days == 0) || ($this->empty)) {
116 echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
119 require(AT_INCLUDE_PATH.'footer.inc.php');
124 <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
125 <td class="row1"><?php echo $this->total_logins; ?></td>
127 <tr><td height="1" class="row2" colspan="2"></td></tr>
129 <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
130 <td class="row1"><?php echo $this->max_total_logins; ?></td>
132 <tr><td height="1" class="row2" colspan="2"></td></tr>
135 <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
136 <td class="row1"><?php
137 if ($this->min_total_logins < 99999999) {
138 echo $this->min_total_logins;
143 <tr><td height="1" class="row2" colspan="2"></td></tr>
145 <td class="row1" valign="top" align="right"><strong><?php echo _AT('average'); ?>:</strong></td>
146 <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php echo _AT('per_day'); ?></td>
148 <tr><td height="1" class="row2" colspan="2"></td></tr>
151 <tr><td height="1" class="row2" colspan="2"></td></tr>
153 <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
154 <td class="row1" align="center">
156 <table class="data static" summary="" rules="cols" frame="box">
159 <th scope="col"><?php echo _AT('date'); ?></th>
160 <th scope="col"><?php echo _AT('guests'); ?></th>
161 <th scope="col"><?php echo _AT('members'); ?></th>
165 <?php $short_name = $month_name_con['en'][$month-1]; ?>
166 <?php foreach ($this->days as $day => $logins):?>
168 <td><?php echo $short_name.' '.$day; ?></td>
169 <td><?php echo $logins[0]; ?></td>
170 <td><?php echo $logins[1]; ?></td>