membuat footer dan header

parents
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cafe Bunga Toba</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
<script type="text/javascript" src="js/jquery-1.6.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/tms-0.3.js"></script>
<script type="text/javascript" src="js/tms_presets.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<style type="text/css">#menu a, .bg, .bg2, #ContactForm a {behavior:url("../js/PIE.htc")}</style>
<![endif]-->
</head>
<body id="page4">
<div class="main">
<!-- footer -->
<footer>
<div class="wrapper">
<section class="col2">
<div class="wrapper">
<section class="col4">
<h3>Follow Us </h3>
<ul id="icons">
<li><a href="#"><img src="images/icon1.jpg" alt=""><span>Facebook</span></a></li>
<li><a href="#"><img src="images/icon2.jpg" alt=""><span>Twitter</span></a></li>
<li><a href="#"><img src="images/icon3.jpg" alt=""><span>Linked In</span></a></li>
</ul>
</section>
<section class="col4 pad_left1">
<h3>Why Us </h3>
<ul id="why_us">
<li><a href="#">Sed perspiciatis unde </a></li>
<li><a href="#">Omnis natus error</a></li>
<li><a href="#">Voluptatem accusantium </a></li>
</ul>
</section>
</div>
<div id="footer_link">Copyright &copy; <a href="#">Domain Name</a> All Rights Reserved<br>
Design by <a target="_blank" href="http://www.templatemonster.com/">TemplateMonster.com</a></div>
</section>
</div>
<!-- {%FOOTER_LINK} -->
</footer>
<!-- / footer -->
</div>
</body>
</html>
\ No newline at end of file
<?php
session_start();
require_once(dirname(__DIR__) . '../functions/fungsi.php');
open_page('Index');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cafe Bunga Toba</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="../css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="../css/style.css" type="text/css" media="all">
<script type="text/javascript" src="../js/jquery-1.6.js"></script>
<script type="text/javascript" src="../js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="../js/tms-0.3.js"></script>
<script type="text/javascript" src="../js/tms_presets.js"></script>
<script type="text/javascript" src="../js/script.js"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5.js"></script>
<style type="text/css">#menu a, .bg, .bg2, #ContactForm a {behavior:url("../js/PIE.htc")}</style>
<![endif]-->
</head>
<body id="page4">
<div class="body1">
<div class="main">
<!--header -->
<header>
<div class="wrapper">
<h1><a href="index.php" id="logo">Cafe Bunga Toba</a></h1>
<nav>
<ul id="menu">
<li class="active"><a href="index.php">Home</a></li>
<?php
if (isset($_SESSION['isLogin']) && get_session('role') == "admin") {
echo('<li><a href="menu.php">D Menu</a><br></li>');
echo('<li><a href="checkout.php">Pemesanan</a><br></li>');
echo('<li><a href="logout.php">Logout</a><br></li>');
} else if (isset($_SESSION['isLogin']) && get_session('role') == "member") {
echo('<li><a href="menu.php">Menu</a><br></li>');
echo('<li><a href="checkout.php"> Pemesanan</a><br></li>');
echo('<li><a href="logout.php">Logout</a><br></li>');
} else {
echo('<li><a href="menu.php">Menu</a><br></li>');
echo('<li><a href="signup.php">Signup</a><br></li>');
echo('<li><a href="login.php">Login</a><br></li>');
}
?>
<li><a href="contact.php">Contact</a></li>
</ul>
</nav>
</div>
</header>
</div>
</div>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment