/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/bannermenu.php

  • Committer: Gustav Hatvigsson
  • Date: 2013-05-17 15:27:18 UTC
  • mfrom: (67.1.6 lenasys)
  • Revision ID: gustav.hartvigsson@gmail.com-20130517152718-jciwc9blgxj0nch1
Merged the changes from Jonsson's chages to the banner menu and chages to
the login screen to use it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
<!-- bannermenu.php -->
 
3
<div id="bannerBody">
 
4
 
 
5
    <!-- This div contains the bannermenu and centers it on the page -->
 
6
    <div id="bannerWrapper">
 
7
    
 
8
        <!-- Determines how the LenaSYSButton should look and function depending on if the user is logged in or not  -->
 
9
        <?php
 
10
                        //$userName
 
11
                        $url = base_url();
 
12
                        
 
13
                        if($userName == '') {
 
14
                                $url += 'controller/metod';
 
15
                        }
 
16
                        else {
 
17
                                $url += 'controller/metod';
 
18
                        }
 
19
                        
 
20
                        echo '<a href="'.$url.'" title="Home"><div id="bannerLogoButton"></div></a>';
 
21
                ?>
 
22
        
 
23
        <!-- This div contains all the content between the LenaSYS button and the user button -->
 
24
        <div id="bannerContent">
 
25
        
 
26
            <!-- This div contains the content that is needed on the banner for the CMS page.
 
27
            The name is only used to set it hidden or shown. -->
 
28
            <div id="bannerContentCMS">
 
29
                
 
30
                <!-- Determines if the header should contain active course info depending on if the user is logged in or not -->
 
31
                <?php
 
32
                                        //$userName
 
33
                                        $header = '';
 
34
                                        
 
35
                                        if($userName != '') {
 
36
                                                $header = '<span id="bannerHeaderCMSCourseName">Webprogramming</span>&nbsp;-&nbsp;
 
37
                                            <span id="bannerHeaderCMSCourseCode">DA330G</span>';
 
38
                                        }
 
39
                                        
 
40
                                        echo '<div id="bannerHeaderCMS">'.$header.'</div>';
 
41
                                ?>
 
42
                
 
43
            </div>
 
44
            
 
45
            <!-- This div contains the content that is needed on the banner for the example page.
 
46
            The name is only used to set it hidden or shown. -->
 
47
            <div id="bannerContentExample">
 
48
                <a href="#" title="Open example menu"><div id="bannerCodeviewerMenuButton" class="icomoon">%</div></a>
 
49
                <a href="#" title="Go to previous example"><div id="bannerLeftArrowButton" class="icomoon">&amp;</div></a>
 
50
                <a href="#" title="Go to next example"><div id="bannerRightArrowButton" class="icomoon">'</div></a>
 
51
                <a href="#" title="Play the example"><div id="bannerPlayButton" class="icomoon">-</div></a>
 
52
                <div id="bannerHeaderExample">Menu with images using divs</div>
 
53
                <a href="#" title=""><div id="bannerExtraButton" class="icomoon">+</div></a>
 
54
            </div>
 
55
            
 
56
        </div><!-- End of bannerContent -->
 
57
        
 
58
        <!-- Determines how the userMenuButton should look and function depending on if the user is logged in or not  -->
 
59
        <?php
 
60
                        //$userName
 
61
                        $title = '';
 
62
                        $text = ''; 
 
63
                        
 
64
                        if($userName == '') {
 
65
                                $title = 'Click to login';
 
66
                                $text = 'Login';
 
67
                        }
 
68
                        else if($userName != '') {
 
69
                                $title = 'Open settings menu';
 
70
                                $text = $userName;
 
71
                        }
 
72
                        
 
73
                        echo '<div id="bannerUserMenuButton" title="'.$title.'">'.$text.'</div>';
 
74
                ?>
 
75
        
 
76
    </div><!-- End of bannerWrapper -->
 
77
    
 
78
    <!-- This div contains the dropdownmenus -->
 
79
    <div id="dropdownMenuWrapper">
 
80
    
 
81
        <!-- This div contains the dropdownmenu for the codeviewer menu button -->
 
82
        <div id="dropdownCodeviewerMenu">
 
83
            <div class="drowdownMenuHeader">Choose example</div>
 
84
            <a href="#"><div class="dropdownMenuButton">Menu with images using divs</div></a>
 
85
            <a href="#"><div class="dropdownMenuButton">Dropdown menu</div></a>
 
86
            <a href="#"><div class="dropdownMenuButton">Expand and contract data</div></a>             
 
87
        </div>
 
88
        
 
89
        <!-- This div contains the dropdownmenu for user menu button -->
 
90
        <div id="dropdownUserMenu">
 
91
            <div class="drowdownMenuHeader">Settings</div>
 
92
            <a href="#"><div class="dropdownMenuButton">Courses<span id="dropdownMenuButtonArrow">&nbsp;</span></div></a>
 
93
            <div id="dropdownMenuCourseBlock">
 
94
                <ul>
 
95
                    <a href="#"><li class="dropdownMenuCourseBlockNonActiveCourse">Computor Graphics - DA146G</li></a>
 
96
                    <a href="#"><li class="dropdownMenuCourseBlockNonActiveCourse">Database Construction - IS317G</li></a>
 
97
                    <a href="#"><li class="dropdownMenuCourseBlockNonActiveCourse">Database Systems - IS114G</li></a>
 
98
                    <a href="#"><li class="dropdownMenuCourseBlockNonActiveCourse">Webdevelopment XML API - DV313G</li></a>
 
99
                    <a href="#"><li class="dropdownMenuCourseBlockActiveCourse">Webprogramming - DA330G</li></a>
 
100
                </ul>
 
101
                <hr>
 
102
                <ul>
 
103
                    <a href="#"><li class="dropdownMenuCourseBlockNotCourse">Manage Courses</li></a>
 
104
                </ul>
 
105
            </div>
 
106
            <a href="#"><div class="dropdownMenuButton">Add Instructor</div></a>
 
107
            <a href="#"><div class="dropdownMenuButton">Change Password</div></a>
 
108
            <a href="#"><div class="dropdownMenuButton">Logout</div></a>
 
109
        </div>
 
110
        
 
111
    </div><!-- End of dropdownMenuWrapper -->
 
112
    
 
113
</div><!-- End of bannerBody -->
 
 
b'\\ No newline at end of file'