Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
view/header_view.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php echo $title ?></title>
<meta name="description" content="狗寶">
<meta name="author" content="yiming">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="<?php echo base_url(); ?>assets/css/bootstrap.css" rel="stylesheet"/>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="<?php echo base_url(); ?>assets/css/salemaster.css" rel="stylesheet" />
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<script src="https://code.jquery.com/jquery.js"></script>
</head>
<body>
<div id="wrapper">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#" class="navbar-brand" ><img src="<?php echo base_url(); ?>assets/img/banner_white.png" alt="banner"/></a>
</div>
<div class="collapse navbar-collapse">
<ul id="admin-side-navbar" class="nav navbar-nav side-navbar">
<li<?php echo (empty($page)) ? ' class = "active"' : ''; ?>>
<a href="#">首頁</a>
</li>
<li<?php echo ($page == 'tab1') ? ' class = "active"' : ''; ?>>
<a href="#">Tab1</a>
</li>
<li<?php echo ($page == 'tab2') ? ' class = "active"' : ''; ?>>
<a href="#">Tab2</a>
</li>
<li class="side-collapse">
<a href="#collapse-autction" data-parent="admin-side-navbar" data-toggle="collapse">關於狗寶的愛情故事</a>
<ul id="collapse-autction" class="collapse side-collapse-menu">
<li<?php echo ($page == 'g1') ? ' class = "active"' : ''; ?>>
<a href="#">大一</a>
</li>
<li<?php echo ($page == 'g2') ? ' class = "active"' : ''; ?>>
<a href="#">大二</a>
</li>
<li<?php echo ($page == 'g3') ? ' class = "active"' : ''; ?>>
<a href="#">大三</a>
</li>
</ul>
</li>
</ul>
<hr class="divider visible-xs"/>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment