/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/views/cmsindex.php

  • Committer: Gustav Hartvigsson
  • Date: 2013-04-12 19:13:58 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20130412191358-lvnmll48cw7idkzk
added:
* COPYING - licensing information
* COPYRIGHT_HEADER - the header that should be in every file related to
  the project.
* README - Information about the project.
* lgpl-3.0 - The license that is used by this project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
<!-- cmsindex.php -->
3
 
<div  id="cmsContentWrapper" class="cmsContent">
4
 
        <div id="cmsContentHeader">
5
 
                <?php
6
 
                        //$userType
7
 
                        
8
 
                        if($userType=='Teacher') {
9
 
                                echo '
10
 
                                        <div class="cmsButton right abowHeaderLine">Add Student</div>
11
 
                                        <div class="cmsButton right abowHeaderLine">View students</div>
12
 
                                        <div class="cmsButton right belowHeaderLine">Add Category</div>
13
 
                                ';
14
 
                        }
15
 
                ?>
16
 
        </div>
17
 
 
18
 
        <div id="cmsContentBody">
19
 
        
20
 
                <?php
21
 
                        //$filetree[];
22
 
                        
23
 
                        foreach ($filetree as $category => $subCategories) {
24
 
                                echo    '<div id="'.$category.'">
25
 
                                                        <div name="'.$category.'" class="categoryName">'
26
 
                                                                .$category.
27
 
                                                        '</div>';
28
 
                                                
29
 
                                foreach ($subCategories as $subCategory => $subCategoryContents) {
30
 
                                        echo    '<div name="'.$subCategory.'" class="subCategoryName">'
31
 
                                                                .$subCategory.
32
 
                                                        '</div>';
33
 
                                        
34
 
                                        foreach ($subCategoryContents['examples'] as $example) {
35
 
                                                echo    '<div name="'.$example.'" class="exampleName">'
36
 
                                                                        .$example.
37
 
                                                                '</div>';
38
 
                                        }
39
 
                                        
40
 
                                        foreach ($subCategoryContents['quizzes'] as $quiz) {
41
 
                                                echo    '<div name="'.$quiz.'" class="quizName">'
42
 
                                                                        .$quiz.
43
 
                                                                '</div>';
44
 
                                        }                                       
45
 
                                }
46
 
                                echo    '</div><!-- end of category div -->';
47
 
                        }
48
 
                ?>
49
 
        
50
 
                <!-- Loops down below makes it possible to load values from a source -->
51
 
                <?php
52
 
                /*$counter=1;
53
 
                foreach ($titles as $category => $categoryArray){
54
 
                $categoryData = explode(',', $category);
55
 
                        $counter++;
56
 
                        if($counter % 2){ // Lös detta på bättre sätt
57
 
                echo    '<div id="'.$category.'" class="banner row">
58
 
                                <h1 class="categoryName" name="'.$category.'">
59
 
                                        <p class="categoryIcon expanded" onclick="categoryExpand(&quot;'.$category.'&quot;);">?</p>'.$category.'
60
 
                                </h1>
61
 
                                <div class="categoryMoveUp" onclick="categoryMoveUp(&quot;'.$category.'&quot;);">&</div>
62
 
                                <div class="categoryMoveDown" onclick="categoryMoveDown(&quot;'.$category.'&quot;);">&</div>';
63
 
                                foreach ($categoryArray as $subCategory => $subCatArray){
64
 
                                
65
 
                                        if(!is_numeric($subCategory)){
66
 
                                                echo '<div class="categoryBorder"></div>
67
 
                                                <div id='.$subCategory.'>
68
 
                                                        <h3 class="subCategoryName row">
69
 
                                                                <p class="categoryIcon expanded" onclick="categoryExpand(&quot;'.$subCategory.'&quot;)">?</p>'.$subCategory.'
70
 
                                                        </h3>';
71
 
                                                        if(count($subCatArray)>0){
72
 
                                                                foreach ($subCatArray as $example){
73
 
                                                        echo    '<div class="categoryBorder"></div>
74
 
                                                                        <div class="exampleBorder"></div>
75
 
                                                                        <a href="#" class="exampleName row">
76
 
                                                                                <div class="exampleIcon"></div>
77
 
                                                                                '.$example.'
78
 
                                                                        </a>';
79
 
                                                                }
80
 
                                                        }
81
 
                                                echo '</div>';
82
 
                                        }
83
 
                                }               
84
 
                        echo '</div>';
85
 
                }
86
 
                
87
 
                }*/
88
 
                ?>
89
 
        </div><!-- end of cmsContentBody div -->
90
 
</div>
91