/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
129.1.1 by Erik Wikström
Added coyrights to sidemenu and stats
1
<!--
2
The header should look something like this:
3
4
Copyright (C) Högskolan i Skövde <his.se> 2013.
5
Copyright (C) Emma < ?? > 2013.
6
Copyright (C) Anders < ?? > 2013.
7
Copyright (C) Erik Wikström <b10eriwi@student.his.se> 2013.
8
9
This file is part of LenaSYS
10
11
This program is free software: you can redistribute it and/or modify
12
it under the terms of the GNU Lesser General Public License as published by
13
the Free Software Foundation, either version 3 of the License.
14
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
GNU Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public License
21
along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
-->
90.1.10 by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu.
23
24
<!-- sidemenu.php -->
25
<div id="sidemenuWrapper">
26
	<div id="coursemenu">
27
		<div class="sidemenuHeader">
28
			<?php
29
				//$activeCourse
30
				
31
				echo $activeCourse['courseID'];
32
			?>
33
		</div>
34
		<div class="sidemenuContent">
35
			<?php	
36
				//$categories
37
				
38
				foreach ($categories as $categoryName){
85.1.24 by a11andoh
updated branch
39
					echo "<a href='#' title='".$categoryName->categoryName."' class='dotsIfOwerflow'>".$categoryName->categoryName."</a>";
90.1.10 by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu.
40
				};
41
			?>
42
		</div>
43
	</div>
44
	<div id="statsmenu">
45
		<div class="sidemenuHeader">
46
			Stats
47
		</div>
48
		<div class="sidemenuContent">
124.1.1 by Erik Wikström
Added display of statistics in the sidepane
49
		<?php if ($userType == 'Teacher') { ?>
50
			<p>System</p>
129.1.1 by Erik Wikström
Added coyrights to sidemenu and stats
51
			<p class="sidemenuContentInfo"><?php echo $stats['system']['courseAmount']; ?> courses</p>
52
			<p class="sidemenuContentInfo"><?php echo $stats['system']['exampleAmount']; ?> examples</p>
53
			<p class="sidemenuContentInfo"><?php echo $stats['system']['quizAmount']; ?> quizzes</p>
124.1.1 by Erik Wikström
Added display of statistics in the sidepane
54
			<br>
55
		<?php } ?>
90.1.10 by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu.
56
			<p>Course</p>
129.1.1 by Erik Wikström
Added coyrights to sidemenu and stats
57
			<p class="sidemenuContentInfo"><?php echo $stats['course']['exampleAmount']; ?> examples</p>
58
			<p class="sidemenuContentInfo"><?php echo $stats['course']['quizAmount']; ?> quizzes</p>
90.1.10 by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu.
59
			<br>
60
			<p>User</p>
124.1.1 by Erik Wikström
Added display of statistics in the sidepane
61
			<p class="sidemenuContentInfo"><?php echo $stats['user']['agentPlatform']; ?></p>
129.1.1 by Erik Wikström
Added coyrights to sidemenu and stats
62
			<p class="sidemenuContentInfo"><?php echo $stats['user']['agentType'].' '.$stats['user']['agentName']; ?></p>
124.1.1 by Erik Wikström
Added display of statistics in the sidepane
63
			<p id="resolution" class="sidemenuContentInfo">Screenresolution</p>
90.1.10 by a11emmjo
Removed coursemenu and statsmenu and replaced it with new combined sidemenu.
64
		</div>
65
	</div>
66
</div>