McGansWebsite/application/views/include/header.php

122 lines
3.5 KiB
PHP
Raw Normal View History

2023-01-10 09:41:20 +00:00
<!DOCTYPE HTML>
<html lang="en">
<head>
<!--=============== basic ===============-->
<meta charset="UTF-8">
<title>Mcgans</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="robots" content="index, follow"/>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<!--=============== css ===============-->
<link type="text/css" rel="stylesheet" href="<?=base_url();?>css/reset.css">
<link type="text/css" rel="stylesheet" href="<?=base_url();?>css/plugins.css">
<link type="text/css" rel="stylesheet" href="<?=base_url();?>css/style.css">
<link type="text/css" rel="stylesheet" href="<?=base_url();?>css/yourstyle.css">
<link type="text/css" rel="stylesheet" href="<?=base_url();?>css/shop.css">
<!--=============== favicons ===============-->
<link rel="shortcut icon" href="<?=base_url();?>images/icon.jpg">
</head>
<body data-path="<?=base_url();?>">
<!-- loader -->
<div class="loader">
<div id="movingBallG">
<div class="movingBallLineG"></div>
<div id="movingBallG_1" class="movingBallG"></div>
</div>
</div>
<!-- loader end -->
<!--================= Main ================-->
<div id="main">
<!--================= wrapper ================-->
<!--================= header ================-->
<header class="main-header">
<!-- logo -->
<a class="logo-holder" href="<?=base_url();?>"><img src="<?=base_url();?>images/hlogo.png" alt=""></a>
<!-- logo end -->
<!-- navigation -->
<div class="sb-menu-button-wrap">
<div class="sb-menu-button vis-m"><span></span><span></span><span></span></div>
</div>
<div class="nav-holder">
<nav>
<ul>
<li>
<?php
if(isset($lastId)&& $lastId->num_rows()>0)
{
$view=$lastId->row();
$id=$view->id;
$name=$view->name;
$year=$view->year;
}
?>
<a><?=$name.'-'.$year;?></a>
<!--second level end-->
<ul>
<?php
if(isset($semester) && $semester->num_rows()>0)
{
foreach($semester->result() as $list)
{
$id=$list->id;
$name=$list->name;
$year=$list->year;
$departmentId=$list->departmentId;
?> <li id="<?=$id;?>"><a class="semesterEvent" data-id="<?=$id;?>" href="javascript:"><?=$name." - ".$year?></a></li><?php
}
}
?>
</ul>
<!--second level end-->
</li>
<li id="showDepartment">
<a href="about.html" >Department</a>
<!--second level end-->
<ul>
<?php
if(isset($dep) && $dep->num_rows()>0)
{
foreach($dep->result() as $deparment)
{
?> <li><a href="about-personal.html"><?=$deparment->code?></a></li><?php
}
}
?>
</ul>
<!--second level end-->
</li>
<li></li>
</ul>
</nav>
</div>
<!-- navigation end -->
<!-- search button end -->
</header>
<!-- header end -->
<div class="sb-overlay"></div>
<div class="sidebar-menu fl-wrap">
<div class="hid-men-wrap">
<a class="sb-logo" href="index.html"><img src="<?=base_url();?>images/hlogo.png" alt=""></a>
<div class="clearfix"></div>
<div id="hid-men2" class="menusb">
<ul class="menu">
<li><a href="<?=base_url();?>about" class="ajax">About</a></li>
<li><a href="<?=base_url();?>contact" class="ajax">Contact</a></li>
2023-01-10 09:41:20 +00:00
</ul>
</div>
<div class="fl-wrap sb-menu-footer">
&#169; Mcgan's <?=$year = date("Y");?>. All rights reserved.
</div>
</div>
</div>