remove old readme
[atutor.git] / themes / mobile / instructor / content / tracker / index.tmpl.php
1 <?php global $contentManager;?>
2 <div class="toolcontainer">
3 <div class="paging">
4         <ul>
5         <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
6                 <li>
7                         <?php if ($i == $this->page) : ?>
8                                 <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><strong><?php echo $i; ?></strong></a>
9                         <?php else: ?>
10                                 <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><?php echo $i; ?></a>
11                         <?php endif; ?>
12                 </li>
13         <?php endfor; ?>
14         </ul>
15 </div>
16 <table class="data" summary="Lists usage of content pages.">
17 <colgroup>
18         <?php if ($this->col == 'total_hits'): ?>
19                 <col />
20                 <col class="sort" />
21                 <col span="4" />
22         <?php elseif($this->col == 'unique_hits'): ?>
23                 <col span="2" />
24                 <col class="sort" />
25                 <col span="3" />
26         <?php // REMOVED FOR MOBILE elseif($this->col == 'average_duration'): ?>
27         <!--  <col span="3" />
28                 <col class="sort" />
29                 <col span="2" />-->     
30         <?php // REMOVED FOR MOBILE elseif($this->col == 'total_duration'): ?>
31                 <!--  <col span="4" />
32                 <col class="sort" />
33                 <col /> -->
34         <?php endif; ?>
35 </colgroup>
36 <thead>
37 <tr>
38         <th scope="col"><?php echo _AT('page'); ?></th>
39         <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_hits"><?php echo _AT('visits');             ?></a></th>
40         <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=unique_hits"><?php echo _AT('unique_visits');     ?></a></th>
41         <!-- REMOVED FOR MOBILE <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=average_duration"><?php echo _AT('avg_duration'); ?></a></th>-->
42         <!-- REMOVED FOR MOBILE <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_duration"><?php echo _AT('duration');       ?></a></th>-->
43         <th scope="col"><?php echo _AT('details');       ?></th>
44 </tr>
45 </thead>
46 <tbody>
47 <?php if ($row = mysql_fetch_assoc($this->result)): ?>
48         <?php do { ?>
49                 <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>'" title="<?php echo _AT('details'); ?>">
50                         <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
51                         <td><?php echo $row['total_hits'];       ?></td>
52                         <td><?php echo $row['unique_hits'];      ?></td>
53                         <!-- REMOVED FOR MOBILE <td><?php //echo $row['average_duration']; ?></td>-->
54                         <!-- REMOVED FOR MOBILE<td><?php echo $row['total_duration'];   ?></td> -->
55                         <td><a href="mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>"><?php echo _AT('details'); ?></a></td>
56                 </tr>
57         <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
58 <?php else: ?>
59         <tr>
60                 <td colspan="6"><?php echo _AT('none_found'); ?></td>
61         </tr>
62 <?php endif; ?>
63 </tbody>
64 </table>
65
66 </div>