remove old readme
[atutor.git] / docs / themes / default / 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
17 <table class="data" rules="cols" summary="Usage, including Visits, Unique Visits, average duration, and total duration, of content pages">
18 <colgroup>
19         <?php if ($this->col == 'total_hits'): ?>
20                 <col />
21                 <col class="sort" />
22                 <col span="4" />
23         <?php elseif($this->col == 'unique_hits'): ?>
24                 <col span="2" />
25                 <col class="sort" />
26                 <col span="3" />
27         <?php elseif($this->col == 'average_duration'): ?>
28                 <col span="3" />
29                 <col class="sort" />
30                 <col span="2" />
31         <?php elseif($this->col == 'total_duration'): ?>
32                 <col span="4" />
33                 <col class="sort" />
34                 <col />
35         <?php endif; ?>
36 </colgroup>
37 <thead>
38 <tr>
39         <th scope="col"><?php echo _AT('page'); ?></th>
40         <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_hits"><?php echo _AT('visits');             ?></a></th>
41         <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=unique_hits"><?php echo _AT('unique_visits');     ?></a></th>
42         <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=average_duration"><?php echo _AT('avg_duration'); ?></a></th>
43         <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_duration"><?php echo _AT('duration');       ?></a></th>
44         <th scope="col"><?php echo _AT('details');       ?></th>
45 </tr>
46 </thead>
47 <tbody>
48 <?php if ($row = mysql_fetch_assoc($this->result)): ?>
49         <?php do { ?>
50                 <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'); ?>">
51                         <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
52                         <td><?php echo $row['total_hits'];       ?></td>
53                         <td><?php echo $row['unique_hits'];      ?></td>
54                         <td><?php echo $row['average_duration']; ?></td>
55                         <td><?php echo $row['total_duration'];   ?></td>
56                         <td><a href="mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>"><?php echo _AT('details'); ?></a></td>
57                 </tr>
58         <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
59 <?php else: ?>
60         <tr>
61                 <td colspan="6"><?php echo _AT('none_found'); ?></td>
62         </tr>
63 <?php endif; ?>
64 </tbody>
65 </table>
66 </div>