/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: a11emmjo
  • Date: 2013-05-28 14:42:11 UTC
  • mfrom: (121 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: a11emmjo@student.his.se-20130528144211-k7k5ctom1o98dafa
Fixed some css on the cmsindex.

Updated pics with transparent background.

Updated branch!

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        
20
20
                <?php
21
21
                        //$filetree[];
 
22
                        $counter = 1;
22
23
                        
23
24
                        foreach ($filetree as $category => $subCategories) {
 
25
                        
 
26
                                //Decides if the row color should be grey or not.
 
27
                                if($counter % 2) {
 
28
                                        $line = 'even';
 
29
                                }
 
30
                                else {
 
31
                                        $line = 'odd';
 
32
                                }
 
33
                                
24
34
                                echo    '<div id="'.$category.'">
25
 
                                                        <div name="'.$category.'" class="categoryName">'
 
35
                                                        <p name="'.$category.'" class="categoryName '.$line.'">'
26
36
                                                                .$category.
27
 
                                                        '</div>';
 
37
                                                        '</p>';
28
38
                                                
29
39
                                foreach ($subCategories as $subCategory => $subCategoryContents) {
30
 
                                        echo    '<div name="'.$subCategory.'" class="subCategoryName">'
 
40
                                        echo    '<p name="'.$subCategory.'" class="subCategoryName '.$line.'">'
31
41
                                                                .$subCategory.
32
 
                                                        '</div>';
 
42
                                                        '</p>';
33
43
                                        
34
44
                                        foreach ($subCategoryContents['examples'] as $example) {
35
 
                                                echo    '<div name="'.$example.'" class="exampleName">'
 
45
                                                echo    '<p name="'.$example.'" class="exampleName '.$line.'">'
36
46
                                                                        .$example.
37
 
                                                                '</div>';
 
47
                                                                '</p>';
38
48
                                        }
39
49
                                        
40
50
                                        foreach ($subCategoryContents['quizzes'] as $quiz) {
41
 
                                                echo    '<div name="'.$quiz.'" class="quizName">'
 
51
                                                echo    '<p name="'.$quiz.'" class="quizName '.$line.'">'
42
52
                                                                        .$quiz.
43
 
                                                                '</div>';
 
53
                                                                '</p>';
44
54
                                        }                                       
45
55
                                }
46
56
                                echo    '</div><!-- end of category div -->';
 
57
                                $counter++;
47
58
                        }
48
59
                ?>
49
60