Just archiving this project from my Open Source Software class.

This commit is contained in:
2021-01-26 16:41:13 -06:00
commit d1bac9a520
50 changed files with 19232 additions and 0 deletions
View File
+33
View File
@@ -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 -->
+31
View File
@@ -0,0 +1,31 @@
<?php
if($fileName == "Sign In"){
$signed = "<a class='sign-in' href='register.php'>Register Now!</a>";
}elseif($fileName == "Register"){
$signed = "<a class='sign-in' href='index.php'>Sign In</a>";
}else{
$signed = "<a class='sign-in' href='#' >We done goofed...</a>";
}
?>
<!DOCTYPE html>
<body>
<section class="login">
<title><?php echo $fileName; ?> | Computers R Us</title>
<link rel="shortcut icon" href="images/favico.ico">
<link href="css/main.css" rel="stylesheet"/>
<link href="css/black-tie/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
a {text-decoration: none; }
h5 a:hover{text-decoration:underline; }
.login{
text-align: center;
}
</style>
<header><?php echo $signed; ?></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>