/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
1
<!-- examplesBody.php -->
2
	<div id="exampleBodyMenu">
64.1.1 by b11johgu
ExamplesController:
3
		<h1 class="temph1">Courseview</h1>
4
		 <!-- Only displayed when teacher -->
5
		<a class="btn positionUnder">Add category</a>
6
		<a class="btn cp">Add student</a>
7
		<a class="btn cp">View students</a>
8
	</div>
9
10
	<div id="bodyContainer">
28.2.3 by a10rolch
Added files:
11
64.1.1 by b11johgu
ExamplesController:
12
		<!-- Loops down below makes it possible to load values from a source -->
13
		<?php
14
		$counter=1;
15
		foreach ($titles as $category => $categoryArray){
16
		$categoryData = explode(',', $category);
17
			$counter++;
18
			if($counter % 2){ // Lös detta på bättre sätt
19
		echo 	'<div id="'.$category.'" class="banner row">
20
				<h1 class="categoryName" name="'.$category.'">
21
					<p class="categoryIcon expanded" onclick="categoryExpand(&quot;'.$category.'&quot;);">?</p>'.$category.'
22
				</h1>
23
				<div class="categoryMoveUp" onclick="categoryMoveUp(&quot;'.$category.'&quot;);">&</div>
24
				<div class="categoryMoveDown" onclick="categoryMoveDown(&quot;'.$category.'&quot;);">&</div>';
25
				foreach ($categoryArray as $subCategory => $subCatArray){
26
				
27
					if(!is_numeric($subCategory)){
28
						echo '<div class="categoryBorder"></div>
29
						<div id='.$subCategory.'>
30
							<h3 class="subCategoryName row">
31
								<p class="categoryIcon expanded" onclick="categoryExpand(&quot;'.$subCategory.'&quot;)">?</p>'.$subCategory.'
32
							</h3>';
33
							if(count($subCatArray)>0){
34
								foreach ($subCatArray as $example){
35
							echo	'<div class="categoryBorder"></div>
36
									<div class="exampleBorder"></div>
37
									<a href="#" class="exampleName row">
38
										<div class="exampleIcon"></div>
39
										'.$example.'
40
									</a>';
41
								}
42
							}
43
						echo '</div>';
44
					}
45
				}		
46
			echo '</div>';
47
		}
48
		
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
49
		}
64.1.1 by b11johgu
ExamplesController:
50
		?>
51
	</div>
28.2.3 by a10rolch
Added files:
52
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
53
	</div>
54
</body>
28.2.3 by a10rolch
Added files:
55
</html>
52.1.1 by b11johgu
Added controllers for examplepage, templatelayout.
56