2
<!-- bannermenu.php -->
5
<!-- This div contains the bannermenu and centers it on the page -->
6
<div id="bannerWrapper">
8
<!-- Determines how the LenaSYSButton should look and function depending on if the user is logged in or not -->
14
$url += 'controller/metod';
17
$url += 'controller/metod';
20
echo '<a href="'.$url.'" title="Home"><div id="bannerLogoButton"></div></a>';
23
<!-- This div contains all the content between the LenaSYS button and the user button -->
24
<div id="bannerContent">
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">
30
<!-- Determines if the header should contain active course info depending on if the user is logged in or not -->
36
$header = '<span id="bannerHeaderCMSCourseName">Webprogramming</span> -
37
<span id="bannerHeaderCMSCourseCode">DA330G</span>';
40
echo '<div id="bannerHeaderCMS">'.$header.'</div>';
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">&</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>
56
</div><!-- End of bannerContent -->
58
<!-- Determines how the userMenuButton should look and function depending on if the user is logged in or not -->
65
$title = 'Click to login';
68
else if($userName != '') {
69
$title = 'Open settings menu';
73
echo '<div id="bannerUserMenuButton" title="'.$title.'">'.$text.'</div>';
76
</div><!-- End of bannerWrapper -->
78
<!-- This div contains the dropdownmenus -->
79
<div id="dropdownMenuWrapper">
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>
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"> </span></div></a>
93
<div id="dropdownMenuCourseBlock">
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>
103
<a href="#"><li class="dropdownMenuCourseBlockNotCourse">Manage Courses</li></a>
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>
111
</div><!-- End of dropdownMenuWrapper -->
113
</div><!-- End of bannerBody -->
b'\\ No newline at end of file'