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 -->
13
//If user is logged in
15
$url = base_url().'cms';
18
echo '<a href="'.$url.'" title="Home"><div id="bannerLogoButton"></div></a>';
21
<!-- This div contains all the content between the LenaSYS button and the user button -->
22
<div id="bannerContent">
24
<!-- This div contains the content that is needed on the banner for the CMS page.
25
The name is only used to set it hidden or shown. -->
26
<div id="bannerContentCMS">
28
<!-- Determines if the header should contain active course info depending on if the user is logged in or not -->
34
//If user is logged in
36
$header = '<span id="bannerHeaderCMSCourseName">'.
37
$activeCourse['courseName'].' </span><span id="bannerHeaderCMSCourseCode">- '.
38
$activeCourse['courseID'].'</span>';
41
echo '<div id="bannerHeaderCMS">'.$header.'</div>';
46
<!-- This div contains the content that is needed on the banner for the example page.
47
The name is only used to set it hidden or shown. -->
48
<div id="bannerContentExample">
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>
58
<a href="#" title="Open example menu"><div id="bannerCodeviewerMenuButton" class="icomoon">%</div></a>
59
<a href="#" title="Go to previous example"><div id="bannerLeftArrowButton" class="icomoon">&</div></a>
60
<a href="#" title="Go to next example"><div id="bannerRightArrowButton" class="icomoon">'</div></a>
61
<a href="#" title="Play the example"><div id="bannerPlayButton" class="icomoon">-</div></a>
62
<div id="bannerHeaderExample">Menu with images using divs</div>
63
<a href="#" title=""><div id="bannerExtraButton" class="icomoon">+</div></a>
66
</div><!-- End of bannerContent -->
68
<!-- Determines how the userMenuButton should look and function depending on if the user is logged in or not -->
75
$title = 'Click to login';
78
else if($userName != '') {
79
$title = 'Open settings menu';
83
echo '<div id="bannerUserMenuButton" title="'.$title.'">'.$text.'</div>';
86
<!-- This div contains the dropdownmenu for user menu button -->
87
<div id="dropdownUserMenu">
88
<div class="drowdownMenuHeader">Settings</div>
89
<div id="dropdownMenuExpandCourses" class="dropdownMenuButton">
90
Courses<span id="dropdownMenuButtonArrow"> </span>
92
<div id="dropdownMenuCourseBlock">
98
foreach($courses as $course) {
99
if($course->courseID == $activeCourse['courseID']) {
100
echo '<li class="dropdownMenuCourseBlockActiveCourse">'
101
.$course->name.' - '.$course->courseID;
106
.$course->name.' - '.$course->courseID;
113
<p>Manage Courses</p>
115
<div class="dropdownMenuButton">Add Instructor</div>
116
<div class="dropdownMenuButton">Change Password</div>
117
<div class="dropdownMenuButton">Logout</div>
120
<!-- This div contains the all the popups needed for this view -->
121
<div id="popup"></div>
123
</div><!-- End of bannerWrapper -->
125
</div><!-- End of bannerBody -->
b'\\ No newline at end of file'