remove old readme
[atutor.git] / docs / themes / default / instructor / statistics / course_stats.tmpl.php
1 <table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center">
2         <tr>
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>
9         </tr>
10 <?php
11                 if (($this->num_days == 0) || ($this->empty)) {
12                         echo '<tr>';
13                         echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
14                         echo '</tr>';
15                         echo '</table>';
16                         require(AT_INCLUDE_PATH.'footer.inc.php');
17                         exit;
18                 }
19 ?>
20         <tr>
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>
23         </tr>
24         <tr><td height="1" class="row2" colspan="2"></td></tr>
25         <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>
28         </tr>
29         <tr><td height="1" class="row2" colspan="2"></td></tr>
30
31         <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; 
36                 } else {
37                         echo '0';
38                 } ?></td>
39         </tr>
40         <tr><td height="1" class="row2" colspan="2"></td></tr>
41         <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>
44         </tr>
45         <tr><td height="1" class="row2" colspan="2"></td></tr>
46
47         <tr>
48                 <td class="row1" valign="top" align="right"><strong><?php   echo _AT('graph'); ?>:</strong></td>
49                 <td class="row1">
50                         <table border="0" cellspacing="0" cellpadding="0">
51                         <tr>
52                                 <td valign="top" class="graph1"><small><?php echo $this->max_total_logins; ?></small></td>
53
54 <?php
55                         foreach ($this->days as $day => $logins) {
56                         $dd++;
57                                 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.'&nbsp;</small></td>';
58
59                         } while ($row = mysql_fetch_array($this->result));
60 ?>
61
62                         </tr>
63                         <tr>
64                                 <td valign="top"><small>0</small></td>
65                         </tr>
66                         </table>
67
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>
70                 </td>
71         </tr>
72         <tr><td height="1" class="row2" colspan="2"></td></tr>
73         <tr>
74                 <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
75                 <td class="row1" align="center">
76         
77                 <table class="data static" summary="" rules="cols">
78                 <thead>
79                 <tr>
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>
83                 </tr>
84                 </thead>
85                 <tbody>
86                 <?php $short_name = $month_name_con['en'][$month-1]; ?>
87                 <?php foreach ($this->days as $day => $logins):?>
88                         <tr>
89                                 <td><?php echo $short_name.' '.$day; ?></td>
90                                 <td><?php echo $logins[0]; ?></td>
91                                 <td><?php echo $logins[1]; ?></td>
92                         </tr>
93                 <?php endforeach; ?>
94                 <tbody>
95                 </table>
96
97                 </td>
98         </tr>
99         </table>