bzr branch
http://gegoxaren.bato24.eu/bzr/lenasys/trunk
|
90.1.10
by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu. |
1 |
<!-- sidemenu.php -->
|
2 |
<div id="sidemenuWrapper"> |
|
3 |
<div id="coursemenu"> |
|
4 |
<div class="sidemenuHeader"> |
|
5 |
<?php |
|
6 |
//$activeCourse
|
|
7 |
||
8 |
echo $activeCourse['courseID']; |
|
9 |
?>
|
|
10 |
</div> |
|
11 |
<div class="sidemenuContent"> |
|
12 |
<?php |
|
13 |
//$categories
|
|
14 |
||
15 |
foreach ($categories as $categoryName){ |
|
16 |
echo "<a href='#'>".$categoryName->categoryName."</a>"; |
|
17 |
};
|
|
18 |
?>
|
|
19 |
</div> |
|
20 |
</div> |
|
21 |
<div id="statsmenu"> |
|
22 |
<div class="sidemenuHeader"> |
|
23 |
Stats
|
|
24 |
</div> |
|
25 |
<div class="sidemenuContent"> |
|
26 |
<?php if ($userType == 'Teacher') { ?> |
|
|
124.1.1
by Erik Wikström
Added display of statistics in the sidepane |
27 |
<p>System</p> |
28 |
<p class="sidemenuContentInfo">Courses: <?php echo $stats['system']['courseAmount']; ?></p> |
|
29 |
<p class="sidemenuContentInfo">Examples: <?php echo $stats['system']['exampleAmount']; ?></p> |
|
30 |
<p class="sidemenuContentInfo">Quizzes: <?php echo $stats['system']['quizAmount']; ?></p> |
|
31 |
<br> |
|
32 |
<?php } ?> |
|
33 |
<p>Course</p> |
|
|
90.1.10
by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu. |
34 |
<p class="sidemenuContentInfo">Examples: <?php echo $stats['course']['exampleAmount']; ?></p> |
|
124.1.1
by Erik Wikström
Added display of statistics in the sidepane |
35 |
<p class="sidemenuContentInfo">Quizzes: <?php echo $stats['course']['quizAmount']; ?></p> |
36 |
<br> |
|
|
90.1.10
by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu. |
37 |
<p>User</p> |
38 |
<p class="sidemenuContentInfo"><?php echo $stats['user']['agentPlatform']; ?></p> |
|
|
124.1.1
by Erik Wikström
Added display of statistics in the sidepane |
39 |
<p class="sidemenuContentInfo"><?php echo $stats['user']['agentType'].' '.$stats['user']['agentName']; |
40 |
if ($stats['user']['agentType'] == 'Desktop') { |
|
41 |
echo ' '.$stats['user']['agentVersion']; |
|
42 |
}
|
|
43 |
?></p> |
|
44 |
<p id="resolution" class="sidemenuContentInfo">Screenresolution</p> |
|
45 |
</div> |
|
|
90.1.10
by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu. |
46 |
</div> |
47 |
</div>
|
|
48 |