/lenasys/trunk

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