Just archiving this project from my Open Source Software class.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
session_start();
|
||||
if(isset($_SESSION['user_name']))
|
||||
$user = "<p>Welcome, " . $_SESSION['user_name'] . ". <a class='sign-in' href='index.php?logout'>Logout</a>.</p>";
|
||||
else
|
||||
$user = "<a class='sign-in' href='index.php'>Sign In</a>";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title><?php echo $fileName; ?> | Computers R Us</title>
|
||||
<link rel="shortcut icon" href="images/favico.ico">
|
||||
<link href="css/black-tie/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" /><!-- jQuery UI link -->
|
||||
<!-- bootstrap responsive css link -->
|
||||
<link href="css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
|
||||
<!-- custom css page -->
|
||||
<link href="css/main.css" rel="stylesheet"/>
|
||||
<!-- jQuery scripts -->
|
||||
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-ui-1.10.3.custom.min.js"></script>
|
||||
<!-- custom scripts -->
|
||||
<script type="text/javascript" src="js/main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header><?php echo $user;?></header>
|
||||
<nav class="ui-widget-header">
|
||||
<ul>
|
||||
<li><a href="home.php">Home</a></li>
|
||||
<li><a href="store.php">Store</a></li>
|
||||
<li><a href="about-us.php">About Us</a></li>
|
||||
</ul>
|
||||
</nav><!-- end nav -->
|
||||
Reference in New Issue
Block a user