/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!-- examplesBody.php -->
	<div id="exampleBodyMenu">
		<h1 class="temph1">Courseview</h1>
		 <!-- Only displayed when teacher -->
		<a class="btn positionUnder">Add category</a>
		<a class="btn cp">Add student</a>
		<a class="btn cp">View students</a>
	</div>

	<div id="bodyContainer">

		<!-- Loops down below makes it possible to load values from a source -->
		<?php
		$counter=1;
		foreach ($titles as $category => $categoryArray){
		$categoryData = explode(',', $category);
			$counter++;
			if($counter % 2){ // Lös detta på bättre sätt
		echo 	'<div id="'.$category.'" class="banner row">
				<h1 class="categoryName" name="'.$category.'">
					<p class="categoryIcon expanded" onclick="categoryExpand(&quot;'.$category.'&quot;);">?</p>'.$category.'
				</h1>
				<div class="categoryMoveUp" onclick="categoryMoveUp(&quot;'.$category.'&quot;);">&</div>
				<div class="categoryMoveDown" onclick="categoryMoveDown(&quot;'.$category.'&quot;);">&</div>';
				foreach ($categoryArray as $subCategory => $subCatArray){
				
					if(!is_numeric($subCategory)){
						echo '<div class="categoryBorder"></div>
						<div id='.$subCategory.'>
							<h3 class="subCategoryName row">
								<p class="categoryIcon expanded" onclick="categoryExpand(&quot;'.$subCategory.'&quot;)">?</p>'.$subCategory.'
							</h3>';
							if(count($subCatArray)>0){
								foreach ($subCatArray as $example){
							echo	'<div class="categoryBorder"></div>
									<div class="exampleBorder"></div>
									<a href="#" class="exampleName row">
										<div class="exampleIcon"></div>
										'.$example.'
									</a>';
								}
							}
						echo '</div>';
					}
				}		
			echo '</div>';
		}
		
		}
		?>
	</div>

	</div>
</body>
</html>