b5e6d3667011663ca5e0770ba06ce5795b601b62
[atutor.git] / docs / themes / mobile / instructor / statistics / tracker / my_stats.tmpl.php
1 <?php global $contentManager;?>
2 <div class="table-surround">
3 <table class="data static" summary="">
4 <thead>
5 <tr>
6         <th scope="col"><?php echo _AT('page'); ?></th>
7         <th scope="col"><?php echo _AT('visits'); ?></th>
8         <th scope="col"><?php echo _AT('duration'); ?></th>
9         <th scope="col"><?php echo _AT('last_accessed'); ?></th>
10 </tr>
11 </thead>
12 <tbody>
13 <?php
14         
15
16         if (mysql_num_rows($this->result) > 0) {
17                 while ($row = mysql_fetch_assoc($this->result)) {
18                         if ($row['total'] == '') {
19                                 $row['total'] = _AT('na');
20                         }
21
22                         echo '<tr>';
23                         echo '<td><a href='.AT_BASE_HREF.url_rewrite('content.php?cid='.$row['content_id']). '>' . $contentManager->_menu_info[$row['content_id']]['title'] . '</a></td>';
24                         echo '<td>' . $row['total_hits'] . '</td>';
25                         echo '<td>' . $row['total_duration'] . '</td>';
26                         if ($row['last_accessed'] == '') {
27                                 echo '<td>' . _AT('na') . '</td>';
28                         } else {
29                                 echo '<td>' . AT_date(_AT('forum_date_format'), $row['last_accessed'], AT_DATE_MYSQL_DATETIME) . '</td>';
30                         }
31                         echo '</tr>';
32                 } //end while
33
34                 echo '</tbody>';
35
36         } else {
37                 echo '<tr><td colspan="4">' . _AT('none_found') . '</td></tr>';
38                 echo '</tbody>';
39         }
40         ?>
41 </tbody>
42 </table>
43 </div>
44