/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: a11timgu
  • Date: 2013-05-30 08:52:01 UTC
  • mfrom: (125 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 127.
  • Revision ID: a11timgu@student.his.se-20130530085201-vzvlcuxzljq5m2zh
sdasdawd:

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    <!-- This div contains the bannermenu and centers it on the page -->
6
6
    <div id="bannerWrapper">
7
7
    
8
 
        <!-- Determines how the LenaSYSButton should look and function depending on if the user is logged in or not  -->
 
8
                <!-- Determines how the LenaSYSButton should look and function depending on if the user is logged in or not  -->
9
9
        <?php
10
10
                        //$userName
11
11
                        $url = base_url();
12
12
                        
13
13
                        //If user is logged in
14
14
                        if($userName != '') {
15
 
                                $url += 'controller/metod';
 
15
                                $url = base_url().'cms';
16
16
                        }
17
17
                        
18
18
                        echo '<a href="'.$url.'" title="Home"><div id="bannerLogoButton"></div></a>';
19
19
                ?>
20
20
        
21
 
        <!-- This div contains all the content between the LenaSYS button and the user button -->
 
21
                <!-- This div contains all the content between the LenaSYS button and the user button -->
22
22
        <div id="bannerContent">
23
 
        
 
23
                        
24
24
            <!-- This div contains the content that is needed on the banner for the CMS page.
25
25
            The name is only used to set it hidden or shown. -->
26
26
            <div id="bannerContentCMS">
28
28
                <!-- Determines if the header should contain active course info depending on if the user is logged in or not -->
29
29
                <?php
30
30
                                        //$userName
31
 
                                        //$activeCourseName
32
 
                                        //$activeCourseCode
 
31
                                        //$activeCourse
33
32
                                        $header = '';
34
 
                                        
 
33
                                                                                        
35
34
                                        //If user is logged in
36
35
                                        if($userName != '') {
37
 
                                                $header = '<span id="bannerHeaderCMSCourseName">'.$activeCourseName.'</span>&nbsp;-&nbsp;
38
 
                                            <span id="bannerHeaderCMSCourseCode">'.$activeCourseCode.'</span>';
 
36
                                                $header = '<span id="bannerHeaderCMSCourseName">'.
 
37
                                                $activeCourse['courseName'].'&nbsp;</span><span id="bannerHeaderCMSCourseCode">-&nbsp;'.
 
38
                                                $activeCourse['courseID'].'</span>';
39
39
                                        }
40
40
                                        
41
41
                                        echo '<div id="bannerHeaderCMS">'.$header.'</div>';
46
46
            <!-- This div contains the content that is needed on the banner for the example page.
47
47
            The name is only used to set it hidden or shown. -->
48
48
            <div id="bannerContentExample">
 
49
                        
 
50
                                <!-- This div contains the dropdownmenu for the codeviewer menu button -->
 
51
                                <div id="dropdownCodeviewerMenu">
 
52
                                        <div class="drowdownMenuHeader">Choose example</div>
 
53
                                        <a href="#"><div class="dropdownMenuButton">Menu with images using divs</div></a>
 
54
                                        <a href="#"><div class="dropdownMenuButton">Dropdown menu</div></a>
 
55
                                        <a href="#"><div class="dropdownMenuButton">Expand and contract data</div></a>             
 
56
                                </div>
 
57
                        
49
58
                <a href="#" title="Open example menu"><div id="bannerCodeviewerMenuButton" class="icomoon">%</div></a>
50
59
                <a href="#" title="Go to previous example"><div id="bannerLeftArrowButton" class="icomoon">&amp;</div></a>
51
60
                <a href="#" title="Go to next example"><div id="bannerRightArrowButton" class="icomoon">'</div></a>
73
82
                        
74
83
                        echo '<div id="bannerUserMenuButton" title="'.$title.'">'.$text.'</div>';
75
84
                ?>
76
 
        
77
 
    </div><!-- End of bannerWrapper -->
78
 
    
79
 
    <!-- This div contains the dropdownmenus -->
80
 
    <div id="dropdownMenuWrapper">
81
 
    
82
 
        <!-- This div contains the dropdownmenu for the codeviewer menu button -->
83
 
        <div id="dropdownCodeviewerMenu">
84
 
            <div class="drowdownMenuHeader">Choose example</div>
85
 
            <a href="#"><div class="dropdownMenuButton">Menu with images using divs</div></a>
86
 
            <a href="#"><div class="dropdownMenuButton">Dropdown menu</div></a>
87
 
            <a href="#"><div class="dropdownMenuButton">Expand and contract data</div></a>             
88
 
        </div>
89
 
        
 
85
                
90
86
        <!-- This div contains the dropdownmenu for user menu button -->
91
87
        <div id="dropdownUserMenu">
92
88
            <div class="drowdownMenuHeader">Settings</div>
93
 
            <a href="#"><div class="dropdownMenuButton">Courses<span id="dropdownMenuButtonArrow">&nbsp;</span></div></a>
 
89
                                <div id="dropdownMenuExpandCourses" class="dropdownMenuButton">
 
90
                                        Courses<span id="dropdownMenuButtonArrow">&nbsp;</span>
 
91
                                </div>
94
92
            <div id="dropdownMenuCourseBlock">
95
93
                <ul>
96
94
                                        <?php
97
95
                                                //$courses
 
96
                                                //$activeCourse
98
97
                                                
99
98
                                                foreach($courses as $course) {
100
 
                                                        echo '<li><a href="#">'
101
 
                                                        .$course->name.' - '.$course->courseID;
102
 
                                                        echo '</a></li>';
 
99
                                                        if($course->courseID == $activeCourse['courseID']) {
 
100
                                                                echo '<li class="dropdownMenuCourseBlockActiveCourse">'
 
101
                                                                .$course->name.' - '.$course->courseID;
 
102
                                                                echo '</li>';
 
103
                                                        }
 
104
                                                        else {
 
105
                                                                echo '<li>'
 
106
                                                                .$course->name.' - '.$course->courseID;
 
107
                                                                echo '</li>';
 
108
                                                        }
103
109
                                                }
104
110
                                        ?>
105
 
                    <li class="dropdownMenuCourseBlockActiveCourse"><a href="#">Webprogramming - DA330G</a></li>
106
111
                </ul>
107
112
                <hr>
108
 
                <p><a href="#">Manage Courses</a></p>
 
113
                <p>Manage Courses</p>
109
114
            </div>
110
 
            <a href="#"><div class="dropdownMenuButton">Add Instructor</div></a>
111
 
            <a href="#"><div class="dropdownMenuButton">Change Password</div></a>
112
 
            <a href="#"><div class="dropdownMenuButton">Logout</div></a>
 
115
            <div class="dropdownMenuButton" id="dropdownMenuAddInstructor">Add Instructor</div>
 
116
            <div class="dropdownMenuButton" id="dropdownMenuChangePassword">Change Password</div>
 
117
            <div class="dropdownMenuButton" id="dropdownMenuLogout">Logout</div>
113
118
        </div>
114
 
        
115
 
    </div><!-- End of dropdownMenuWrapper -->
 
119
                
 
120
                <!-- This div contains the all the popups needed for this view -->
 
121
                <div id="popup"></div>
 
122
                
 
123
    </div><!-- End of bannerWrapper -->
116
124
    
117
125
</div><!-- End of bannerBody -->
 
 
b'\\ No newline at end of file'